aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-02-22 21:09:17 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-14 11:32:05 -0700
commitb77a7b64bd40be69cf9e4476640349f9ad98fb88 (patch)
tree847f2612cf79dc9a2ca8dd7ce6429d4e01ae6447 /drivers/net/wireless
parent728975e1e15673f9e45ee5d0f1581d8787f3c3b7 (diff)
downloadkernel_samsung_tuna-b77a7b64bd40be69cf9e4476640349f9ad98fb88.zip
kernel_samsung_tuna-b77a7b64bd40be69cf9e4476640349f9ad98fb88.tar.gz
kernel_samsung_tuna-b77a7b64bd40be69cf9e4476640349f9ad98fb88.tar.bz2
ath9k: fix RSSI dummy marker value
commit a3d63cadbad97671d740a9698acc2c95d1ca6e79 upstream. RSSI is being stored internally as s8 in several places. The indication of an unset RSSI value, ATH_RSSI_DUMMY_MARKER, was supposed to have been set to 127, but ended up being set to 0x127 because of a code cleanup mistake. This could lead to invalid signal strength values in a few places. Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath9k/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/common.h b/drivers/net/wireless/ath/ath9k/common.h
index 77ec288..247f7f8 100644
--- a/drivers/net/wireless/ath/ath9k/common.h
+++ b/drivers/net/wireless/ath/ath9k/common.h
@@ -35,7 +35,7 @@
#define WME_AC_BK 3
#define WME_NUM_AC 4
-#define ATH_RSSI_DUMMY_MARKER 0x127
+#define ATH_RSSI_DUMMY_MARKER 127
#define ATH_RSSI_LPF_LEN 10
#define RSSI_LPF_THRESHOLD -20
#define ATH_RSSI_EP_MULTIPLIER (1<<7)