ath9k: fix ad-hoc nexttbtt calculation, which broke beacon transmission in some instances
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 17 May 2011 08:37:38 +0000 (08:37 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 17 May 2011 08:37:38 +0000 (08:37 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26915 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/patches/571-ath9k_fix_adhoc_nexttbtt.patch [new file with mode: 0644]

diff --git a/package/mac80211/patches/571-ath9k_fix_adhoc_nexttbtt.patch b/package/mac80211/patches/571-ath9k_fix_adhoc_nexttbtt.patch
new file mode 100644 (file)
index 0000000..544c7a9
--- /dev/null
@@ -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,
This page took 0.026003 seconds and 4 git commands to generate.