source: trunk/package/mac80211/patches/571-ath9k_fix_adhoc_nexttbtt.patch @ 26915

Last change on this file since 26915 was 26915, checked in by nbd, 6 years ago

ath9k: fix ad-hoc nexttbtt calculation, which broke beacon transmission in some instances

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

    a b static void ath_beacon_config_adhoc(stru 
    654654                        delta = (tsf - sc->beacon.bc_tstamp); 
    655655                else 
    656656                        delta = (tsf + 1 + (~0U - sc->beacon.bc_tstamp)); 
    657                 nexttbtt = tsf + roundup(delta, intval); 
     657                nexttbtt = tsf + intval - (delta % intval); 
    658658        } 
    659659 
    660660        ath_dbg(common, ATH_DBG_BEACON, 
Note: See TracBrowser for help on using the repository browser.