qcacld-3.0: Extract 6 GHz AP power type from HE IE

Extract the 6 GHz AP power type from HE IE before
setting the power type in STA. By default, power type
is set to LPI.

CRs-Fixed: 3631944
Change-Id: I84c00bdca3358299c6ef919975328558b2928353
This commit is contained in:
Sai Pavan Akhil Remella 2023-10-12 20:11:31 +05:30 • committed by Ravindra Konda
commit a065e1ad33

View file

@ -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;