diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-07-28 16:41:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-29 12:46:49 -0400 |
commit | ece550d0e416b4146e1ec3d934f9773dbf8c7242 (patch) | |
tree | cfdce97332f066556a0c80746c4ef2f4a0f80a67 /drivers/net/wireless/wl12xx/wl1271_rx.c | |
parent | bef9cb589d37c5eb2e3fb9e529fa3933db4dda19 (diff) |
wl1271: add get_survey callback in order to get channel noise
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Acked-by: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_rx.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1271_rx.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_rx.c b/drivers/net/wireless/wl12xx/wl1271_rx.c index e98f22b3c3ba..019aa79cd9df 100644 --- a/drivers/net/wireless/wl12xx/wl1271_rx.c +++ b/drivers/net/wireless/wl12xx/wl1271_rx.c | |||
@@ -55,6 +55,13 @@ static void wl1271_rx_status(struct wl1271 *wl, | |||
55 | 55 | ||
56 | status->signal = desc->rssi; | 56 | status->signal = desc->rssi; |
57 | 57 | ||
58 | /* | ||
59 | * FIXME: In wl1251, the SNR should be divided by two. In wl1271 we | ||
60 | * need to divide by two for now, but TI has been discussing about | ||
61 | * changing it. This needs to be rechecked. | ||
62 | */ | ||
63 | wl->noise = desc->rssi - (desc->snr >> 1); | ||
64 | |||
58 | status->freq = ieee80211_channel_to_frequency(desc->channel); | 65 | status->freq = ieee80211_channel_to_frequency(desc->channel); |
59 | 66 | ||
60 | if (desc->flags & WL1271_RX_DESC_ENCRYPT_MASK) { | 67 | if (desc->flags & WL1271_RX_DESC_ENCRYPT_MASK) { |