data->ft_rrb_rx.data, data->ft_rrb_rx.data_len);
break;
#endif /* CONFIG_IEEE80211R */
+ case EVENT_WPS_BUTTON_PUSHED:
+ hostapd_wps_button_pushed(hapd);
+ break;
default:
wpa_printf(MSG_DEBUG, "Unknown event %d", event);
break;
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);
-}
/**
* 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;
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 */
/* 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