Skip to content

Commit

Permalink
ath9k: Fix an operator typo in REG_DOMAIN_2GHZ_MASK
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jouni Malinen authored and John W. Linville committed Jan 16, 2009
1 parent b657ead commit 9d97f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath9k/regd_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down

0 comments on commit 9d97f2e

Please sign in to comment.