diff --git a/core/sme/inc/sme_api.h b/core/sme/inc/sme_api.h index df5511dbc8..3489c78dc5 100644 --- a/core/sme/inc/sme_api.h +++ b/core/sme/inc/sme_api.h @@ -2265,12 +2265,12 @@ int sme_set_auto_rate_he_ltf(tHalHandle hal, uint8_t session_id, #ifdef WLAN_FEATURE_11AX /** * sme_update_tgt_he_cap() - sets the HE caps to pmac - * @hal: Pointer to HAL - * @cfg: Pointer to wma target cfg + * @mac_handle: Pointer to MAC handle + * @cfg: Pointer to WMA target CFG * * Return: None */ -void sme_update_tgt_he_cap(tHalHandle hal, struct wma_tgt_cfg *cfg); +void sme_update_tgt_he_cap(mac_handle_t mac_handle, struct wma_tgt_cfg *cfg); /** * sme_update_he_cap_nss() - sets the nss based on user request @@ -2344,8 +2344,8 @@ int sme_update_he_frag_supp(tHalHandle hal, uint8_t session_id, int sme_update_he_ldpc_supp(tHalHandle hal, uint8_t session_id, uint16_t he_ldpc); #else -static inline void sme_update_tgt_he_cap(tHalHandle hal, - struct wma_tgt_cfg *cfg) +static inline void sme_update_tgt_he_cap(mac_handle_t mac_handle, + struct wma_tgt_cfg *cfg) {} static inline void sme_update_he_cap_nss(tHalHandle hal, uint8_t session_id, uint8_t nss) diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 58ec7038cd..7923f335d2 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -12769,17 +12769,17 @@ int sme_update_tx_bfee_supp(tHalHandle hal, uint8_t session_id, return sme_update_he_tx_bfee_supp(hal, session_id, cfg_val); } #ifdef WLAN_FEATURE_11AX -void sme_update_tgt_he_cap(tHalHandle hal, struct wma_tgt_cfg *cfg) +void sme_update_tgt_he_cap(mac_handle_t mac_handle, struct wma_tgt_cfg *cfg) { - tpAniSirGlobal mac_ctx = PMAC_STRUCT(hal); + tpAniSirGlobal mac_ctx = PMAC_STRUCT(mac_handle); qdf_mem_copy(&mac_ctx->he_cap_2g, - &cfg->he_cap_2g, - sizeof(tDot11fIEhe_cap)); + &cfg->he_cap_2g, + sizeof(tDot11fIEhe_cap)); qdf_mem_copy(&mac_ctx->he_cap_5g, - &cfg->he_cap_5g, - sizeof(tDot11fIEhe_cap)); + &cfg->he_cap_5g, + sizeof(tDot11fIEhe_cap)); } void sme_update_he_cap_nss(tHalHandle hal, uint8_t session_id, diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 11f236a3ce..022f767d4e 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -15817,7 +15817,8 @@ QDF_STATUS csr_send_join_req_msg(tpAniSirGlobal pMac, uint32_t sessionId, csr_join_req_copy_he_cap(csr_join_req, pSession); /* change the HE caps like sts per band */ CSR_REVISE_REQ_HE_CAP_PER_BAND(csr_join_req, pMac, - pBssDescription->channelId); + pBssDescription-> + channelId); } if (wlan_cfg_get_int(pMac, WNI_CFG_VHT_SU_BEAMFORMEE_CAP, @@ -16732,7 +16733,7 @@ QDF_STATUS csr_send_mb_start_bss_req_msg(tpAniSirGlobal pMac, uint32_t csr_start_bss_copy_he_cap(pMsg, pSession); /* change the HE caps like sts per band */ CSR_REVISE_REQ_HE_CAP_PER_BAND(pMsg, pMac, - pBssDesc->channelId); + pBssDesc->channelId); } qdf_mem_copy(&pMsg->addIeParams, diff --git a/core/wma/src/wma_he.c b/core/wma/src/wma_he.c index 346422b303..7fbf8c805a 100644 --- a/core/wma/src/wma_he.c +++ b/core/wma/src/wma_he.c @@ -869,9 +869,9 @@ void wma_update_target_ext_he_cap(struct target_psoc_info *tgt_hdl, if (he_cap_mac.present) { wma_derive_ext_he_cap(&tmp_he_cap, - &he_cap_mac); + &he_cap_mac); wma_derive_ext_he_cap(&tgt_cfg->he_cap_2g, - &he_cap_mac); + &he_cap_mac); } qdf_mem_zero(&he_cap_mac, @@ -892,9 +892,9 @@ void wma_update_target_ext_he_cap(struct target_psoc_info *tgt_hdl, } if (he_cap_mac.present) { wma_derive_ext_he_cap(&tmp_he_cap, - &he_cap_mac); + &he_cap_mac); wma_derive_ext_he_cap(&tgt_cfg->he_cap_5g, - &he_cap_mac); + &he_cap_mac); } }