ath9k: fix adhoc beacon issues (#9163)
[openwrt/svn-archive/archive.git] / package / mac80211 / patches / 570-ath9k_fix_ibss_beacon_slot.patch
1 --- a/drivers/net/wireless/ath/ath9k/beacon.c
2 +++ b/drivers/net/wireless/ath/ath9k/beacon.c
3 @@ -392,14 +392,6 @@ void ath_beacon_tasklet(unsigned long da
4 tsf += TU_TO_USEC(ah->config.sw_beacon_response_time);
5 tsftu = TSF_TO_TU((tsf * ATH_BCBUF) >>32, tsf * ATH_BCBUF);
6 slot = (tsftu % (intval * ATH_BCBUF)) / intval;
7 - /*
8 - * Reverse the slot order to get slot 0 on the TBTT offset that does
9 - * not require TSF adjustment and other slots adding
10 - * slot/ATH_BCBUF * beacon_int to timestamp. For example, with
11 - * ATH_BCBUF = 4, we process beacon slots as follows: 3 2 1 0 3 2 1 ..
12 - * and slot 0 is at correct offset to TBTT.
13 - */
14 - slot = ATH_BCBUF - slot - 1;
15 vif = sc->beacon.bslot[slot];
16
17 ath_dbg(common, ATH_DBG_BEACON,