From e7aa5cd3b099ea3c3243bb071e85741bcf01f6c6 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sun, 17 Feb 2019 19:36:01 -0800 Subject: [PATCH] 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 --- core/sme/inc/sme_internal.h | 2 +- core/sme/src/common/sme_api.c | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/sme/inc/sme_internal.h b/core/sme/inc/sme_internal.h index 2b41f4c38c0f..2d94fc3c9ccc 100644 --- a/core/sme/inc/sme_internal.h +++ b/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 diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 2801b8c691e6..cfd1ce041f6a 100644 --- a/core/sme/src/common/sme_api.c +++ b/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));