]> git.baikalelectronics.ru Git - kernel.git/commit
mt76: mt76x02: fix beacon timer issue
authorFelix Fietkau <nbd@nbd.name>
Sun, 24 Feb 2019 10:37:18 +0000 (11:37 +0100)
committerFelix Fietkau <nbd@nbd.name>
Tue, 26 Feb 2019 09:28:18 +0000 (10:28 +0100)
commit909e5615148fcbc57b15a4d28ffcbd114f52e5b5
tree8169e5e3db9e12bded54373bf466451f195d602c
parentbef77c6a3cda346d3c5f3c000ea3776f5658cfcb
mt76: mt76x02: fix beacon timer issue

When mt76x0 and mt76x2 beacon code was unified, it changed the order in which
beacon enable and beacon interval are configured.
Configuring beacon enable before beacon interval can in some cases cause
problems with the beacon timer, leading to clients not waking up properly
from powersave mode.
Fix this by changing the order back to interval first, then enable.

Fixes: 4561f76592535 ("mt76: move mt76x02_bss_info_changed in mt76x02-lib module")
Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_util.c