summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>2018-01-22 13:46:31 +0100
committerKalle Valo <kvalo@codeaurora.org>2018-01-24 17:00:50 +0100
commit39845020b39eea4a1e5db9ea4818a967b567e2e2 (patch)
tree51a6a5e92f61f4d9c7f606d3c1325f6e227b3101 /drivers
parentqtnfmac: validate interface combinations on changes (diff)
downloadlinux-39845020b39eea4a1e5db9ea4818a967b567e2e2.tar.xz
linux-39845020b39eea4a1e5db9ea4818a967b567e2e2.zip
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')
-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 91830fd41508..edebf23e8eae 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;
}