diff --git a/hostapd/driver_i.h b/hostapd/driver_i.h index a6d89c15d..9e4c013cd 100644 --- a/hostapd/driver_i.h +++ b/hostapd/driver_i.h @@ -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, ¶ms); diff --git a/hostapd/ieee802_11.c b/hostapd/ieee802_11.c index 3445fff58..f7d58bb7f 100644 --- a/hostapd/ieee802_11.c +++ b/hostapd/ieee802_11.c @@ -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, diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 9fba02c72..c95950c29 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -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; }; diff --git a/src/drivers/driver_test.c b/src/drivers/driver_test.c index 787ae9530..28f23b2b8 100644 --- a/src/drivers/driver_test.c +++ b/src/drivers/driver_test.c @@ -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);