aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-13 19:21:10 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-13 19:21:10 (GMT)
commitfcf0f87d9746033d245a75c8d224b81836e88806 (patch)
tree0ae89166f561e8f4bbbe2defafd9f545767aee94 /src
parentf2dab64ee3fcc8e072b7d9da00b5bf5768e40200 (diff)
downloadhostap-fcf0f87d9746033d245a75c8d224b81836e88806.zip
hostap-fcf0f87d9746033d245a75c8d224b81836e88806.tar.gz
hostap-fcf0f87d9746033d245a75c8d224b81836e88806.tar.bz2
Replace hostapd_button_pushed() with generic driver event
Diffstat (limited to 'src')
-rw-r--r--src/drivers/driver.h8
-rw-r--r--src/drivers/driver_atheros.c2
2 files changed, 7 insertions, 3 deletions
diff --git a/src/drivers/driver.h b/src/drivers/driver.h
index 228ce6b..c07a45e 100644
--- a/src/drivers/driver.h
+++ b/src/drivers/driver.h
@@ -1706,7 +1706,12 @@ typedef enum wpa_event_type {
/**
* EVENT_FT_RRB_RX - FT (IEEE 802.11r) RRB frame received
*/
- EVENT_FT_RRB_RX
+ EVENT_FT_RRB_RX,
+
+ /**
+ * EVENT_WPS_BUTTON_PUSHED - Report hardware push button press for WPS
+ */
+ EVENT_WPS_BUTTON_PUSHED
} wpa_event_type;
@@ -1973,6 +1978,5 @@ 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 8759b01..7f5f930 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -847,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_button_pushed(drv->hapd);
+ wpa_supplicant_event(drv->hapd, EVENT_WPS_BUTTON_PUSHED, NULL);
} else if (strncmp(custom, "Manage.prob_req ", 16) == 0) {
/*
* Atheros driver uses a hack to pass Probe Request frames as a