aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2015-11-27 11:40:36 (GMT)
committerJouni Malinen <j@w1.fi>2015-12-24 19:35:54 (GMT)
commit96bc5086846939563022cb7a35273a1c1fdd8e4a (patch)
tree7e3769262c02b22d6d6da652c90514beb6de7080 /wpa_supplicant/events.c
parentbe9fe3d8aff394ea6868f1a2347e8c12609b086e (diff)
downloadhostap-96bc5086846939563022cb7a35273a1c1fdd8e4a.zip
hostap-96bc5086846939563022cb7a35273a1c1fdd8e4a.tar.gz
hostap-96bc5086846939563022cb7a35273a1c1fdd8e4a.tar.bz2
Handle survey event properly in wpa_supplicant
Let's reuse hostapd code for such handling. This will be useful to get ACS support into wpa_supplicant where this one needs to handle the survey event so it fills in the result ACS subsystem will require. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> [u.oelmann@pengutronix.de: rebased series from hostap_2_1~944 to master] Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index 5e8ebad..43f3d9b 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -3938,6 +3938,14 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
data->mesh_peer.ie_len);
#endif /* CONFIG_MESH */
break;
+ case EVENT_SURVEY:
+#ifdef CONFIG_AP
+ if (!wpa_s->ap_iface)
+ break;
+ hostapd_event_get_survey(wpa_s->ap_iface,
+ &data->survey_results);
+#endif /* CONFIG_AP */
+ break;
default:
wpa_msg(wpa_s, MSG_INFO, "Unknown event %d", event);
break;