aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2015-11-27 11:40:37 (GMT)
committerJouni Malinen <j@w1.fi>2015-12-24 20:24:05 (GMT)
commitd99097177a310d3b6f6b13c9204bbd116572df93 (patch)
tree4234b41428b97ba6558a9ff582207cf4bc721d1d /wpa_supplicant/events.c
parent96bc5086846939563022cb7a35273a1c1fdd8e4a (diff)
downloadhostap-d99097177a310d3b6f6b13c9204bbd116572df93.zip
hostap-d99097177a310d3b6f6b13c9204bbd116572df93.tar.gz
hostap-d99097177a310d3b6f6b13c9204bbd116572df93.tar.bz2
wpa_supplicant: Enable Automatic Channel Selection support for AP mode
Since hostapd supports ACS now, let's enable its support in wpa_supplicant as well when starting AP mode. Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> [u.oelmann@pengutronix.de: rebased series from hostap_2_1~944 to master] [u.oelmann@pengutronix.de: adjusted added text in defconfig] 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 43f3d9b..2870e89 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -3946,6 +3946,14 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
&data->survey_results);
#endif /* CONFIG_AP */
break;
+ case EVENT_ACS_CHANNEL_SELECTED:
+#ifdef CONFIG_ACS
+ if (!wpa_s->ap_iface)
+ break;
+ hostapd_acs_channel_selected(wpa_s->ap_iface->bss[0],
+ &data->acs_selected_channels);
+#endif /* CONFIG_ACS */
+ break;
default:
wpa_msg(wpa_s, MSG_INFO, "Unknown event %d", event);
break;