diff --git a/hostapd/drv_callbacks.c b/hostapd/drv_callbacks.c index f5eed1ccc..a7b7571df 100644 --- a/hostapd/drv_callbacks.c +++ b/hostapd/drv_callbacks.c @@ -461,3 +461,9 @@ void hostapd_probe_req_rx(struct hostapd_data *hapd, const u8 *sa, hapd->probereq_cb[i].cb(hapd->probereq_cb[i].ctx, sa, ie, ie_len); } + + +void hostapd_button_pushed(struct hostapd_data *hapd) +{ + hostapd_wps_button_pushed(hapd); +} diff --git a/src/drivers/driver.h b/src/drivers/driver.h index 4b864e16d..a605f1265 100644 --- a/src/drivers/driver.h +++ b/src/drivers/driver.h @@ -1597,5 +1597,6 @@ struct hostapd_data * hostapd_sta_get_bss(struct hostapd_data *hapd, const u8 *addr); void hostapd_probe_req_rx(struct hostapd_data *hapd, const u8 *sa, const u8 *ie, size_t ie_len); +void hostapd_button_pushed(struct hostapd_data *hapd); #endif /* DRIVER_H */ diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c index 3e1342a55..1de3a71e3 100644 --- a/src/drivers/driver_atheros.c +++ b/src/drivers/driver_atheros.c @@ -65,8 +65,6 @@ #include "eloop.h" #include "priv_netlink.h" #include "l2_packet/l2_packet.h" - -#include "../hostapd/wps_hostapd.h" #include "common/ieee802_11_defs.h" @@ -849,7 +847,7 @@ madwifi_wireless_event_wireless_custom(struct madwifi_driver_data *drv, /* PROBLEM! this event is received for ALL BSSs ... * so all are enabled for WPS... ugh. */ - hostapd_wps_button_pushed(drv->hapd); + hostapd_button_pushed(drv->hapd); } else if (strncmp(custom, "Manage.prob_req ", 16) == 0) { /* * Atheros driver uses a hack to pass Probe Request frames as a