diff options
author | Kalle Valo <kalle.valo@nokia.com> | 2009-11-17 11:50:01 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-11-18 17:09:23 -0500 |
commit | 7010193ad8e64dfbc006b167c2ee712d4441292c (patch) | |
tree | e977dccf9b1d3f0d3535c12b5ad2eeb261a2a06a /drivers/net/wireless | |
parent | 06cc5d3bb01350466f7a1bf64d9afe06870b6480 (diff) |
wl1251: remove depcreated qual usage
Fixes warnings:
drivers/net/wireless/wl12xx/wl1251_rx.c: In function 'wl1251_rx_status':
drivers/net/wireless/wl12xx/wl1251_rx.c:75:
warning: 'qual' is deprecated (declared at include/net/mac80211.h:555)
drivers/net/wireless/wl12xx/wl1251_rx.c:77:
warning: 'qual' is deprecated (declared at include/net/mac80211.h:555)
drivers/net/wireless/wl12xx/wl1251_rx.c:77:
warning: 'qual' is deprecated (declared at include/net/mac80211.h:555)
drivers/net/wireless/wl12xx/wl1251_rx.c:77:
warning: 'qual' is deprecated (declared at include/net/mac80211.h:555)
drivers/net/wireless/wl12xx/wl1251_rx.c:78:
warning: 'qual' is deprecated (declared at include/net/mac80211.h:555)
drivers/net/wireless/wl12xx/wl1251_rx.c:78:
warning: 'qual' is deprecated (declared at include/net/mac80211.h:555)
drivers/net/wireless/wl12xx/wl1251_rx.c:78:
warning: 'qual' is deprecated (declared at include/net/mac80211.h:555)
Signed-off-by: Kalle Valo <kalle.valo@nokia.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_rx.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_rx.c b/drivers/net/wireless/wl12xx/wl1251_rx.c index 601fe0d67827..f84cc89cbffc 100644 --- a/drivers/net/wireless/wl12xx/wl1251_rx.c +++ b/drivers/net/wireless/wl12xx/wl1251_rx.c | |||
@@ -72,10 +72,6 @@ static void wl1251_rx_status(struct wl1251 *wl, | |||
72 | } | 72 | } |
73 | 73 | ||
74 | status->signal = desc->rssi; | 74 | status->signal = desc->rssi; |
75 | status->qual = (desc->rssi - WL1251_RX_MIN_RSSI) * 100 / | ||
76 | (WL1251_RX_MAX_RSSI - WL1251_RX_MIN_RSSI); | ||
77 | status->qual = min(status->qual, 100); | ||
78 | status->qual = max(status->qual, 0); | ||
79 | 75 | ||
80 | /* | 76 | /* |
81 | * FIXME: guessing that snr needs to be divided by two, otherwise | 77 | * FIXME: guessing that snr needs to be divided by two, otherwise |