X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/18a605bf0b48420b0385f75c886d43c81435f532..123751454e9f50919c861d4c0d427cf2779dda7f:/package/madwifi/patches/328-ani_stuff.patch diff --git a/package/madwifi/patches/328-ani_stuff.patch b/package/madwifi/patches/328-ani_stuff.patch index c534eecce..32fa89d6f 100644 --- a/package/madwifi/patches/328-ani_stuff.patch +++ b/package/madwifi/patches/328-ani_stuff.patch @@ -1,16 +1,16 @@ Index: madwifi-trunk-r3314/ath/if_ath.c =================================================================== ---- madwifi-trunk-r3314.orig/ath/if_ath.c 2008-01-31 03:59:25.474330368 +0100 -+++ madwifi-trunk-r3314/ath/if_ath.c 2008-01-31 04:00:30.254021949 +0100 -@@ -6686,8 +6686,9 @@ - - *budget -= processed; +--- madwifi-trunk-r3314.orig/ath/if_ath.c 2008-03-07 00:38:26.748463672 +0100 ++++ madwifi-trunk-r3314/ath/if_ath.c 2008-03-07 00:38:51.285861974 +0100 +@@ -6753,8 +6753,9 @@ + dev->quota -= processed; + #endif - /* rx signal state monitoring */ - ath_hal_rxmonitor(ah, &sc->sc_halstats, &sc->sc_curchan); + /* rx signal state monitoring, only necessary/applicable for sta mode */ + if (sc->sc_opmode == HAL_M_STA) + ath_hal_rxmonitor(ah, &sc->sc_halstats, &sc->sc_curchan); - return early_stop; - #undef PA2DESC - } + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24) + return processed; + #else