Просмотр исходного кода

qcacld-3.0: Rename peerInfoParams in struct sme_context

The Linux Coding Style frowns upon mixed-case names so rename
peerInfoParams in struct sme_context to be compliant.

Change-Id: I7221fa6b7b432440d62cded556365d524b28bb14
CRs-Fixed: 2400319
Jeff Johnson 6 лет назад
Родитель
Сommit
e7aa5cd3b0
2 измененных файлов с 6 добавлено и 4 удалено
  1. 1 1
      core/sme/inc/sme_internal.h
  2. 5 3
      core/sme/src/common/sme_api.c

+ 1 - 1
core/sme/inc/sme_internal.h

@@ -259,7 +259,7 @@ struct sme_context {
 	void **sme_cmd_buf_addr;
 	tDblLinkList sme_cmd_freelist;    /* preallocated roam cmd list */
 	enum QDF_OPMODE curr_device_mode;
-	struct ibss_peer_info_cb_info peerInfoParams;
+	struct ibss_peer_info_cb_info peer_info_cb_info;
 #ifdef FEATURE_WLAN_DIAG_SUPPORT_CSR
 	host_event_wlan_status_payload_type eventPayload;
 #endif

+ 5 - 3
core/sme/src/common/sme_api.c

@@ -1768,7 +1768,7 @@ QDF_STATUS sme_ibss_peer_info_response_handler(struct mac_context *mac,
 			  "%s: mac is null", __func__);
 		return QDF_STATUS_E_FAILURE;
 	}
-	cb_info = &mac->sme.peerInfoParams;
+	cb_info = &mac->sme.peer_info_cb_info;
 	if (!cb_info->peer_info_cb) {
 		QDF_TRACE(QDF_MODULE_ID_SME, QDF_TRACE_LEVEL_ERROR,
 			  "%s: HDD callback is null", __func__);
@@ -7649,11 +7649,13 @@ QDF_STATUS sme_request_ibss_peer_info(mac_handle_t mac_handle, void *cb_context,
 	struct mac_context *mac = MAC_CONTEXT(mac_handle);
 	struct scheduler_msg message = {0};
 	tSirIbssGetPeerInfoReqParams *pIbssInfoReqParams;
+	struct ibss_peer_info_cb_info *cb_info;
 
 	status = sme_acquire_global_lock(&mac->sme);
 	if (QDF_STATUS_SUCCESS == status) {
-		mac->sme.peerInfoParams.peer_info_cb = peer_info_cb;
-		mac->sme.peerInfoParams.peer_info_cb_context = cb_context;
+		cb_info = &mac->sme.peer_info_cb_info;
+		cb_info->peer_info_cb = peer_info_cb;
+		cb_info->peer_info_cb_context = cb_context;
 
 		pIbssInfoReqParams = (tSirIbssGetPeerInfoReqParams *)
 			qdf_mem_malloc(sizeof(tSirIbssGetPeerInfoReqParams));