diff mbox

[8/9] qtnfmac: cancel scan on disconnect

Message ID 20180529120005.21498-9-sergey.matyukevich.os@quantenna.com (mailing list archive)
State Accepted
Commit 40d68dbb986d2116c15e70f63c419a5481d7b91c
Delegated to: Kalle Valo
Headers show

Commit Message

Sergey Matyukevich May 29, 2018, noon UTC
From: Andrey Shevchenko <ashevchenko@quantenna.com>

Cancel scan operation on STA disconnect.

Signed-off-by: Andrey Shevchenko <ashevchenko@quantenna.com>
---
 drivers/net/wireless/quantenna/qtnfmac/cfg80211.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
index 2089cb095283..1fcd94bf7c59 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
+++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
@@ -660,6 +660,8 @@  qtnf_disconnect(struct wiphy *wiphy, struct net_device *dev,
 	if (vif->wdev.iftype != NL80211_IFTYPE_STATION)
 		return -EOPNOTSUPP;
 
+	qtnf_scan_done(mac, true);
+
 	if (vif->sta_state == QTNF_STA_DISCONNECTED)
 		return 0;