diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 5aae8cd7b..bd579163a 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -2735,11 +2735,9 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, break; } -#ifdef CONFIG_AP wpas_ap_ch_switch(wpa_s, data->ch_switch.freq, data->ch_switch.ht_enabled, data->ch_switch.ch_offset); -#endif /* CONFIG_AP */ break; #endif /* CONFIG_AP */ #if defined(CONFIG_AP) || defined(CONFIG_IBSS_RSN)