X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/bc7e8422cad1519f0cabbc56e6cf26cb874c1c3d..75760cfbe94c67352d65f18fc2b307e5035b1f88:/package/madwifi/patches/352-ani_fix.patch diff --git a/package/madwifi/patches/352-ani_fix.patch b/package/madwifi/patches/352-ani_fix.patch index ac1c3fec8..012966523 100644 --- a/package/madwifi/patches/352-ani_fix.patch +++ b/package/madwifi/patches/352-ani_fix.patch @@ -1,7 +1,5 @@ -Index: madwifi-trunk-r3314/ath/if_ath.c -=================================================================== ---- madwifi-trunk-r3314.orig/ath/if_ath.c 2008-06-13 03:42:29.000000000 +0200 -+++ madwifi-trunk-r3314/ath/if_ath.c 2008-06-13 03:46:33.000000000 +0200 +--- a/ath/if_ath.c ++++ b/ath/if_ath.c @@ -1014,9 +1014,7 @@ */ sc->sc_hasveol = ath_hal_hasveol(ah); @@ -100,7 +98,7 @@ Index: madwifi-trunk-r3314/ath/if_ath.c * Enable MIB interrupts when there are hardware phy counters. * Note we only do this (at the moment) for station mode. */ -- if (sc->sc_needmib) +- if (sc->sc_needmib && ic->ic_opmode == IEEE80211_M_STA) + if (sc->sc_needmib && ath_hal_getintmit(ah, NULL)) sc->sc_imask |= HAL_INT_MIB; ath_hal_intrset(ah, sc->sc_imask); @@ -250,25 +248,21 @@ Index: madwifi-trunk-r3314/ath/if_ath.c { 0 } }; -Index: madwifi-trunk-r3314/ath/if_athvar.h -=================================================================== ---- madwifi-trunk-r3314.orig/ath/if_athvar.h 2008-06-13 03:42:28.000000000 +0200 -+++ madwifi-trunk-r3314/ath/if_athvar.h 2008-06-13 03:42:29.000000000 +0200 +--- a/ath/if_athvar.h ++++ b/ath/if_athvar.h @@ -693,6 +693,10 @@ unsigned int sc_txcont_power; /* Continuous transmit power in 0.5dBm units */ unsigned int sc_txcont_rate; /* Continuous transmit rate in Mbps */ + int8_t sc_intmit; /* Interference mitigation enabled, -1 = auto, based on mode, 0/1 = off/on */ -+ int8_t sc_noise_immunity; /* Noise immunity level, 1-5, -1 == auto) */ ++ int8_t sc_noise_immunity; /* Noise immunity level, 0-4, -1 == auto) */ + int8_t sc_ofdm_weak_det; /* OFDM weak frames detection, -1 == auto */ + /* rate tables */ const HAL_RATE_TABLE *sc_rates[IEEE80211_MODE_MAX]; const HAL_RATE_TABLE *sc_currates; /* current rate table */ -Index: madwifi-trunk-r3314/ath/if_ath_hal.h -=================================================================== ---- madwifi-trunk-r3314.orig/ath/if_ath_hal.h 2008-06-13 03:42:27.000000000 +0200 -+++ madwifi-trunk-r3314/ath/if_ath_hal.h 2008-06-13 03:45:35.000000000 +0200 +--- a/ath/if_ath_hal.h ++++ b/ath/if_ath_hal.h @@ -67,14 +67,14 @@ static inline HAL_BOOL ath_hal_getdiagstate(struct ath_hal *ah, int request,