mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-02 20:16:59 +00:00
c6a93676de
SVN-Revision: 26915
12 lines
388 B
Diff
12 lines
388 B
Diff
--- 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,
|