]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: fix tracking of enabled AP beacons
authorFelix Fietkau <nbd@openwrt.org>
Thu, 12 Mar 2015 16:17:18 +0000 (17:17 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 16 Mar 2015 06:34:36 +0000 (08:34 +0200)
commit7c75a4f81e3d7ae916120956b332f0e19f2af387
tree050acf694a9d689cd426b82a7fb2c4a394556123
parent7c5590bb24005de604335dccd9203355183666a7
ath9k: fix tracking of enabled AP beacons

sc->nbcnvifs tracks assigned beacon slots, not enabled beacons.
Therefore, it cannot be used to decide if cur_conf->enable_beacon (bool)
should be updated, or if beacons have been enabled already.
With the current code (depending on the order of calls), beacons often
do not get enabled in an AP+STA setup.
To fix tracking of enabled beacons, convert cur_conf->enable_beacon to a
bitmask of enabled beacon slots.

Cc: stable@vger.kernel.org
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/beacon.c
drivers/net/wireless/ath/ath9k/common.h