qcacld-3.0: Check neighbor roam state before disconnecting

Wait for LFR 2.0 based Roaming sequence to complete before
processing disconnect command from cfg80211.

Change-Id: Ib596aa56ccc322f5ba87b46685bbc299793c9d5b
CRs-Fixed: 2464112
This commit is contained in:
nakul kachhwaha 2019-06-03 13:27:49 +05:30 • committed by nshrivas
commit 8dbf4b5654

View file

@ -18666,7 +18666,9 @@ int wlan_hdd_disconnect(struct hdd_adapter *adapter, u16 reason)
*
*/
INIT_COMPLETION(adapter->roaming_comp_var);
if (hdd_is_roaming_in_progress(hdd_ctx)) {
if (hdd_is_roaming_in_progress(hdd_ctx) ||
sme_neighbor_middle_of_roaming(mac_handle,
adapter->vdev_id)) {
rc = wait_for_completion_timeout(
&adapter->roaming_comp_var,
msecs_to_jiffies(WLAN_WAIT_TIME_STOP_ROAM));