]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ath9k: remove warnings related to signed/unsigned type mismatch
authorJohn W. Linville <linville@tuxdriver.com>
Fri, 13 Nov 2009 18:12:59 +0000 (13:12 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 25 Nov 2009 20:20:50 +0000 (15:20 -0500)
CC [M]  drivers/net/wireless/ath/ath9k/recv.o
drivers/net/wireless/ath/ath9k/recv.c: In function `ath_rx_prepare':
drivers/net/wireless/ath/ath9k/recv.c:208: warning: comparison is always true due to limited range of data type
drivers/net/wireless/ath/ath9k/recv.c:220: warning: comparison is always false due to limited range of data type

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/common.c
drivers/net/wireless/ath/ath9k/hw.h

index 4a13632e3e4d2d6d29b045d06dbba294f505970e..d96751ccee96abc78a29a48b2ffa3e16ba503e02 100644 (file)
@@ -181,8 +181,6 @@ static void ath9k_process_rssi(struct ath_common *common,
                                              ATH_RSSI_EP_MULTIPLIER);
        if (rx_stats->rs_rssi < 0)
                rx_stats->rs_rssi = 0;
-       else if (rx_stats->rs_rssi > 127)
-               rx_stats->rs_rssi = 127;
 
        /* Update Beacon RSSI, this is used by ANI. */
        if (ieee80211_is_beacon(fc))
index f8f5e997162cd693d52ecf9d163cb636233da106..a22ed766b6ae25f1b62628769883081addb54005 100644 (file)
@@ -60,7 +60,7 @@
 
 #define        ATH_DEFAULT_NOISE_FLOOR -95
 
-#define ATH9K_RSSI_BAD                 0x80
+#define ATH9K_RSSI_BAD                 -128
 
 /* Register read/write primitives */
 #define REG_WRITE(_ah, _reg, _val) \