fuse wifi and ethernet component to a sngle network component.

enable both interfaces if configured from menuconfig

Signed-off-by: Karl Osterseher <karli_o@gmx.at>
This commit is contained in:
Karl Osterseher
2025-01-22 23:37:00 +01:00
Unverified
parent f96ff180e2
commit 1d7dc2dc00
20 changed files with 253 additions and 200 deletions

View File

@@ -0,0 +1,21 @@
/*
* network_interface.h
*
* Created on: Jan 22, 2025
* Author: karl
*/
#ifndef COMPONENTS_NETWORK_INTERFACE_INCLUDE_NETWORK_INTERFACE_H_
#define COMPONENTS_NETWORK_INTERFACE_INCLUDE_NETWORK_INTERFACE_H_
#include <stdbool.h>
#include "esp_netif.h"
#define NETWORK_INTERFACE_DESC_STA "sta"
#define NETWORK_INTERFACE_DESC_ETH "eth"
bool network_is_our_netif(const char *prefix, esp_netif_t *netif);
void network_init(void);
#endif /* COMPONENTS_NETWORK_INTERFACE_INCLUDE_NETWORK_INTERFACE_H_ */