Skip to content
  • Felix Fietkau's avatar
    ath9k: fix stuck beacon detection · c944daf4
    Felix Fietkau authored
    
    
    Stuck beacon detection is supposed to trigger when 9 consecutive beacons
    could not be sent by the hardware. When the driver runs only one active
    AP mode interface, it still configures the hardware beacon timer for
    4 (ATH_BCBUF) beacon slots slots, which causes stuck beacon detection
    to be reset if ath9k_hw_stoptxdma clears the stuck frames between
    SWBA intervals.
    Fix this by not resetting the missed beacon count for empty slots and
    multiplying the threshold not by the maximum number of beacon slots
    but by the configured number of beacon interfaces.
    
    Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    c944daf4