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:
parent
f5d2ff43b9
commit
40d68dbb98
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue