diff --git a/core/sme/inc/csr_support.h b/core/sme/inc/csr_support.h index 2ac0c1a1d6a2..54e92463ea61 100644 --- a/core/sme/inc/csr_support.h +++ b/core/sme/inc/csr_support.h @@ -310,8 +310,9 @@ uint16_t csr_rates_find_best_rate(tSirMacRateSet *pSuppRates, tSirMacRateSet *pExtRates, tSirMacPropRateSet *pPropRates); tSirBssType csr_translate_bsstype_to_mac_type(eCsrRoamBssType csrtype); /* Caller allocates memory for pIEStruct */ -QDF_STATUS csr_parse_bss_description_ies(tHalHandle hHal, - tSirBssDescription *pBssDesc, tDot11fBeaconIEs *pIEStruct); +QDF_STATUS csr_parse_bss_description_ies(tpAniSirGlobal mac_ctx, + tSirBssDescription *pBssDesc, + tDot11fBeaconIEs *pIEStruct); /* * This function will allocate memory for the parsed IEs to the caller. * Caller must free the memory. after it is done with the data only if diff --git a/core/sme/src/csr/csr_util.c b/core/sme/src/csr/csr_util.c index e03d86149d62..ef1727271ceb 100644 --- a/core/sme/src/csr/csr_util.c +++ b/core/sme/src/csr/csr_util.c @@ -1611,19 +1611,18 @@ eCsrMediaAccessType csr_get_qos_from_bss_desc(tpAniSirGlobal mac_ctx, } /* Caller allocates memory for pIEStruct */ -QDF_STATUS csr_parse_bss_description_ies(tHalHandle hHal, - tSirBssDescription *pBssDesc, - tDot11fBeaconIEs *pIEStruct) +QDF_STATUS csr_parse_bss_description_ies(tpAniSirGlobal mac_ctx, + tSirBssDescription *pBssDesc, + tDot11fBeaconIEs *pIEStruct) { QDF_STATUS status = QDF_STATUS_E_FAILURE; - tpAniSirGlobal pMac = PMAC_STRUCT(hHal); int ieLen = (int)(pBssDesc->length + sizeof(pBssDesc->length) - GET_FIELD_OFFSET(tSirBssDescription, ieFields)); if (ieLen > 0 && pIEStruct) { if (!DOT11F_FAILED(dot11f_unpack_beacon_i_es - (pMac, (uint8_t *) pBssDesc->ieFields, + (mac_ctx, (uint8_t *) pBssDesc->ieFields, ieLen, pIEStruct, false))) status = QDF_STATUS_SUCCESS; }