]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wireless/ath5k/base.c
ath5k: ath5k_copy_channels() was not setting the channel band
[~andy/linux] / drivers / net / wireless / ath5k / base.c
index e3efd869922f52bad281137a18e7ed20c7ec9c62..44c0133e844faaa6d61bdd56f2607f3ea340a0a2 100644 (file)
@@ -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: