From: Luis R. Rodriguez Date: Mon, 4 Feb 2008 02:52:10 +0000 (-0500) Subject: ath5k: ath5k_copy_channels() was not setting the channel band X-Git-Tag: v2.6.26-rc1~1138^2~530^2~106 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a3f4b914a03a11f3ccc98243b20a647bb8f31691;p=linux-2.6-omap-h63xx.git 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 Signed-off-by: John W. Linville --- 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, /* Write channel info and increment counter */ channels[count].center_freq = freq; + channels[count].band = (chfreq == CHANNEL_2GHZ) ? + IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ; switch (mode) { case AR5K_MODE_11A: case AR5K_MODE_11G: