ath9k: fix 802.11g conformance test limit typo
authorBob Copeland <me@bobcopeland.com>
Sat, 21 Feb 2009 19:44:18 +0000 (14:44 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:53:02 +0000 (14:53 -0500)
802.11g is in 2 ghz band, not 5 ghz.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/regd.c

index f4595e24887539122b395dc9ff94cde090ccdfb3..f7d7cc24a12971a480b10134199b057b7f46c8d9 100644 (file)
@@ -507,7 +507,7 @@ u32 ath9k_regd_get_ctl(struct ath_hw *ah, struct ath9k_channel *chan)
        if (IS_CHAN_B(chan))
                ctl = ah->regulatory.regpair->reg_2ghz_ctl | CTL_11B;
        else if (IS_CHAN_G(chan))
-               ctl = ah->regulatory.regpair->reg_5ghz_ctl | CTL_11G;
+               ctl = ah->regulatory.regpair->reg_2ghz_ctl | CTL_11G;
        else
                ctl = ah->regulatory.regpair->reg_5ghz_ctl | CTL_11A;