summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2009-01-13 14:35:08 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-01-16 17:08:23 -0500
commit9d97f2e55e3df44e3b6b4cc58b091501ba7ee0ac (patch)
tree7261cd1fb8d2d411916c4ec49a22213a9f10547a
parentb657eade2f98b5c689e405bd6e4e445471066380 (diff)
downloadop-kernel-dev-9d97f2e55e3df44e3b6b4cc58b091501ba7ee0ac.zip
op-kernel-dev-9d97f2e55e3df44e3b6b4cc58b091501ba7ee0ac.tar.gz
ath9k: Fix an operator typo in REG_DOMAIN_2GHZ_MASK
Incorrect operator causes the REG_DOMAIN_2GHZ_MASK to be zero which surely was not the goal of this definition. Mask out the 11a flags correctly. Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath9k/regd_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/regd_common.h b/drivers/net/wireless/ath9k/regd_common.h
index 9112c03..6df1b3b 100644
--- a/drivers/net/wireless/ath9k/regd_common.h
+++ b/drivers/net/wireless/ath9k/regd_common.h
@@ -228,7 +228,7 @@ enum {
};
#define REG_DOMAIN_2GHZ_MASK (REQ_MASK & \
- (!(ADHOC_NO_11A | DISALLOW_ADHOC_11A | DISALLOW_ADHOC_11A_TURB)))
+ (~(ADHOC_NO_11A | DISALLOW_ADHOC_11A | DISALLOW_ADHOC_11A_TURB)))
#define REG_DOMAIN_5GHZ_MASK REQ_MASK
static struct reg_dmn_pair_mapping regDomainPairs[] = {
OpenPOWER on IntegriCloud