qtnfmac: fix STA disconnect procedure
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Mon, 22 Jan 2018 12:46:31 +0000 (15:46 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jan 2018 16:00:50 +0000 (18:00 +0200)
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>
drivers/net/wireless/quantenna/qtnfmac/cfg80211.c

index 91830fd415087510419bb0a875b93cd838a2a5f7..edebf23e8eae66218ec726b0fe6c27ca77e5d56f 100644 (file)
@@ -679,7 +679,6 @@ qtnf_disconnect(struct wiphy *wiphy, struct net_device *dev,
                return ret;
        }
 
-       vif->sta_state = QTNF_STA_DISCONNECTED;
        return 0;
 }