aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-28 09:57:23 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-28 09:57:23 (GMT)
commit34e8bfd7a94cba8fcde4578ed0c8b22b6cca44b6 (patch)
treef0b20fab3b2cdf403e47252b56dc6250e162d54f /wpa_supplicant/events.c
parent510fc2dfc9969cb9bfa4c629f40311fc40eb6a2e (diff)
downloadhostap-34e8bfd7a94cba8fcde4578ed0c8b22b6cca44b6.zip
hostap-34e8bfd7a94cba8fcde4578ed0c8b22b6cca44b6.tar.gz
hostap-34e8bfd7a94cba8fcde4578ed0c8b22b6cca44b6.tar.bz2
Skip EVENT_ACS_CHANNEL_SELECTED also without CONFIG_AP
CONFIG_ACS alone should not refer to wpa_s->ap_iface to avoid potential compilation issues. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index c2f8a66..fcc94db 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -4319,12 +4319,14 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
#endif /* CONFIG_AP */
break;
case EVENT_ACS_CHANNEL_SELECTED:
+#ifdef CONFIG_AP
#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 */
+#endif /* CONFIG_AP */
break;
case EVENT_P2P_LO_STOP:
#ifdef CONFIG_P2P