Remove usused flags parameter from sta_add() driver op
This commit is contained in:
parent
c9b9e494fc
commit
60c8cfb4fb
4 changed files with 4 additions and 7 deletions
|
@ -204,7 +204,7 @@ hostapd_set_countermeasures(struct hostapd_data *hapd, int enabled)
|
||||||
static inline int
|
static inline int
|
||||||
hostapd_sta_add(const char *ifname, struct hostapd_data *hapd, const u8 *addr,
|
hostapd_sta_add(const char *ifname, struct hostapd_data *hapd, const u8 *addr,
|
||||||
u16 aid, u16 capability, const u8 *supp_rates,
|
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)
|
const struct ieee80211_ht_capabilities *ht_capabilities)
|
||||||
{
|
{
|
||||||
struct hostapd_sta_add_params params;
|
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.capability = capability;
|
||||||
params.supp_rates = supp_rates;
|
params.supp_rates = supp_rates;
|
||||||
params.supp_rates_len = supp_rates_len;
|
params.supp_rates_len = supp_rates_len;
|
||||||
params.flags = flags;
|
|
||||||
params.listen_interval = listen_interval;
|
params.listen_interval = listen_interval;
|
||||||
params.ht_capabilities = ht_capabilities;
|
params.ht_capabilities = ht_capabilities;
|
||||||
return hapd->driver->sta_add(ifname, hapd->drv_priv, ¶ms);
|
return hapd->driver->sta_add(ifname, hapd->drv_priv, ¶ms);
|
||||||
|
|
|
@ -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,
|
if (hostapd_sta_add(hapd->conf->iface, hapd, sta->addr, sta->aid,
|
||||||
sta->capability, sta->supported_rates,
|
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))
|
sta->flags & WLAN_STA_HT ? &ht_cap : NULL))
|
||||||
{
|
{
|
||||||
hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211,
|
hostapd_logger(hapd, sta->addr, HOSTAPD_MODULE_IEEE80211,
|
||||||
|
|
|
@ -430,7 +430,6 @@ struct hostapd_sta_add_params {
|
||||||
u16 capability;
|
u16 capability;
|
||||||
const u8 *supp_rates;
|
const u8 *supp_rates;
|
||||||
size_t supp_rates_len;
|
size_t supp_rates_len;
|
||||||
int flags;
|
|
||||||
u16 listen_interval;
|
u16 listen_interval;
|
||||||
const struct ieee80211_ht_capabilities *ht_capabilities;
|
const struct ieee80211_ht_capabilities *ht_capabilities;
|
||||||
};
|
};
|
||||||
|
|
|
@ -1136,10 +1136,9 @@ static int test_driver_sta_add(const char *ifname, void *priv,
|
||||||
struct test_driver_bss *bss;
|
struct test_driver_bss *bss;
|
||||||
|
|
||||||
wpa_printf(MSG_DEBUG, "%s(ifname=%s addr=" MACSTR " aid=%d "
|
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,
|
__func__, ifname, MAC2STR(params->addr), params->aid,
|
||||||
params->capability, params->flags,
|
params->capability, params->listen_interval);
|
||||||
params->listen_interval);
|
|
||||||
wpa_hexdump(MSG_DEBUG, "test_driver_sta_add - supp_rates",
|
wpa_hexdump(MSG_DEBUG, "test_driver_sta_add - supp_rates",
|
||||||
params->supp_rates, params->supp_rates_len);
|
params->supp_rates, params->supp_rates_len);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue