projects
/
wpasupplicant
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add generic infrastructure for Probe Request callbacks
[wpasupplicant]
/
hostapd
/
drv_callbacks.c
diff --git
a/hostapd/drv_callbacks.c
b/hostapd/drv_callbacks.c
index
8a7fcf9
..
de686f4
100644
(file)
--- a/
hostapd/drv_callbacks.c
+++ b/
hostapd/drv_callbacks.c
@@
-437,5
+437,9
@@
void wpa_supplicant_event(void *ctx, wpa_event_type event,
void hostapd_probe_req_rx(struct hostapd_data *hapd, const u8 *sa,
const u8 *ie, size_t ie_len)
{
void hostapd_probe_req_rx(struct hostapd_data *hapd, const u8 *sa,
const u8 *ie, size_t ie_len)
{
- hostapd_wps_probe_req_rx(hapd, sa, ie, ie_len);
+ size_t i;
+
+ for (i = 0; hapd->probereq_cb && i < hapd->num_probereq_cb; i++)
+ hapd->probereq_cb[i].cb(hapd->probereq_cb[i].ctx,
+ sa, ie, ie_len);
}
}