1 /*
2  * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #include "esp_netif.h"
8 
9 //
10 // Purpose of this module is to provide
11 //  - general esp-netif definitions of default objects for STA, AP, ETH
12 //  - default init / create functions for basic default interfaces
13 //
14 
15 
16 //
17 // Default configuration of common interfaces, such as STA, AP, ETH
18 //
19 const esp_netif_inherent_config_t _g_esp_netif_inherent_sta_config = ESP_NETIF_INHERENT_DEFAULT_WIFI_STA();
20 
21 #ifdef CONFIG_ESP_WIFI_SOFTAP_SUPPORT
22 const esp_netif_ip_info_t _g_esp_netif_soft_ap_ip = {
23         .ip = { .addr = ESP_IP4TOADDR( 192, 168, 4, 1) },
24         .gw = { .addr = ESP_IP4TOADDR( 192, 168, 4, 1) },
25         .netmask = { .addr = ESP_IP4TOADDR( 255, 255, 255, 0) },
26 };
27 
28 const esp_netif_inherent_config_t _g_esp_netif_inherent_ap_config = ESP_NETIF_INHERENT_DEFAULT_WIFI_AP();
29 #endif
30 
31 #ifdef CONFIG_ESP_WIFI_NAN_ENABLE
32 const esp_netif_inherent_config_t _g_esp_netif_inherent_nan_config = ESP_NETIF_INHERENT_DEFAULT_WIFI_NAN();
33 #endif
34 
35 const esp_netif_inherent_config_t _g_esp_netif_inherent_eth_config = ESP_NETIF_INHERENT_DEFAULT_ETH();
36 
37 #ifdef CONFIG_PPP_SUPPORT
38 const esp_netif_inherent_config_t _g_esp_netif_inherent_ppp_config = ESP_NETIF_INHERENT_DEFAULT_PPP();
39 #endif
40