summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnuj Khera <akhera@codeaurora.org>2018-01-29 14:31:40 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-02-13 01:32:25 -0800
commitf50017db7893fe8053c6da7f2dd57ca6326fef01 (patch)
tree9a9d0376b2f5c92a35a2391c0df306357ca84b2e
parentac0ebb2209b64efdb37e127db4250c897a8163de (diff)
qcacld-2.0: RSN IE Update in case of BSS already started
Beacon does not show RSN IE after disabling/enabling SAP, hence stations does not connect back while trying to associate in WPA. While re-enable SAP from the hostapd_cli, the start_bss is called twice, first from wps_init which does not populate RSNIE and secondly, through bss_setup which has RSNIE but getting ignored as the BSS is already started. Added the RSN IE in case of BSS already started Change-Id: I2a67156e66e255e7c007a5925cd81b859009114e CRs-Fixed: 2144429
-rw-r--r--CORE/HDD/src/wlan_hdd_cfg80211.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 178eb6ee5a44..330be32a7828 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -16408,6 +16408,11 @@ int wlan_hdd_cfg80211_update_apies(hdd_adapter_t* pHostapdAdapter)
wlan_hdd_add_extra_ie(pHostapdAdapter, genie, &total_ielen,
WLAN_EID_VHT_TX_POWER_ENVELOPE);
+
+ if(test_bit(SOFTAP_BSS_STARTED, &pHostapdAdapter->event_flags))
+ wlan_hdd_add_extra_ie(pHostapdAdapter, genie, &total_ielen,
+ WLAN_EID_RSN);
+
if (0 != wlan_hdd_add_ie(pHostapdAdapter, genie,
&total_ielen, WPS_OUI_TYPE, WPS_OUI_TYPE_SIZE))
{