mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacld-3.0: Removed invalid vht IEs for 2.4G in SAP Mode
qcacld-2.0 to qcacld-3.0 propagation SoftAP should check gEnableVhtFor24GHzBand ini variable before enabling vht mode in 2.4Ghz mode. Added changes to turn off vht mode if gEnableVhtFor24GHzBand is disabled for 2.4Ghz. Change-Id: I135e5449f95342a98abfa0b9cd5b1849a84c5c4c CRs-Fixed: 988240
This commit is contained in:
parent
63ddab2c4b
commit
76ed25e536
1 changed files with 11 additions and 0 deletions
|
|
@ -12042,6 +12042,11 @@ csr_roam_get_phy_mode_band_for_bss(tpAniSirGlobal mac_ctx,
|
|||
cfg_dot11_mode = eCSR_CFG_DOT11_MODE_11B;
|
||||
}
|
||||
|
||||
if (IS_24G_CH(opr_chn) &&
|
||||
(false == mac_ctx->roam.configParam.enableVhtFor24GHz) &&
|
||||
(eCSR_CFG_DOT11_MODE_11AC == cfg_dot11_mode ||
|
||||
eCSR_CFG_DOT11_MODE_11AC_ONLY == cfg_dot11_mode))
|
||||
cfg_dot11_mode = eCSR_CFG_DOT11_MODE_11N;
|
||||
/*
|
||||
* Incase of WEP Security encryption type is coming as part of add key.
|
||||
* So while STart BSS dont have information
|
||||
|
|
@ -18070,6 +18075,12 @@ QDF_STATUS csr_roam_channel_change_req(tpAniSirGlobal pMac,
|
|||
pMsg->ch_width = profile->ch_params.ch_width;
|
||||
pMsg->dot11mode = csr_translate_to_wni_cfg_dot11_mode(pMac,
|
||||
pMac->roam.configParam.uCfgDot11Mode);
|
||||
if (IS_24G_CH(pMsg->targetChannel) &&
|
||||
(false == pMac->roam.configParam.enableVhtFor24GHz) &&
|
||||
(WNI_CFG_DOT11_MODE_11AC == pMsg->dot11mode ||
|
||||
WNI_CFG_DOT11_MODE_11AC_ONLY == pMsg->dot11mode))
|
||||
pMsg->dot11mode = WNI_CFG_DOT11_MODE_11N;
|
||||
|
||||
pMsg->center_freq_seg_0 = ch_params->center_freq_seg0;
|
||||
pMsg->center_freq_seg_1 = ch_params->center_freq_seg1;
|
||||
qdf_mem_copy(pMsg->bssid, bssid.bytes, QDF_MAC_ADDR_SIZE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue