mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Fix a missing initialisation of bt_flags when setting up the TDMA beacon.
The AR5212 HAL didn't check this field; timers are enabled a different way. The AR5416 HAL however did, and since this field was uninitialised, it had whatever was on the stack at the time. This lead to "unpredictable" behaviour. This allows TDMA to work on the AR5416 and later chipsets. Thanks to: paradyse@gmail.com Approved by: re (kib, blanket)
This commit is contained in:
parent
630f2154f2
commit
f3fb16875c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=225145
@ -5485,6 +5485,8 @@ ath_tdma_settimers(struct ath_softc *sc, u_int32_t nexttbtt, u_int32_t bintval)
|
||||
bt.bt_nextdba = (nexttbtt<<3) - sc->sc_tdmadbaprep;
|
||||
bt.bt_nextswba = (nexttbtt<<3) - sc->sc_tdmaswbaprep;
|
||||
bt.bt_nextatim = nexttbtt+1;
|
||||
/* Enables TBTT, DBA, SWBA timers by default */
|
||||
bt.bt_flags = 0;
|
||||
ath_hal_beaconsettimers(ah, &bt);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user