aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-05-17 08:37:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-05-17 08:37:38 +0000
commite5d13905914c53bdc7416dcb54ce0e2d0e14bf59 (patch)
treed35fc4c2a56e16397bcf08ad0ff0219d384518dd
parent7cf29ea9aead5eb84b61e4b19d2cc9adebce5fa1 (diff)
downloadupstream-e5d13905914c53bdc7416dcb54ce0e2d0e14bf59.tar.gz
upstream-e5d13905914c53bdc7416dcb54ce0e2d0e14bf59.tar.bz2
upstream-e5d13905914c53bdc7416dcb54ce0e2d0e14bf59.zip
ath9k: fix ad-hoc nexttbtt calculation, which broke beacon transmission in some instances
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26915 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/mac80211/patches/571-ath9k_fix_adhoc_nexttbtt.patch11
1 files changed, 11 insertions, 0 deletions
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
index 0000000000..544c7a9c9f
--- /dev/null
+++ b/package/mac80211/patches/571-ath9k_fix_adhoc_nexttbtt.patch
@@ -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,