mt76: toggle driver station powersave bit before notifying mac80211
authorFelix Fietkau <nbd@nbd.name>
Tue, 3 Apr 2018 19:52:50 +0000 (21:52 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 24 Apr 2018 17:29:57 +0000 (20:29 +0300)
commit9f67c277a80f37a6594ae4ea3b78157773e1a23b
tree44d4069e89196ad1d5645353089580c5e4bbd1dc
parent49149d3f1c6bfb314db1f386cf5067e5151ee0aa
mt76: toggle driver station powersave bit before notifying mac80211

Avoids race conditions from mac80211 enqueueing tx packets before the
tx-drop bit is cleared

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mediatek/mt76/mac80211.c