mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
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:
parent
9097651291
commit
a065e1ad33
1 changed files with 6 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue