Add driver wrapper callback for WPS push button pressed

This avoids the need to include ../hostapd/wps_hostapd.h into the
driver wrappers.
This commit is contained in:
Jouni Malinen 2009-11-29 18:18:02 +02:00
parent b8be7f5c03
commit 0c3abf8d22
3 changed files with 8 additions and 3 deletions

View file

@ -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);
}

View file

@ -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 */

View file

@ -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