2008-02-20 23:26:21 +02:00
|
|
|
Index: madwifi-trunk-r3314/ath/if_ath.c
|
2007-10-27 20:51:52 +03:00
|
|
|
===================================================================
|
2008-02-20 23:26:21 +02:00
|
|
|
--- madwifi-trunk-r3314.orig/ath/if_ath.c 2008-02-20 21:58:41.864545316 +0100
|
|
|
|
+++ madwifi-trunk-r3314/ath/if_ath.c 2008-02-20 21:58:45.732765757 +0100
|
|
|
|
@@ -1692,8 +1692,6 @@
|
2008-01-28 20:34:06 +02:00
|
|
|
* get to reality. This value is used in monitor mode and by tools like
|
|
|
|
* Wireshark and Kismet.
|
|
|
|
*/
|
2007-10-27 20:51:52 +03:00
|
|
|
- ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
|
2008-01-28 20:34:06 +02:00
|
|
|
-
|
2007-10-27 20:51:52 +03:00
|
|
|
ATH_RXBUF_LOCK_IRQ(sc);
|
|
|
|
if (sc->sc_rxbufcur == NULL)
|
2008-01-28 20:34:06 +02:00
|
|
|
sc->sc_rxbufcur = STAILQ_FIRST(&sc->sc_rxbuf);
|
2008-02-20 23:26:21 +02:00
|
|
|
@@ -8959,6 +8957,7 @@
|
2008-01-28 20:34:06 +02:00
|
|
|
sc->sc_curchan.channel);
|
|
|
|
sc->sc_stats.ast_per_calfail++;
|
2007-11-28 00:06:27 +02:00
|
|
|
}
|
2007-10-27 20:51:52 +03:00
|
|
|
+ ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
|
|
|
|
|
2008-01-28 20:34:06 +02:00
|
|
|
ath_hal_process_noisefloor(ah);
|
|
|
|
if (isIQdone == AH_TRUE) {
|
2008-02-20 23:26:21 +02:00
|
|
|
@@ -9027,6 +9026,7 @@
|
2007-10-27 20:51:52 +03:00
|
|
|
struct ath_softc *sc = dev->priv;
|
|
|
|
|
|
|
|
(void) ath_chan_set(sc, ic->ic_curchan);
|
2007-10-28 02:21:40 +03:00
|
|
|
+ ic->ic_channoise = ath_hal_get_channel_noise(sc->sc_ah, &(sc->sc_curchan));
|
2007-10-27 20:51:52 +03:00
|
|
|
/*
|
|
|
|
* If we are returning to our bss channel then mark state
|
|
|
|
* so the next recv'd beacon's TSF will be used to sync the
|
2008-02-20 23:26:21 +02:00
|
|
|
@@ -9295,6 +9295,7 @@
|
2007-10-27 20:51:52 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
ath_hal_process_noisefloor(ah);
|
|
|
|
+ ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
|
|
|
|
/*
|
2007-12-13 06:26:55 +02:00
|
|
|
* Reset rssi stats; maybe not the best place...
|
2007-10-27 20:51:52 +03:00
|
|
|
*/
|