ath9k: Fix an operator typo in REG_DOMAIN_2GHZ_MASK
PATCH 1/1 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 <[email protected]>
--- drivers/net/wireless/ath9k/regd_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath9k/regd_common.h +1 -1
@@ -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_MASKstatic struct reg_dmn_pair_mapping regDomainPairs[] = {
Signature · 1 line
Jouni Malinen PGP id EFC895FA