OSDN Git Service

mt76: clear sta powersave flag after notifying driver
authorFelix Fietkau <nbd@nbd.name>
Thu, 25 Nov 2021 12:42:32 +0000 (13:42 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sun, 19 Dec 2021 14:24:01 +0000 (15:24 +0100)
commit608f7c47dfad80444f6d7bd3234314b273c7286b
tree4ac689145ecb259768e7176f3d86d792b8a9f738
parent2c70627b09aced3593d8b9419b908f5e1a13318a
mt76: clear sta powersave flag after notifying driver

If the driver has configured the hardware to drop packets for a sta that was
in powersave mode, then clearing the flag too early opens up a small race
window during which packets could be dropped on wakeup

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