• F
    ath9k: fix tracking of enabled AP beacons · 1cf48f22
    Felix Fietkau 提交于
    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: NFelix Fietkau <nbd@openwrt.org>
    Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
    1cf48f22
common.h 3.2 KB