diff options
author | Andrey Shevchenko <ashevchenko@quantenna.com> | 2018-05-29 15:00:04 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-05-30 22:20:14 +0300 |
commit | 40d68dbb986d2116c15e70f63c419a5481d7b91c (patch) | |
tree | ab0bc5616fd201366f854208509f929315d98a96 /drivers/net/wireless/quantenna | |
parent | f5d2ff43b9ed9f56e7ff67640aa593fcb8fa56c1 (diff) | |
download | linux-40d68dbb986d2116c15e70f63c419a5481d7b91c.tar.xz |
qtnfmac: cancel scan on disconnect
Cancel scan operation on STA disconnect.
Signed-off-by: Andrey Shevchenko <ashevchenko@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/quantenna')
-rw-r--r-- | drivers/net/wireless/quantenna/qtnfmac/cfg80211.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |