diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00dev.c')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index 9597a03242cc..31b7db05abd9 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -649,7 +649,10 @@ static void rt2x00lib_channel(struct ieee80211_channel *entry, | |||
649 | const int channel, const int tx_power, | 649 | const int channel, const int tx_power, |
650 | const int value) | 650 | const int value) |
651 | { | 651 | { |
652 | entry->center_freq = ieee80211_channel_to_frequency(channel); | 652 | /* XXX: this assumption about the band is wrong for 802.11j */ |
653 | entry->band = channel <= 14 ? IEEE80211_BAND_2GHZ : IEEE80211_BAND_5GHZ; | ||
654 | entry->center_freq = ieee80211_channel_to_frequency(channel, | ||
655 | entry->band); | ||
653 | entry->hw_value = value; | 656 | entry->hw_value = value; |
654 | entry->max_power = tx_power; | 657 | entry->max_power = tx_power; |
655 | entry->max_antenna_gain = 0xff; | 658 | entry->max_antenna_gain = 0xff; |