From e6b0da58ec59b9beab47bfa296a2d415ac84888f Mon Sep 17 00:00:00 2001 From: Visweswara Tanuku Date: Wed, 11 Apr 2018 11:41:02 +0530 Subject: [PATCH] qcacld-3.0: RSN IE Update in case of BSS already started qcacld-2.0 to qcacld-3.0 propagation 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 --- core/hdd/src/wlan_hdd_hostapd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index c288d8ce6a35..1b8a24fc46cb 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -6957,6 +6957,10 @@ int wlan_hdd_cfg80211_update_apies(struct hdd_adapter *adapter) wlan_hdd_add_extra_ie(adapter, genie, &total_ielen, WLAN_EID_INTERWORKING); + if (test_bit(SOFTAP_BSS_STARTED, &adapter->event_flags)) + wlan_hdd_add_extra_ie(adapter, genie, &total_ielen, + WLAN_EID_RSN); + #ifdef FEATURE_WLAN_WAPI if (QDF_SAP_MODE == adapter->device_mode) { wlan_hdd_add_extra_ie(adapter, genie, &total_ielen,