]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unnecessary nested ifdef CONFIG_AP
authorJouni Malinen <j@w1.fi>
Sun, 21 Jul 2013 13:01:29 +0000 (16:01 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 21 Jul 2013 13:01:29 +0000 (16:01 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/events.c

index 5aae8cd7b5dff6a5b2d0e9687eab27b835bf1a17..bd579163a8753bc15e40c8afecde504775cf2fcc 100644 (file)
@@ -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)