diff options
Diffstat (limited to 'drivers/net/wireless/orinoco/cfg.c')
-rw-r--r-- | drivers/net/wireless/orinoco/cfg.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/wireless/orinoco/cfg.c b/drivers/net/wireless/orinoco/cfg.c index d01edd2c50c5..a9e94b6db5b7 100644 --- a/drivers/net/wireless/orinoco/cfg.c +++ b/drivers/net/wireless/orinoco/cfg.c | |||
@@ -59,7 +59,8 @@ int orinoco_wiphy_register(struct wiphy *wiphy) | |||
59 | for (i = 0; i < NUM_CHANNELS; i++) { | 59 | for (i = 0; i < NUM_CHANNELS; i++) { |
60 | if (priv->channel_mask & (1 << i)) { | 60 | if (priv->channel_mask & (1 << i)) { |
61 | priv->channels[i].center_freq = | 61 | priv->channels[i].center_freq = |
62 | ieee80211_dsss_chan_to_freq(i + 1); | 62 | ieee80211_channel_to_frequency(i + 1, |
63 | IEEE80211_BAND_2GHZ); | ||
63 | channels++; | 64 | channels++; |
64 | } | 65 | } |
65 | } | 66 | } |
@@ -177,7 +178,7 @@ static int orinoco_set_monitor_channel(struct wiphy *wiphy, | |||
177 | if (chandef->chan->band != IEEE80211_BAND_2GHZ) | 178 | if (chandef->chan->band != IEEE80211_BAND_2GHZ) |
178 | return -EINVAL; | 179 | return -EINVAL; |
179 | 180 | ||
180 | channel = ieee80211_freq_to_dsss_chan(chandef->chan->center_freq); | 181 | channel = ieee80211_frequency_to_channel(chandef->chan->center_freq); |
181 | 182 | ||
182 | if ((channel < 1) || (channel > NUM_CHANNELS) || | 183 | if ((channel < 1) || (channel > NUM_CHANNELS) || |
183 | !(priv->channel_mask & (1 << (channel - 1)))) | 184 | !(priv->channel_mask & (1 << (channel - 1)))) |