diff options
Diffstat (limited to 'net/mac80211/wext.c')
-rw-r--r-- | net/mac80211/wext.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c index beae664ab480..97d132811c81 100644 --- a/net/mac80211/wext.c +++ b/net/mac80211/wext.c | |||
@@ -330,34 +330,6 @@ static int ieee80211_ioctl_giwmode(struct net_device *dev, | |||
330 | return 0; | 330 | return 0; |
331 | } | 331 | } |
332 | 332 | ||
333 | int ieee80211_set_freq(struct ieee80211_sub_if_data *sdata, int freqMHz) | ||
334 | { | ||
335 | int ret = -EINVAL; | ||
336 | struct ieee80211_channel *chan; | ||
337 | struct ieee80211_local *local = sdata->local; | ||
338 | |||
339 | chan = ieee80211_get_channel(local->hw.wiphy, freqMHz); | ||
340 | |||
341 | if (chan && !(chan->flags & IEEE80211_CHAN_DISABLED)) { | ||
342 | if (sdata->vif.type == IEEE80211_IF_TYPE_IBSS && | ||
343 | chan->flags & IEEE80211_CHAN_NO_IBSS) { | ||
344 | printk(KERN_DEBUG "%s: IBSS not allowed on frequency " | ||
345 | "%d MHz\n", sdata->dev->name, chan->center_freq); | ||
346 | return ret; | ||
347 | } | ||
348 | local->oper_channel = chan; | ||
349 | |||
350 | if (local->sta_sw_scanning || local->sta_hw_scanning) | ||
351 | ret = 0; | ||
352 | else | ||
353 | ret = ieee80211_hw_config(local); | ||
354 | |||
355 | rate_control_clear(local); | ||
356 | } | ||
357 | |||
358 | return ret; | ||
359 | } | ||
360 | |||
361 | static int ieee80211_ioctl_siwfreq(struct net_device *dev, | 333 | static int ieee80211_ioctl_siwfreq(struct net_device *dev, |
362 | struct iw_request_info *info, | 334 | struct iw_request_info *info, |
363 | struct iw_freq *freq, char *extra) | 335 | struct iw_freq *freq, char *extra) |