source: branches/backfire/package/mac80211/patches/570-ath9k_fix_ibss_beacon_slot.patch @ 26396

Last change on this file since 26396 was 26396, checked in by nbd, 5 years ago

ath9k: fix adhoc beacon issues (#9163, backport of r26395)

File size: 743 bytes
  • drivers/net/wireless/ath/ath9k/beacon.c

    a b void ath_beacon_tasklet(unsigned long da 
    392392        tsf += TU_TO_USEC(ah->config.sw_beacon_response_time); 
    393393        tsftu = TSF_TO_TU((tsf * ATH_BCBUF) >>32, tsf * ATH_BCBUF); 
    394394        slot = (tsftu % (intval * ATH_BCBUF)) / intval; 
    395         /* 
    396          * Reverse the slot order to get slot 0 on the TBTT offset that does 
    397          * not require TSF adjustment and other slots adding 
    398          * slot/ATH_BCBUF * beacon_int to timestamp. For example, with 
    399          * ATH_BCBUF = 4, we process beacon slots as follows: 3 2 1 0 3 2 1 .. 
    400          * and slot 0 is at correct offset to TBTT. 
    401          */ 
    402         slot = ATH_BCBUF - slot - 1; 
    403395        vif = sc->beacon.bslot[slot]; 
    404396 
    405397        ath_dbg(common, ATH_DBG_BEACON, 
Note: See TracBrowser for help on using the repository browser.