qcacld-3.0: Replace PMAC_STRUCT() with MAC_CONTEXT()
The inline function MAC_CONTEXT() is the preferred mechanism for
converting a MAC handle into a MAC context, so replace all instances
of the legacy macro PMAC_STRUCT().
Change-Id: Ieb29696c79b729648462be699892607484c2f301
CRs-Fixed: 2357873
diff --git a/core/sap/src/sap_ch_select.c b/core/sap/src/sap_ch_select.c
index 63bc065..f3f9f83 100644
--- a/core/sap/src/sap_ch_select.c
+++ b/core/sap/src/sap_ch_select.c
@@ -335,7 +335,7 @@
tpAniSirGlobal mac_ctx = NULL;
tSapSpectChInfo *spect_ch = NULL;
- mac_ctx = PMAC_STRUCT(mac_handle);
+ mac_ctx = MAC_CONTEXT(mac_handle);
spect_ch = spect_info->pSpectCh;
node = sme_scan_result_get_first(mac_handle, scan_result);
@@ -422,7 +422,7 @@
"qdf_ctx is NULL");
return;
}
- mac_ctx = PMAC_STRUCT(mac_handle);
+ mac_ctx = MAC_CONTEXT(mac_handle);
/* Flush, default set all channel safe */
for (i = 0; i < NUM_CHANNELS; i++) {
@@ -575,7 +575,7 @@
tSapSpectChInfo *pSpectCh = NULL;
uint8_t *pChans = NULL;
uint16_t channelnum = 0;
- tpAniSirGlobal mac = PMAC_STRUCT(mac_handle);
+ tpAniSirGlobal mac = MAC_CONTEXT(mac_handle);
bool chSafe = true;
#ifdef FEATURE_WLAN_CH_AVOID
uint16_t i;
@@ -2541,7 +2541,7 @@
uint32_t end_ch_num = sap_ctx->acs_cfg->end_ch;
tpAniSirGlobal mac_ctx = NULL;
- mac_ctx = PMAC_STRUCT(mac_handle);
+ mac_ctx = MAC_CONTEXT(mac_handle);
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
FL("start - end: %d - %d"), start_ch_num, end_ch_num);
@@ -2644,7 +2644,7 @@
#endif
tpAniSirGlobal mac_ctx;
- mac_ctx = PMAC_STRUCT(mac_handle);
+ mac_ctx = MAC_CONTEXT(mac_handle);
QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_INFO_HIGH,
"In %s, Running SAP Ch Select", __func__);