refresh madwifi patches, fix an issue with napi polling (thx SeG)
[openwrt/svn-archive/archive.git] / package / madwifi / patches / 310-noise_get.patch
1 Index: madwifi-trunk-r3314/ath/if_ath.c
2 ===================================================================
3 --- madwifi-trunk-r3314.orig/ath/if_ath.c 2008-02-20 21:58:41.864545316 +0100
4 +++ madwifi-trunk-r3314/ath/if_ath.c 2008-02-20 21:58:45.732765757 +0100
5 @@ -1692,8 +1692,6 @@
6 * get to reality. This value is used in monitor mode and by tools like
7 * Wireshark and Kismet.
8 */
9 - ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
10 -
11 ATH_RXBUF_LOCK_IRQ(sc);
12 if (sc->sc_rxbufcur == NULL)
13 sc->sc_rxbufcur = STAILQ_FIRST(&sc->sc_rxbuf);
14 @@ -8959,6 +8957,7 @@
15 sc->sc_curchan.channel);
16 sc->sc_stats.ast_per_calfail++;
17 }
18 + ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
19
20 ath_hal_process_noisefloor(ah);
21 if (isIQdone == AH_TRUE) {
22 @@ -9027,6 +9026,7 @@
23 struct ath_softc *sc = dev->priv;
24
25 (void) ath_chan_set(sc, ic->ic_curchan);
26 + ic->ic_channoise = ath_hal_get_channel_noise(sc->sc_ah, &(sc->sc_curchan));
27 /*
28 * If we are returning to our bss channel then mark state
29 * so the next recv'd beacon's TSF will be used to sync the
30 @@ -9295,6 +9295,7 @@
31 }
32
33 ath_hal_process_noisefloor(ah);
34 + ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
35 /*
36 * Reset rssi stats; maybe not the best place...
37 */