mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 02:44:03 -05:00
Removed unused set_regulatory_domain driver function
This commit is contained in:
parent
f49275c92f
commit
25ba219f3e
@ -136,7 +136,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_regulatory_domain)(void *priv, unsigned int rd);
|
|
||||||
int (*set_country)(void *priv, const char *country);
|
int (*set_country)(void *priv, const char *country);
|
||||||
int (*set_ieee80211d)(void *priv, int enabled);
|
int (*set_ieee80211d)(void *priv, int enabled);
|
||||||
int (*set_beacon)(const char *ifname, void *priv,
|
int (*set_beacon)(const char *ifname, void *priv,
|
||||||
|
@ -343,15 +343,6 @@ hostapd_set_rate_sets(struct hostapd_data *hapd, int *supp_rates,
|
|||||||
basic_rates, mode);
|
basic_rates, mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline int
|
|
||||||
hostapd_set_regulatory_domain(struct hostapd_data *hapd, unsigned int rd)
|
|
||||||
{
|
|
||||||
if (hapd->driver == NULL ||
|
|
||||||
hapd->driver->set_regulatory_domain == NULL)
|
|
||||||
return 0;
|
|
||||||
return hapd->driver->set_regulatory_domain(hapd->drv_priv, rd);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int
|
static inline int
|
||||||
hostapd_set_country(struct hostapd_data *hapd, const char *country)
|
hostapd_set_country(struct hostapd_data *hapd, const char *country)
|
||||||
{
|
{
|
||||||
|
@ -920,12 +920,6 @@ static int i802_sta_set_flags(void *priv, const u8 *addr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int i802_set_regulatory_domain(void *priv, unsigned int rd)
|
|
||||||
{
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int i802_set_tx_queue_params(void *priv, int queue, int aifs,
|
static int i802_set_tx_queue_params(void *priv, int queue, int aifs,
|
||||||
int cw_min, int cw_max, int burst_time)
|
int cw_min, int cw_max, int burst_time)
|
||||||
{
|
{
|
||||||
@ -2495,7 +2489,6 @@ const struct wpa_driver_ops wpa_driver_nl80211_ops = {
|
|||||||
.set_retry = i802_set_retry,
|
.set_retry = i802_set_retry,
|
||||||
.get_retry = i802_get_retry,
|
.get_retry = i802_get_retry,
|
||||||
.set_rate_sets = i802_set_rate_sets,
|
.set_rate_sets = i802_set_rate_sets,
|
||||||
.set_regulatory_domain = i802_set_regulatory_domain,
|
|
||||||
.set_beacon = i802_set_beacon,
|
.set_beacon = i802_set_beacon,
|
||||||
.set_internal_bridge = i802_set_internal_bridge,
|
.set_internal_bridge = i802_set_internal_bridge,
|
||||||
.set_beacon_int = i802_set_beacon_int,
|
.set_beacon_int = i802_set_beacon_int,
|
||||||
|
Loading…
Reference in New Issue
Block a user