summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
diff options
context:
space:
mode:
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>2018-01-22 15:46:31 +0300
committerKalle Valo <kvalo@codeaurora.org>2018-01-24 18:00:50 +0200
commit39845020b39eea4a1e5db9ea4818a967b567e2e2 (patch)
tree51a6a5e92f61f4d9c7f606d3c1325f6e227b3101 /drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
parent01efff526235a506275fe8aff07a22a2438bf3c8 (diff)
downloadop-kernel-dev-39845020b39eea4a1e5db9ea4818a967b567e2e2.zip
op-kernel-dev-39845020b39eea4a1e5db9ea4818a967b567e2e2.tar.gz
qtnfmac: fix STA disconnect procedure
STA does not reconnect to the same AP after disconnect. The reason is that STA is marked as disconnected in cfg80211 disconnect callback. This is too early since in this case qtnfmac event handler skips cfg80211_disconnected call when processing disconnect event from the card. As a result, wdev is left in an inconsistent state. Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/quantenna/qtnfmac/cfg80211.c')
-rw-r--r--drivers/net/wireless/quantenna/qtnfmac/cfg80211.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
index 91830fd..edebf23 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
+++ b/drivers/net/wireless/quantenna/qtnfmac/cfg80211.c
@@ -679,7 +679,6 @@ qtnf_disconnect(struct wiphy *wiphy, struct net_device *dev,
return ret;
}
- vif->sta_state = QTNF_STA_DISCONNECTED;
return 0;
}
OpenPOWER on IntegriCloud