nl80211: Remove unnecessary wpa_driver_nl80211_set_freq() wrapper

This is not of any real use anymore with nl80211_set_channel() taking
care of channel setting operation.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2014-04-25 12:02:25 +03:00 committed by Jouni Malinen
parent e87ef7517e
commit 13a524a30d

View file

@ -389,8 +389,6 @@ static int wpa_driver_nl80211_if_remove(struct i802_bss *bss,
static int nl80211_set_channel(struct i802_bss *bss, static int nl80211_set_channel(struct i802_bss *bss,
struct hostapd_freq_params *freq, int set_chan); struct hostapd_freq_params *freq, int set_chan);
static int wpa_driver_nl80211_set_freq(struct i802_bss *bss,
struct hostapd_freq_params *freq);
static int nl80211_disable_11b_rates(struct wpa_driver_nl80211_data *drv, static int nl80211_disable_11b_rates(struct wpa_driver_nl80211_data *drv,
int ifindex, int disabled); int ifindex, int disabled);
@ -7430,13 +7428,6 @@ nla_put_failure:
} }
static int wpa_driver_nl80211_set_freq(struct i802_bss *bss,
struct hostapd_freq_params *freq)
{
return nl80211_set_channel(bss, freq, 0);
}
static u32 sta_flags_nl80211(int flags) static u32 sta_flags_nl80211(int flags)
{ {
u32 f = 0; u32 f = 0;
@ -8434,7 +8425,7 @@ static int wpa_driver_nl80211_ap(struct wpa_driver_nl80211_data *drv,
return -1; return -1;
} }
if (wpa_driver_nl80211_set_freq(drv->first_bss, &freq)) { if (nl80211_set_channel(drv->first_bss, &freq, 0)) {
if (old_mode != nlmode) if (old_mode != nlmode)
wpa_driver_nl80211_set_mode(drv->first_bss, old_mode); wpa_driver_nl80211_set_mode(drv->first_bss, old_mode);
nl80211_remove_monitor_interface(drv); nl80211_remove_monitor_interface(drv);
@ -9160,7 +9151,7 @@ static int wpa_driver_nl80211_set_supp_port(void *priv, int authorized)
static int i802_set_freq(void *priv, struct hostapd_freq_params *freq) static int i802_set_freq(void *priv, struct hostapd_freq_params *freq)
{ {
struct i802_bss *bss = priv; struct i802_bss *bss = priv;
return wpa_driver_nl80211_set_freq(bss, freq); return nl80211_set_channel(bss, freq, 0);
} }