add a fix for memleaks caused by failed memory allocations
[openwrt.git] / package / madwifi / patches / 310-noise_get.patch
1 Index: madwifi-trunk-r3280/ath/if_ath.c
2 ===================================================================
3 --- madwifi-trunk-r3280.orig/ath/if_ath.c 2008-01-28 17:30:33.325904012 +0100
4 +++ madwifi-trunk-r3280/ath/if_ath.c 2008-01-28 17:31:21.850243393 +0100
5 @@ -1674,8 +1674,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 @@ -8868,6 +8866,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 @@ -8936,6 +8935,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 @@ -9204,6 +9204,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 */
This page took 0.041822 seconds and 5 git commands to generate.