Browse Source

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
Visweswara Tanuku 7 years ago
parent
commit
e6b0da58ec
1 changed files with 4 additions and 0 deletions
  1. 4 0
      core/hdd/src/wlan_hdd_hostapd.c

+ 4 - 0
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,