Removed unused set_regulatory_domain driver function
authorJouni Malinen <j@w1.fi>
Tue, 13 Jan 2009 17:12:25 +0000 (19:12 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 13 Jan 2009 17:12:25 +0000 (19:12 +0200)
hostapd/driver.h
hostapd/driver_i.h
hostapd/driver_nl80211.c

index 28d4f80..ba89c12 100644 (file)
@@ -136,7 +136,6 @@ struct wpa_driver_ops {
                             int total_flags, int flags_or, int flags_and);
        int (*set_rate_sets)(void *priv, int *supp_rates, int *basic_rates,
                             int mode);
-       int (*set_regulatory_domain)(void *priv, unsigned int rd);
        int (*set_country)(void *priv, const char *country);
        int (*set_ieee80211d)(void *priv, int enabled);
        int (*set_beacon)(const char *ifname, void *priv,
index 1eb65db..2d97343 100644 (file)
@@ -344,15 +344,6 @@ hostapd_set_rate_sets(struct hostapd_data *hapd, int *supp_rates,
 }
 
 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
 hostapd_set_country(struct hostapd_data *hapd, const char *country)
 {
        if (hapd->driver == NULL ||
index 514243d..6c01d26 100644 (file)
@@ -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,
                                    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,
        .get_retry = i802_get_retry,
        .set_rate_sets = i802_set_rate_sets,
-       .set_regulatory_domain = i802_set_regulatory_domain,
        .set_beacon = i802_set_beacon,
        .set_internal_bridge = i802_set_internal_bridge,
        .set_beacon_int = i802_set_beacon_int,