| 
									
										
										
										
											2021-04-07 15:04:51 +08:00
										 |  |  | /*
 | 
					
						
							| 
									
										
										
										
											2023-02-14 10:06:40 +05:30
										 |  |  |  * SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD | 
					
						
							| 
									
										
										
										
											2021-04-07 15:04:51 +08:00
										 |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: Apache-2.0 | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2019-06-28 16:47:34 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include "esp_netif.h"
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Purpose of this module is to provide
 | 
					
						
							|  |  |  | //  - general esp-netif definitions of default objects for STA, AP, ETH
 | 
					
						
							|  |  |  | //  - default init / create functions for basic default interfaces
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Default configuration of common interfaces, such as STA, AP, ETH
 | 
					
						
							|  |  |  | //
 | 
					
						
							| 
									
										
										
										
											2020-01-30 12:50:52 +01:00
										 |  |  | const esp_netif_inherent_config_t _g_esp_netif_inherent_sta_config = ESP_NETIF_INHERENT_DEFAULT_WIFI_STA(); | 
					
						
							| 
									
										
										
										
											2019-06-28 16:47:34 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-04-07 15:04:51 +08:00
										 |  |  | #ifdef CONFIG_ESP_WIFI_SOFTAP_SUPPORT
 | 
					
						
							| 
									
										
										
										
											2022-05-11 16:01:48 +02:00
										 |  |  | const esp_netif_ip_info_t _g_esp_netif_soft_ap_ip = { | 
					
						
							|  |  |  |         .ip = { .addr = ESP_IP4TOADDR( 192, 168, 4, 1) }, | 
					
						
							|  |  |  |         .gw = { .addr = ESP_IP4TOADDR( 192, 168, 4, 1) }, | 
					
						
							|  |  |  |         .netmask = { .addr = ESP_IP4TOADDR( 255, 255, 255, 0) }, | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-30 12:50:52 +01:00
										 |  |  | const esp_netif_inherent_config_t _g_esp_netif_inherent_ap_config = ESP_NETIF_INHERENT_DEFAULT_WIFI_AP(); | 
					
						
							| 
									
										
										
										
											2021-04-07 15:04:51 +08:00
										 |  |  | #endif
 | 
					
						
							| 
									
										
										
										
											2019-06-28 16:47:34 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2023-02-14 10:06:40 +05:30
										 |  |  | #ifdef CONFIG_ESP_WIFI_NAN_ENABLE
 | 
					
						
							|  |  |  | const esp_netif_inherent_config_t _g_esp_netif_inherent_nan_config = ESP_NETIF_INHERENT_DEFAULT_WIFI_NAN(); | 
					
						
							|  |  |  | #endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-30 12:50:52 +01:00
										 |  |  | const esp_netif_inherent_config_t _g_esp_netif_inherent_eth_config = ESP_NETIF_INHERENT_DEFAULT_ETH(); | 
					
						
							| 
									
										
										
										
											2019-06-28 16:47:34 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-26 13:22:20 +02:00
										 |  |  | #ifdef CONFIG_PPP_SUPPORT
 | 
					
						
							| 
									
										
										
										
											2020-01-30 12:50:52 +01:00
										 |  |  | const esp_netif_inherent_config_t _g_esp_netif_inherent_ppp_config = ESP_NETIF_INHERENT_DEFAULT_PPP(); | 
					
						
							| 
									
										
										
										
											2022-09-26 13:22:20 +02:00
										 |  |  | #endif
 |