4 * get to reality. This value is used in monitor mode and by tools like
5 * Wireshark and Kismet.
7 - ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
9 ATH_RXBUF_LOCK_IRQ(sc);
10 if (sc->sc_rxbufcur == NULL)
11 sc->sc_rxbufcur = STAILQ_FIRST(&sc->sc_rxbuf);
13 sc->sc_curchan.channel);
14 sc->sc_stats.ast_per_calfail++;
16 + ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
18 ath_hal_process_noisefloor(ah);
19 if (isIQdone == AH_TRUE) {
21 struct ath_softc *sc = dev->priv;
23 (void) ath_chan_set(sc, ic->ic_curchan);
24 + ic->ic_channoise = ath_hal_get_channel_noise(sc->sc_ah, &(sc->sc_curchan));
26 * If we are returning to our bss channel then mark state
27 * so the next recv'd beacon's TSF will be used to sync the
31 ath_hal_process_noisefloor(ah);
32 + ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
34 * Reset rssi stats; maybe not the best place...
36 --- a/net80211/ieee80211_wireless.c
37 +++ b/net80211/ieee80211_wireless.c
39 si->isi_state = ni->ni_flags;
40 si->isi_authmode = ni->ni_authmode;
41 si->isi_rssi = ic->ic_node_getrssi(ni);
42 + si->isi_noise = ic->ic_channoise;
43 si->isi_capinfo = ni->ni_capinfo;
44 si->isi_athflags = ni->ni_ath_flags;
45 si->isi_erp = ni->ni_erp;
46 --- a/net80211/ieee80211_ioctl.h
47 +++ b/net80211/ieee80211_ioctl.h
49 u_int16_t isi_state; /* state flags */
50 u_int8_t isi_authmode; /* authentication algorithm */
53 u_int16_t isi_capinfo; /* capabilities */
54 u_int8_t isi_athflags; /* Atheros capabilities */
55 u_int8_t isi_erp; /* ERP element */