Remove usused flags parameter from sta_add() driver op

This commit is contained in:
Jouni Malinen 2009-12-13 11:05:22 +02:00
parent c9b9e494fc
commit 60c8cfb4fb
4 changed files with 4 additions and 7 deletions

View file

@ -204,7 +204,7 @@ hostapd_set_countermeasures(struct hostapd_data *hapd, int enabled)
static inline int
hostapd_sta_add(const char *ifname, struct hostapd_data *hapd, const u8 *addr,
u16 aid, u16 capability, const u8 *supp_rates,
size_t supp_rates_len, int flags, u16 listen_interval,
size_t supp_rates_len, u16 listen_interval,
const struct ieee80211_ht_capabilities *ht_capabilities)
{
struct hostapd_sta_add_params params;
@ -220,7 +220,6 @@ hostapd_sta_add(const char *ifname, struct hostapd_data *hapd, const u8 *addr,
params.capability = capability;
params.supp_rates = supp_rates;
params.supp_rates_len = supp_rates_len;
params.flags = flags;
params.listen_interval = listen_interval;
params.ht_capabilities = ht_capabilities;
return hapd->driver->sta_add(ifname, hapd->drv_priv, &params);

View file

@ -1539,7 +1539,7 @@ static void handle_assoc_cb(struct hostapd_data *hapd,
if (hostapd_sta_add(hapd->conf->iface, hapd, sta->addr, sta->aid,
sta->capability, sta->supported_rates,
sta->supported_rates_len, 0, sta->listen_interval,
sta->supported_rates_len, sta->listen_interval,
sta->flags & WLAN_STA_HT ? &ht_cap : NULL))
{
hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211,

View file

@ -430,7 +430,6 @@ struct hostapd_sta_add_params {
u16 capability;
const u8 *supp_rates;
size_t supp_rates_len;
int flags;
u16 listen_interval;
const struct ieee80211_ht_capabilities *ht_capabilities;
};

View file

@ -1136,10 +1136,9 @@ static int test_driver_sta_add(const char *ifname, void *priv,
struct test_driver_bss *bss;
wpa_printf(MSG_DEBUG, "%s(ifname=%s addr=" MACSTR " aid=%d "
"capability=0x%x flags=0x%x listen_interval=%d)",
"capability=0x%x listen_interval=%d)",
__func__, ifname, MAC2STR(params->addr), params->aid,
params->capability, params->flags,
params->listen_interval);
params->capability, params->listen_interval);
wpa_hexdump(MSG_DEBUG, "test_driver_sta_add - supp_rates",
params->supp_rates, params->supp_rates_len);