X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=package%2Fmac80211%2Fpatches%2F570-ath9k_fix_ibss_beacon_slot.patch;fp=package%2Fmac80211%2Fpatches%2F570-ath9k_fix_ibss_beacon_slot.patch;h=50a5bc1182aba8d680f49d7b8f1566cdbe276393;hp=0000000000000000000000000000000000000000;hb=a9749642ac070f58ee1fa061bd85ba88ec0d0542;hpb=b8d3e12e145425f69aff6f2bf8c41140b14c0215 diff --git a/package/mac80211/patches/570-ath9k_fix_ibss_beacon_slot.patch b/package/mac80211/patches/570-ath9k_fix_ibss_beacon_slot.patch new file mode 100644 index 000000000..50a5bc118 --- /dev/null +++ b/package/mac80211/patches/570-ath9k_fix_ibss_beacon_slot.patch @@ -0,0 +1,17 @@ +--- 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,