diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00dev.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c index a644b9a7ca8f..b3a639aa0540 100644 --- a/drivers/net/wireless/rt2x00/rt2x00dev.c +++ b/drivers/net/wireless/rt2x00/rt2x00dev.c | |||
@@ -919,7 +919,7 @@ static int rt2x00lib_probe_hw_modes(struct rt2x00_dev *rt2x00dev, | |||
919 | * Rates: CCK, OFDM. | 919 | * Rates: CCK, OFDM. |
920 | * Channels: 2.4 GHz | 920 | * Channels: 2.4 GHz |
921 | */ | 921 | */ |
922 | if (spec->supported_bands > SUPPORT_BAND_2GHZ) { | 922 | if (spec->supported_bands & SUPPORT_BAND_2GHZ) { |
923 | rt2x00dev->bands[IEEE80211_BAND_2GHZ].n_channels = 14; | 923 | rt2x00dev->bands[IEEE80211_BAND_2GHZ].n_channels = 14; |
924 | rt2x00dev->bands[IEEE80211_BAND_2GHZ].n_bitrates = num_rates; | 924 | rt2x00dev->bands[IEEE80211_BAND_2GHZ].n_bitrates = num_rates; |
925 | rt2x00dev->bands[IEEE80211_BAND_2GHZ].channels = channels; | 925 | rt2x00dev->bands[IEEE80211_BAND_2GHZ].channels = channels; |
@@ -933,7 +933,7 @@ static int rt2x00lib_probe_hw_modes(struct rt2x00_dev *rt2x00dev, | |||
933 | * Rates: OFDM. | 933 | * Rates: OFDM. |
934 | * Channels: OFDM, UNII, HiperLAN2. | 934 | * Channels: OFDM, UNII, HiperLAN2. |
935 | */ | 935 | */ |
936 | if (spec->supported_bands > SUPPORT_BAND_5GHZ) { | 936 | if (spec->supported_bands & SUPPORT_BAND_5GHZ) { |
937 | rt2x00dev->bands[IEEE80211_BAND_5GHZ].n_channels = | 937 | rt2x00dev->bands[IEEE80211_BAND_5GHZ].n_channels = |
938 | spec->num_channels - 14; | 938 | spec->num_channels - 14; |
939 | rt2x00dev->bands[IEEE80211_BAND_5GHZ].n_bitrates = | 939 | rt2x00dev->bands[IEEE80211_BAND_5GHZ].n_bitrates = |