mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-17 18:34:03 -05:00
Remove the unused set_ieee80211d driver op
None of the driver wrappers use this. Only the drivers that use hostapd for Beacon and Probe Request/Response handling can now use IEEE 802.11d properly.
This commit is contained in:
parent
4bc181ecc7
commit
9351257cfb
@ -309,15 +309,6 @@ hostapd_set_country(struct hostapd_data *hapd, const char *country)
|
|||||||
return hapd->driver->set_country(hapd->drv_priv, country);
|
return hapd->driver->set_country(hapd->drv_priv, country);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
|
||||||
hostapd_set_ieee80211d(struct hostapd_data *hapd, int enabled)
|
|
||||||
{
|
|
||||||
if (hapd->driver == NULL ||
|
|
||||||
hapd->driver->set_ieee80211d == NULL)
|
|
||||||
return 0;
|
|
||||||
return hapd->driver->set_ieee80211d(hapd->drv_priv, enabled);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
hostapd_sta_clear_stats(struct hostapd_data *hapd, const u8 *addr)
|
hostapd_sta_clear_stats(struct hostapd_data *hapd, const u8 *addr)
|
||||||
{
|
{
|
||||||
|
@ -1355,13 +1355,6 @@ static int setup_interface(struct hostapd_iface *iface)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hapd->iconf->ieee80211d &&
|
|
||||||
hostapd_set_ieee80211d(hapd, 1) < 0) {
|
|
||||||
wpa_printf(MSG_ERROR, "Failed to set ieee80211d (%d)",
|
|
||||||
hapd->iconf->ieee80211d);
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hapd->iconf->bridge_packets != INTERNAL_BRIDGE_DO_NOT_CONTROL &&
|
if (hapd->iconf->bridge_packets != INTERNAL_BRIDGE_DO_NOT_CONTROL &&
|
||||||
hostapd_set_internal_bridge(hapd, hapd->iconf->bridge_packets)) {
|
hostapd_set_internal_bridge(hapd, hapd->iconf->bridge_packets)) {
|
||||||
wpa_printf(MSG_ERROR, "Failed to set bridge_packets for "
|
wpa_printf(MSG_ERROR, "Failed to set bridge_packets for "
|
||||||
|
@ -1270,7 +1270,6 @@ struct wpa_driver_ops {
|
|||||||
int total_flags, int flags_or, int flags_and);
|
int total_flags, int flags_or, int flags_and);
|
||||||
int (*set_rate_sets)(void *priv, int *supp_rates, int *basic_rates,
|
int (*set_rate_sets)(void *priv, int *supp_rates, int *basic_rates,
|
||||||
int mode);
|
int mode);
|
||||||
int (*set_ieee80211d)(void *priv, int enabled);
|
|
||||||
int (*hapd_set_beacon)(const char *ifname, void *priv,
|
int (*hapd_set_beacon)(const char *ifname, void *priv,
|
||||||
const u8 *head, size_t head_len,
|
const u8 *head, size_t head_len,
|
||||||
const u8 *tail, size_t tail_len,
|
const u8 *tail, size_t tail_len,
|
||||||
|
@ -3243,7 +3243,6 @@ const struct wpa_driver_ops wpa_driver_ndis_ops = {
|
|||||||
NULL /* set_frag */,
|
NULL /* set_frag */,
|
||||||
NULL /* sta_set_flags */,
|
NULL /* sta_set_flags */,
|
||||||
NULL /* set_rate_sets */,
|
NULL /* set_rate_sets */,
|
||||||
NULL /* set_ieee80211d */,
|
|
||||||
NULL /* hapd_set_beacon */,
|
NULL /* hapd_set_beacon */,
|
||||||
NULL /* set_internal_bridge */,
|
NULL /* set_internal_bridge */,
|
||||||
NULL /* set_broadcast_ssid */,
|
NULL /* set_broadcast_ssid */,
|
||||||
|
Loading…
Reference in New Issue
Block a user