mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qcacld-3.0: Add value check for RF bands attribute of WPS IE
qcacld-2.0 to qcacld-3.0 propagation RF bands attribute of WPS IE in Probe.Req from STA/P2P device is 2.4 and 5GHz although BandCapability=1 (2.4GHz) in qcom_cfg.ini file. Set the value of RF bands attribute of WPS IE by checking return value of function hdd_is_5g_supported and value of BandCapability in qcom_cfg.ini. Change-Id: I7a60ef79336c586dbad35308e958563c5205888a CRs-Fixed: 979025
This commit is contained in:
parent
aef84347a8
commit
f54169adbd
1 changed files with 7 additions and 5 deletions
|
|
@ -5233,11 +5233,13 @@ QDF_STATUS hdd_set_sme_chan_list(hdd_context_t *hdd_ctx)
|
|||
*/
|
||||
bool hdd_is_5g_supported(hdd_context_t *hdd_ctx)
|
||||
{
|
||||
/*
|
||||
* If wcnss_wlan_iris_xo_mode() returns WCNSS_XO_48MHZ(1);
|
||||
* then hardware support 5Ghz.
|
||||
*/
|
||||
return true;
|
||||
if (!hdd_ctx || !hdd_ctx->config)
|
||||
return true;
|
||||
|
||||
if (hdd_ctx->config->nBandCapability != eCSR_BAND_24)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
|
||||
static int hdd_wiphy_init(hdd_context_t *hdd_ctx)
|
||||
|
|
|
|||
Loading…
Reference in a new issue