rename patches-r3776 to patches-testing
[openwrt/svn-archive/archive.git] / package / madwifi / patches-testing / 302-noise_get.patch
1 --- a/ath/if_ath.c
2 +++ b/ath/if_ath.c
3 @@ -8997,6 +8997,7 @@
4 ATH_LONG_CALINTERVAL_SECS :
5 ATH_SHORT_CALINTERVAL_SECS;
6 }
7 + ic->ic_channoise = ath_hal_get_channel_noise(ah, &(sc->sc_curchan));
8
9 DPRINTF(sc, ATH_DEBUG_CALIBRATE, "Channel %u [flags=%04x] -- IQ %s.\n",
10 sc->sc_curchan.channel, sc->sc_curchan.channelFlags,
11 @@ -9052,6 +9053,7 @@
12 struct ath_softc *sc = dev->priv;
13
14 (void) ath_chan_set(sc, ic->ic_curchan);
15 + ic->ic_channoise = ath_hal_get_channel_noise(sc->sc_ah, &(sc->sc_curchan));
16 /*
17 * If we are returning to our bss channel then mark state
18 * so the next recv'd beacon's TSF will be used to sync the
19 --- a/net80211/ieee80211_wireless.c
20 +++ b/net80211/ieee80211_wireless.c
21 @@ -4396,6 +4396,7 @@
22 si->isi_state = ni->ni_flags;
23 si->isi_authmode = ni->ni_authmode;
24 si->isi_rssi = ic->ic_node_getrssi(ni);
25 + si->isi_noise = ic->ic_channoise;
26 si->isi_capinfo = ni->ni_capinfo;
27 si->isi_athflags = ni->ni_ath_flags;
28 si->isi_erp = ni->ni_erp;
29 --- a/net80211/ieee80211_ioctl.h
30 +++ b/net80211/ieee80211_ioctl.h
31 @@ -312,6 +312,7 @@
32 u_int16_t isi_state; /* state flags */
33 u_int8_t isi_authmode; /* authentication algorithm */
34 u_int8_t isi_rssi;
35 + int8_t isi_noise;
36 u_int16_t isi_capinfo; /* capabilities */
37 u_int8_t isi_athflags; /* Atheros capabilities */
38 u_int8_t isi_erp; /* ERP element */