mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-20 18:13:43 +02:00
1bb8660d89
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26915 3c298f89-4303-0410-b956-a3cf2f4a3e73
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,
|