refresh madwifi patches, fix an issue with napi polling (thx SeG)
[oweals/openwrt.git] / package / madwifi / patches / 328-ani_stuff.patch
1 Index: madwifi-trunk-r3314/ath/if_ath.c
2 ===================================================================
3 --- madwifi-trunk-r3314.orig/ath/if_ath.c       2008-02-20 21:59:01.609670527 +0100
4 +++ madwifi-trunk-r3314/ath/if_ath.c    2008-02-20 21:59:04.037808900 +0100
5 @@ -6752,8 +6752,9 @@
6         *budget -= processed;
7  #endif
8  
9 -       /* rx signal state monitoring */
10 -       ath_hal_rxmonitor(ah, &sc->sc_halstats, &sc->sc_curchan);
11 +       /* rx signal state monitoring, only necessary/applicable for sta mode */
12 +       if (sc->sc_opmode == HAL_M_STA)
13 +               ath_hal_rxmonitor(ah, &sc->sc_halstats, &sc->sc_curchan);
14         return early_stop;
15  #undef PA2DESC
16  }