source: trunk/package/mac80211/patches/540-ath9k_bb_hang_check_fix.patch @ 24954

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

ath9k: reduce the number of false positives triggered by the baseband hang check by only running it when beacon transmission is blocked

File size: 1.0 KB
  • drivers/net/wireless/ath/ath9k/main.c

    a b int ath_set_channel(struct ath_softc *sc 
    251251        if (!ath_stoprecv(sc)) 
    252252                stopped = false; 
    253253 
     254        if (!ath9k_hw_check_alive(ah)) 
     255                stopped = false; 
     256 
    254257        /* XXX: do not flush receive queue here. We don't want 
    255258         * to flush data frames already in queue because of 
    256259         * changing channel. */ 
    void ath9k_tasklet(unsigned long data) 
    602605 
    603606        spin_lock(&sc->sc_pcu_lock); 
    604607 
    605         if (!ath9k_hw_check_alive(ah)) 
     608        /* 
     609         * Only run the baseband hang check if beacons stop working in AP or 
     610         * IBSS mode, because it has a high false positive rate. For station 
     611         * mode it should not be necessary, since the upper layers will detect 
     612         * this through a beacon miss automatically and the following channel 
     613         * change will trigger a hardware reset anyway 
     614         */ 
     615        if (ath9k_hw_numtxpending(ah, sc->beacon.beaconq) != 0 && 
     616            !ath9k_hw_check_alive(ah)) 
    606617                ieee80211_queue_work(sc->hw, &sc->hw_check_work); 
    607618 
    608619        if (ah->caps.hw_caps & ATH9K_HW_CAP_EDMA) 
Note: See TracBrowser for help on using the repository browser.