ath9k: clean up tx fifo handling on ar9380 based hardware
[openwrt.git] / package / mac80211 / patches / 571-ath9k_fix_adhoc_nexttbtt.patch
1 --- a/drivers/net/wireless/ath/ath9k/beacon.c
2 +++ b/drivers/net/wireless/ath/ath9k/beacon.c
3 @@ -654,7 +654,7 @@ static void ath_beacon_config_adhoc(stru
4 delta = (tsf - sc->beacon.bc_tstamp);
5 else
6 delta = (tsf + 1 + (~0U - sc->beacon.bc_tstamp));
7 - nexttbtt = tsf + roundup(delta, intval);
8 + nexttbtt = tsf + intval - (delta % intval);
9 }
10
11 ath_dbg(common, ATH_DBG_BEACON,
This page took 0.049131 seconds and 5 git commands to generate.