From 647604d5372e8588ceb434016060e141d66866ff Mon Sep 17 00:00:00 2001 From: Pankaj Singh Date: Fri, 14 Feb 2020 15:12:47 +0530 Subject: [PATCH] qcacld-3.0: Avoid sending tdls peer assoc cmd after roam start Roam start indication received from FW during tdls setup procedure. FW already deletes tdls peer before sending roam start indication to host. If Wlan host now sends any tdls peer operation cmd it will result in FW instability. Fix to avoid sending any tdls peer operation cmd after receving roam start indication from FW. Change-Id: I6782950e5ad0a16b38736e0f26e6792b642b8b4e CRs-Fixed: 2620308 --- core/wma/src/wma_dev_if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/wma/src/wma_dev_if.c b/core/wma/src/wma_dev_if.c index e426bd4c1eda..4957138f62ff 100644 --- a/core/wma/src/wma_dev_if.c +++ b/core/wma/src/wma_dev_if.c @@ -4058,7 +4058,8 @@ static void wma_add_tdls_sta(tp_wma_handle wma, tpAddStaParams add_sta) __func__, add_sta->staType, add_sta->updateSta, add_sta->bssId, add_sta->staMac); - if (wma_is_roam_synch_in_progress(wma, add_sta->smesessionId)) { + if (wma_is_roam_synch_in_progress(wma, add_sta->smesessionId) || + wma_is_roam_in_progress(add_sta->smesessionId)) { WMA_LOGE("%s: roaming in progress, reject add sta!", __func__); add_sta->status = QDF_STATUS_E_PERM; goto send_rsp;