wl1251: remove depcreated qual usage
authorKalle Valo <kalle.valo@nokia.com>
Tue, 17 Nov 2009 16:50:01 +0000 (18:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 18 Nov 2009 22:09:23 +0000 (17:09 -0500)
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>
drivers/net/wireless/wl12xx/wl1251_rx.c

index 601fe0d..f84cc89 100644 (file)
@@ -72,10 +72,6 @@ static void wl1251_rx_status(struct wl1251 *wl,
        }
 
        status->signal = desc->rssi;
-       status->qual = (desc->rssi - WL1251_RX_MIN_RSSI) * 100 /
-               (WL1251_RX_MAX_RSSI - WL1251_RX_MIN_RSSI);
-       status->qual = min(status->qual, 100);
-       status->qual = max(status->qual, 0);
 
        /*
         * FIXME: guessing that snr needs to be divided by two, otherwise