ath9k: Fix channelFlags for 2GHZ
authorSujith <Sujith.Manoharan@atheros.com>
Thu, 3 Sep 2009 06:38:53 +0000 (12:08 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Sep 2009 20:31:05 +0000 (16:31 -0400)
commit8813262ea79acf9daa0e03901bdfe93db4dc4ca5
tree0b5efbbcb7f6f2395807b0d5987cca028203f217
parent7ea310be65bfcbc6e2395844fd3498762dc2aea6
ath9k: Fix channelFlags for 2GHZ

CHANNEL_G has to be set for 2GHZ channels since
IS_CHAN_G() checks for this in channelFlags and not in
chanmode. To make things messier, ath9k_hw_process_ini()
checks for CHANNEL_G in chanmode and not in channelFlags.
The supreme, brain-searing fix is to set the
flag in both cases.

Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c