802.11n: scan for overlapping BSSes before starting 20/40 MHz channel
[wpasupplicant] / hostapd / driver_i.h
index 2d97343..280e56e 100644 (file)
@@ -607,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 */