1 Index: madwifi-ng-r2799-20071030/ath/if_ath.c
2 ===================================================================
3 --- madwifi-ng-r2799-20071030.orig/ath/if_ath.c 2007-10-31 14:04:52.073588984 +0100
4 +++ madwifi-ng-r2799-20071030/ath/if_ath.c 2007-10-31 14:04:52.417608587 +0100
6 * Wireshark and Kismet.
8 hw_tsf = ath_hal_gettsf64(ah);
9 - ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
11 ATH_RXBUF_LOCK_IRQ(sc);
12 if (sc->sc_rxbufcur == NULL)
14 struct net_device *dev = (struct net_device *) arg;
15 struct ath_softc *sc = dev->priv;
16 struct ath_hal *ah = sc->sc_ah;
17 + struct ieee80211com *ic = &sc->sc_ic;
18 /* u_int32_t nchans; */
19 HAL_BOOL isIQdone = AH_FALSE;
22 ath_calinterval = ATH_LONG_CALINTERVAL;
24 ath_calinterval = ATH_SHORT_CALINTERVAL;
25 + ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
27 sc->sc_cal_ch.expires = jiffies + (ath_calinterval * HZ);
28 add_timer(&sc->sc_cal_ch);
30 struct ath_softc *sc = dev->priv;
32 (void) ath_chan_set(sc, ic->ic_curchan);
33 + ic->ic_channoise = ath_hal_get_channel_noise(sc->sc_ah, &(sc->sc_curchan));
35 * If we are returning to our bss channel then mark state
36 * so the next recv'd beacon's TSF will be used to sync the
40 ath_hal_process_noisefloor(ah);
41 + ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
43 * Configure the beacon and sleep timers.