summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/common.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-02-22 21:09:17 +0100
committerJohn W. Linville <linville@tuxdriver.com>2013-02-27 14:12:51 -0500
commita3d63cadbad97671d740a9698acc2c95d1ca6e79 (patch)
tree86a62f8c3cf1d9e82c5ff0009da018c6b4c037cb /drivers/net/wireless/ath/ath9k/common.h
parent1615a7434e823ea5002934f6805a501082bf5d39 (diff)
downloadop-kernel-dev-a3d63cadbad97671d740a9698acc2c95d1ca6e79.zip
op-kernel-dev-a3d63cadbad97671d740a9698acc2c95d1ca6e79.tar.gz
ath9k: fix RSSI dummy marker value
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> Cc: stable@vger.kernel.org Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/common.h')
-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 5f845be..050ca4a 100644
--- a/drivers/net/wireless/ath/ath9k/common.h
+++ b/drivers/net/wireless/ath/ath9k/common.h
@@ -27,7 +27,7 @@
#define WME_MAX_BA WME_BA_BMP_SIZE
#define ATH_TID_MAX_BUFS (2 * WME_MAX_BA)
-#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)
OpenPOWER on IntegriCloud