1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-09-12 17:12:25 +03:00
openwrt-xburst/package/mac80211/patches/570-ath9k_fix_ibss_beacon_slot.patch
nbd 997a13bb0d ath9k: fix adhoc beacon issues (#9163)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26395 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-04-02 01:10:01 +00:00

18 lines
743 B
Diff

--- a/drivers/net/wireless/ath/ath9k/beacon.c
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
@@ -392,14 +392,6 @@ void ath_beacon_tasklet(unsigned long da
tsf += TU_TO_USEC(ah->config.sw_beacon_response_time);
tsftu = TSF_TO_TU((tsf * ATH_BCBUF) >>32, tsf * ATH_BCBUF);
slot = (tsftu % (intval * ATH_BCBUF)) / intval;
- /*
- * Reverse the slot order to get slot 0 on the TBTT offset that does
- * not require TSF adjustment and other slots adding
- * slot/ATH_BCBUF * beacon_int to timestamp. For example, with
- * ATH_BCBUF = 4, we process beacon slots as follows: 3 2 1 0 3 2 1 ..
- * and slot 0 is at correct offset to TBTT.
- */
- slot = ATH_BCBUF - slot - 1;
vif = sc->beacon.bslot[slot];
ath_dbg(common, ATH_DBG_BEACON,