WPS: Use WEP key index 1..4 instead of 0..3 when configuring AP
[wpasupplicant] / hostapd / driver_i.h
index 1eb65db..280e56e 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 ||
@@ -616,4 +607,12 @@ hostapd_set_wps_probe_resp_ie(struct hostapd_data *hapd, const u8 *ie,
                                                   hapd->drv_priv, ie, len);
 }
 
+static inline const struct hostapd_neighbor_bss *
+hostapd_driver_get_neighbor_bss(struct hostapd_data *hapd, size_t *num)
+{
+       if (hapd->driver == NULL || hapd->driver->get_neighbor_bss == NULL)
+               return NULL;
+       return hapd->driver->get_neighbor_bss(hapd->drv_priv, num);
+}
+
 #endif /* DRIVER_I_H */