diff options
author | Luis R. Rodriguez <mcgrof@winlab.rutgers.edu> | 2008-02-03 21:52:10 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:19:37 -0500 |
commit | a3f4b914a03a11f3ccc98243b20a647bb8f31691 (patch) | |
tree | a4e24ed01d2ff7be09ee111b59b29abf5907da64 /drivers/net | |
parent | 400ec45a02b2a9ef75c26c490ba80801d19b7e7b (diff) |
ath5k: ath5k_copy_channels() was not setting the channel band
ath5k_copy_channels() wasn't setting the channel's band so all
driver channels had a 2GHz band set. Lets set this.
Changes-licensed-under: 3-Clause-BSD
Signed-off-by: Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ath5k/base.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath5k/base.c b/drivers/net/wireless/ath5k/base.c index e3efd869922..44c0133e844 100644 --- a/drivers/net/wireless/ath5k/base.c +++ b/drivers/net/wireless/ath5k/base.c | |||
@@ -902,6 +902,8 @@ ath5k_copy_channels(struct ath5k_hw *ah, | |||
902 | 902 | ||
903 | /* Write channel info and increment counter */ | 903 | /* Write channel info and increment counter */ |
904 | channels[count].center_freq = freq; | 904 | channels[count].center_freq = freq; |
905 | channels[count].band = (chfreq == CHANNEL_2GHZ) ? | ||
906 | IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ; | ||
905 | switch (mode) { | 907 | switch (mode) { |
906 | case AR5K_MODE_11A: | 908 | case AR5K_MODE_11A: |
907 | case AR5K_MODE_11G: | 909 | case AR5K_MODE_11G: |