summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ti/wlcore/rx.h
diff options
context:
space:
mode:
authorGuy Mishol <guym@ti.com>2015-07-16 11:22:47 +0300
committerKalle Valo <kvalo@codeaurora.org>2015-07-21 18:07:34 +0300
commit5d6af28a2d240602a594cea236406a9d29bc719a (patch)
tree4b8943404738be8b1269f6714aa6e3010eebfc43 /drivers/net/wireless/ti/wlcore/rx.h
parent6301566e0b2dafa7d6779598621bca867962a0a2 (diff)
downloadlinux-5d6af28a2d240602a594cea236406a9d29bc719a.tar.xz
wlcore: add antenna diversity reading
update the rssi reading on rx_status to read both RSSI level (7 bits) and antenna diversity (msb) Signed-off-by: Guy Mishol <guym@ti.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ti/wlcore/rx.h')
-rw-r--r--drivers/net/wireless/ti/wlcore/rx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/rx.h b/drivers/net/wireless/ti/wlcore/rx.h
index a3b1618db27c..f5a7087cfb97 100644
--- a/drivers/net/wireless/ti/wlcore/rx.h
+++ b/drivers/net/wireless/ti/wlcore/rx.h
@@ -30,6 +30,9 @@
#define WL1271_RX_MAX_RSSI -30
#define WL1271_RX_MIN_RSSI -95
+#define RSSI_LEVEL_BITMASK 0x7F
+#define ANT_DIVERSITY_BITMASK BIT(7)
+
#define SHORT_PREAMBLE_BIT BIT(0)
#define OFDM_RATE_BIT BIT(6)
#define PBCC_RATE_BIT BIT(7)