]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[ath] Don't re-program the beacon timers if we miss a beacon in software-beacon STA...
authorAdrian Chadd <adrian@FreeBSD.org>
Mon, 1 Jun 2020 06:10:25 +0000 (06:10 +0000)
committerAdrian Chadd <adrian@FreeBSD.org>
Mon, 1 Jun 2020 06:10:25 +0000 (06:10 +0000)
commitf6287cc63c7283ef4b789b5ff1b8fe24660f8073
tree76f28169ed1fc59efa2ecdeb251eafda2ff9b417
parent694f3fc81c43969075ac28c0555ebc88083e7127
[ath] Don't re-program the beacon timers if we miss a beacon in software-beacon STA mode.

This is something I added a few years ago to handle resyncing the beacon if
we miss a beacon or need to sync after association/reassociation/powersave.

However, if we're doing STA+AP mode (eg DWDS) then we don't want
to reprogram the beacons here; this may upset normal AP operation.
I missed checking for the sc->sc_swbmiss flag so I was reinitialising
the beacon timers after every beacon miss / TSFOOR option, and
that isn't likely good.

This plus ensuring that STA's are created with "-beacon" to disable
BMISS/TSFOOR processing will hopefully quieten some of the issues
I've seen with missed beacons / TSFOOR (out of range) interrupts
coming in when operating in STA mode.

Tested:

* AR9380/AR9580, STA+AP modes
sys/dev/ath/if_ath_rx.c