source: trunk/package/mac80211/patches/552-ath9k_fix_phyerror.patch @ 28383

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

ath9k: extend the phy error disable patch

File size: 1.2 KB
  • drivers/net/wireless/ath/ath9k/recv.c

    a b void ath_rx_cleanup(struct ath_softc *sc 
    425425 
    426426u32 ath_calcrxfilter(struct ath_softc *sc) 
    427427{ 
    428 #define RX_FILTER_PRESERVE (ATH9K_RX_FILTER_PHYERR | ATH9K_RX_FILTER_PHYRADAR) 
    429  
    430428        u32 rfilt; 
    431429 
    432         rfilt = (ath9k_hw_getrxfilter(sc->sc_ah) & RX_FILTER_PRESERVE) 
    433                 | ATH9K_RX_FILTER_UCAST | ATH9K_RX_FILTER_BCAST 
     430        rfilt = ATH9K_RX_FILTER_UCAST | ATH9K_RX_FILTER_BCAST 
    434431                | ATH9K_RX_FILTER_MCAST; 
    435432 
    436433        if (sc->rx.rxfilter & FIF_PROBE_REQ) 
  • drivers/net/wireless/ath/ath9k/ani.c

    a b static void ath9k_ani_reset_old(struct a 
    502502                ath9k_hw_ani_control(ah, ATH9K_ANI_CCK_WEAK_SIGNAL_THR, 
    503503                                     ATH9K_ANI_CCK_WEAK_SIG_THR); 
    504504 
    505                 ath9k_hw_setrxfilter(ah, ath9k_hw_getrxfilter(ah) | 
    506                                      ATH9K_RX_FILTER_PHYERR); 
    507  
    508505                ath9k_ani_restart(ah); 
    509506                return; 
    510507        } 
    static void ath9k_ani_reset_old(struct a 
    525522                ath9k_hw_ani_control(ah, ATH9K_ANI_FIRSTEP_LEVEL, 
    526523                                     aniState->firstepLevel); 
    527524 
    528         ath9k_hw_setrxfilter(ah, ath9k_hw_getrxfilter(ah) & 
    529                              ~ATH9K_RX_FILTER_PHYERR); 
    530525        ath9k_ani_restart(ah); 
    531526 
    532527        ENABLE_REGWRITE_BUFFER(ah); 
Note: See TracBrowser for help on using the repository browser.