From 26bfb1cf10f62e601289d4257d161396b4edc89d Mon Sep 17 00:00:00 2001 From: dongyou Date: Tue, 15 Sep 2020 14:53:11 +0800 Subject: [PATCH] Set default AP handlers in wifi_create_and_start_ap() --- components/tcpip_adapter/tcpip_adapter_compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tcpip_adapter/tcpip_adapter_compat.c b/components/tcpip_adapter/tcpip_adapter_compat.c index cd970f4c89..ab013a6734 100644 --- a/components/tcpip_adapter/tcpip_adapter_compat.c +++ b/components/tcpip_adapter/tcpip_adapter_compat.c @@ -58,7 +58,7 @@ static void wifi_create_and_start_ap(void *esp_netif, esp_event_base_t base, int esp_netif_t *ap_netif = esp_netif_new(&cfg); esp_netif_attach_wifi_ap(ap_netif); - esp_wifi_set_default_wifi_sta_handlers(); + esp_wifi_set_default_wifi_ap_handlers(); s_esp_netifs[TCPIP_ADAPTER_IF_AP] = ap_netif; } }