ath9k: fix ad-hoc nexttbtt calculation, which broke beacon transmission in some instances
SVN-Revision: 26915
This commit is contained in:
parent
7b84bc2f39
commit
c6a93676de
1 changed files with 11 additions and 0 deletions
11
package/mac80211/patches/571-ath9k_fix_adhoc_nexttbtt.patch
Normal file
11
package/mac80211/patches/571-ath9k_fix_adhoc_nexttbtt.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/drivers/net/wireless/ath/ath9k/beacon.c
|
||||
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
|
||||
@@ -654,7 +654,7 @@ static void ath_beacon_config_adhoc(stru
|
||||
delta = (tsf - sc->beacon.bc_tstamp);
|
||||
else
|
||||
delta = (tsf + 1 + (~0U - sc->beacon.bc_tstamp));
|
||||
- nexttbtt = tsf + roundup(delta, intval);
|
||||
+ nexttbtt = tsf + intval - (delta % intval);
|
||||
}
|
||||
|
||||
ath_dbg(common, ATH_DBG_BEACON,
|
Loading…
Reference in a new issue