Remove unused parameters from set_rate_sets()

Only setting of the basic rate set was supported, so remove the
unused parameters.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2011-12-03 11:57:13 +02:00
parent e26cd1a180
commit 5f17b3ee9f
5 changed files with 7 additions and 15 deletions

View file

@ -475,13 +475,11 @@ int hostapd_sta_set_flags(struct hostapd_data *hapd, u8 *addr,
}
int hostapd_set_rate_sets(struct hostapd_data *hapd, int *supp_rates,
int *basic_rates, int mode)
int hostapd_set_rate_sets(struct hostapd_data *hapd, int *basic_rates)
{
if (hapd->driver == NULL || hapd->driver->set_rate_sets == NULL)
return 0;
return hapd->driver->set_rate_sets(hapd->drv_priv, supp_rates,
basic_rates, mode);
return hapd->driver->set_rate_sets(hapd->drv_priv, basic_rates);
}

View file

@ -66,8 +66,7 @@ int hostapd_set_rts(struct hostapd_data *hapd, int rts);
int hostapd_set_frag(struct hostapd_data *hapd, int frag);
int hostapd_sta_set_flags(struct hostapd_data *hapd, u8 *addr,
int total_flags, int flags_or, int flags_and);
int hostapd_set_rate_sets(struct hostapd_data *hapd, int *supp_rates,
int *basic_rates, int mode);
int hostapd_set_rate_sets(struct hostapd_data *hapd, int *basic_rates);
int hostapd_set_country(struct hostapd_data *hapd, const char *country);
int hostapd_set_tx_queue_params(struct hostapd_data *hapd, int queue, int aifs,
int cw_min, int cw_max, int burst_time);

View file

@ -126,8 +126,7 @@ int hostapd_prepare_rates(struct hostapd_data *hapd,
return -1;
}
if (hostapd_set_rate_sets(hapd, hapd->iconf->supported_rates,
basic_rates, mode->mode)) {
if (hostapd_set_rate_sets(hapd, basic_rates)) {
wpa_printf(MSG_ERROR, "Failed to update rate sets in kernel "
"module");
}

View file

@ -1685,15 +1685,12 @@ struct wpa_driver_ops {
int total_flags, int flags_or, int flags_and);
/**
* set_rate_sets - Set supported and basic rate sets (AP only)
* set_rate_sets - Set basic rate set (AP only)
* @priv: Private driver interface data
* @supp_rates: -1 terminated array of supported rates in 100 kbps
* @basic_rates: -1 terminated array of basic rates in 100 kbps
* @mode: hardware mode (HOSTAPD_MODE_*)
* Returns: 0 on success, -1 on failure
*/
int (*set_rate_sets)(void *priv, int *supp_rates, int *basic_rates,
int mode);
int (*set_rate_sets)(void *priv, int *basic_rates);
/**
* set_tx_queue_params - Set TX queue parameters

View file

@ -6017,8 +6017,7 @@ static int i802_get_seqnum(const char *iface, void *priv, const u8 *addr,
}
static int i802_set_rate_sets(void *priv, int *supp_rates, int *basic_rates,
int mode)
static int i802_set_rate_sets(void *priv, int *basic_rates)
{
struct i802_bss *bss = priv;
struct wpa_driver_nl80211_data *drv = bss->drv;