aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/driver_atheros.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2010-01-03 10:11:44 (GMT)
committerJouni Malinen <j@w1.fi>2010-01-03 10:11:44 (GMT)
commita0e0d3bb15e17f2ad53b4309893a2831973057ab (patch)
tree01e6445979ef8907066344ec18269711c008744e /src/drivers/driver_atheros.c
parent245519e0cd6d4e0c4bcc1810e8a08743c446e8e6 (diff)
downloadhostap-a0e0d3bb15e17f2ad53b4309893a2831973057ab.zip
hostap-a0e0d3bb15e17f2ad53b4309893a2831973057ab.tar.gz
hostap-a0e0d3bb15e17f2ad53b4309893a2831973057ab.tar.bz2
Replace hostapd_probe_req_rx() with EVENT_RX_PROBE_REQ driver event
Diffstat (limited to 'src/drivers/driver_atheros.c')
-rw-r--r--src/drivers/driver_atheros.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/drivers/driver_atheros.c b/src/drivers/driver_atheros.c
index 0c2f81c..58834b4 100644
--- a/src/drivers/driver_atheros.c
+++ b/src/drivers/driver_atheros.c
@@ -649,9 +649,8 @@ static void madwifi_raw_receive(void *ctx, const u8 *src_addr, const u8 *buf,
{
struct madwifi_driver_data *drv = ctx;
const struct ieee80211_mgmt *mgmt;
- const u8 *end, *ie;
u16 fc;
- size_t ie_len;
+ union wpa_event_data event;
/* Send Probe Request information to WPS processing */
@@ -664,11 +663,12 @@ static void madwifi_raw_receive(void *ctx, const u8 *src_addr, const u8 *buf,
WLAN_FC_GET_STYPE(fc) != WLAN_FC_STYPE_PROBE_REQ)
return;
- end = buf + len;
- ie = mgmt->u.probe_req.variable;
- ie_len = len - (IEEE80211_HDRLEN + sizeof(mgmt->u.probe_req));
-
- hostapd_probe_req_rx(drv->hapd, mgmt->sa, ie, ie_len);
+ os_memset(&event, 0, sizeof(event));
+ event.rx_probe_req.sa = mgmt->sa;
+ event.rx_probe_req.ie = mgmt->u.probe_req.variable;
+ event.rx_probe_req.ie_len =
+ len - (IEEE80211_HDRLEN + sizeof(mgmt->u.probe_req));
+ wpa_supplicant_event(drv->hapd, EVENT_RX_PROBE_REQ, &event);
}
#endif /* CONFIG_WPS */