diff --git a/core/sme/src/csr/csr_api_roam.c b/core/sme/src/csr/csr_api_roam.c index 432905b3d6a6..60c21f870999 100644 --- a/core/sme/src/csr/csr_api_roam.c +++ b/core/sme/src/csr/csr_api_roam.c @@ -14999,6 +14999,7 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId, { QDF_STATUS status = QDF_STATUS_SUCCESS; uint8_t acm_mask = 0, uapsd_mask; + enum reg_6g_ap_type ap_6g_power_type = REG_INDOOR_AP; uint32_t bss_freq; uint16_t msgLen, ieLen; tSirMacRateSet OpRateSet; @@ -15831,6 +15832,10 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId, else csr_join_req->isQosEnabled = false; + if (pIes->he_op.oper_info_6g_present) { + ap_6g_power_type = pIes->he_op.oper_info_6g.info.reg_info; + } + if (wlan_reg_is_6ghz_chan_freq(pBssDescription->chan_freq)) { if (!pIes->Country.present) sme_debug("Channel is 6G but country IE not present"); @@ -15841,7 +15846,7 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId, pIes->Country.country, programmed_country, &power_type_6g, &ctry_code_match, - pSession->ap_power_type); + ap_6g_power_type); if (QDF_IS_STATUS_ERROR(status)) break; csr_join_req->ap_power_type_6g = power_type_6g;