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>
This commit is contained in:
Andrey Shevchenko 2018-05-29 15:00:04 +03:00 committed by Kalle Valo
parent f5d2ff43b9
commit 40d68dbb98
1 changed files with 2 additions and 0 deletions

View File

@ -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;