summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-config.h
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2013-12-13 19:14:28 +0100
committerJohn W. Linville <linville@tuxdriver.com>2013-12-13 19:14:28 +0100
commitf647a52e1576f9c92cc9c02d5756cd0207295a2b (patch)
tree9e8e69dd01504fad5523c99d7e125e8ff865b65c /drivers/net/wireless/iwlwifi/iwl-config.h
parentipv6: fix incorrect type in declaration (diff)
parentath9k: initialize retry chain flags in tx99 code (diff)
downloadlinux-f647a52e1576f9c92cc9c02d5756cd0207295a2b.tar.xz
linux-f647a52e1576f9c92cc9c02d5756cd0207295a2b.zip
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-config.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-config.h b/drivers/net/wireless/iwlwifi/iwl-config.h
index 03fd9aa8bfda..0b916249669e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-config.h
+++ b/drivers/net/wireless/iwlwifi/iwl-config.h
@@ -129,6 +129,12 @@ enum iwl_led_mode {
#define ANT_BC (ANT_B | ANT_C)
#define ANT_ABC (ANT_A | ANT_B | ANT_C)
+static inline u8 num_of_ant(u8 mask)
+{
+ return !!((mask) & ANT_A) +
+ !!((mask) & ANT_B) +
+ !!((mask) & ANT_C);
+}
/*
* @max_ll_items: max number of OTP blocks