From 4110dc15d05838dff8200118c99170f76d45909e Mon Sep 17 00:00:00 2001 From: lifeng Date: Mon, 5 Mar 2018 15:59:17 +0800 Subject: qcacld-2.0: Set do_not_roam as false by default The flag do_not_roam is set as ture when do connecting with bssid parameter from supplicant, it will forbid starting roam offload scan when do connecting with bssid_hint since the do_not_roam is NOT cleared. The fix is to set do_roam_flag as false by default, if the bssid parameter from supplicant is valid, then the flag will be marked as true as before. Change-Id: I09b41d20ed4441e8e163b836ff57cb79ef78d556 CRs-Fixed: 2202341 --- CORE/HDD/src/wlan_hdd_cfg80211.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index bd499fb78c5b..b93d51fe0fa4 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -22881,6 +22881,8 @@ int wlan_hdd_cfg80211_connect_start( hdd_adapter_t *pAdapter, vos_mem_copy((void *)(pRoamProfile->SSIDs.SSIDList->SSID.ssId), ssid, ssid_len); + pRoamProfile->do_not_roam = false; + /* cleanup bssid hint and bssid */ vos_mem_zero(pRoamProfile->bssid_hint, VOS_MAC_ADDR_SIZE); vos_mem_zero(pRoamProfile->BSSIDs.bssid, VOS_MAC_ADDR_SIZE); -- cgit v1.2.3