From 7498d374bccbd1d16109d7e311781d2fe337e341 Mon Sep 17 00:00:00 2001 From: Archana Ramachandran Date: Fri, 31 Mar 2017 11:03:16 -0700 Subject: [PATCH] qcacld-3.0: Allow beacon/probe resp update for SAP during connection Host driver is ignoring beacon/probe response update for SAP before 4-way handshakes completed. Due to this beacon/probe response is not updated with the latest updates from the userspace. This can lead to re-connection failure/delay after disconnect. Change-Id: I3a735a2c867c4cfac9662551221fbf22d5afb29d CRs-Fixed: 2027658 --- core/hdd/src/wlan_hdd_hostapd.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 2fb307c996e2..6f81102acb3b 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -9058,7 +9058,6 @@ static int __wlan_hdd_cfg80211_change_beacon(struct wiphy *wiphy, struct hdd_context *hdd_ctx; beacon_data_t *old, *new; int status; - bool update_beacon; ENTER(); @@ -9106,11 +9105,9 @@ static int __wlan_hdd_cfg80211_change_beacon(struct wiphy *wiphy, } pAdapter->sessionCtx.ap.beacon = new; - update_beacon = (pAdapter->device_mode == - QDF_P2P_GO_MODE) ? true : false; - hdd_debug("update beacon for P2P GO: %d", update_beacon); + hdd_debug("update beacon for P2P GO/SAP"); status = wlan_hdd_cfg80211_start_bss(pAdapter, params, NULL, - 0, 0, false, update_beacon); + 0, 0, false, true); EXIT(); return status;