mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-29 18:27:20 +02:00
Revert "Refactor wifi_interface_t"
This reverts commit ae24692785
.
Closes: https://github.com/espressif/arduino-esp32/issues/4905
This commit is contained in:
@ -33,10 +33,10 @@ typedef enum {
|
||||
WIFI_MODE_MAX
|
||||
} wifi_mode_t;
|
||||
|
||||
typedef enum {
|
||||
WIFI_IF_STA = ESP_IF_WIFI_STA,
|
||||
WIFI_IF_AP = ESP_IF_WIFI_AP,
|
||||
} wifi_interface_t;
|
||||
typedef esp_interface_t wifi_interface_t;
|
||||
|
||||
#define WIFI_IF_STA ESP_IF_WIFI_STA
|
||||
#define WIFI_IF_AP ESP_IF_WIFI_AP
|
||||
|
||||
typedef enum {
|
||||
WIFI_COUNTRY_POLICY_AUTO, /**< Country policy is auto, use the country info of AP to which the station is connected */
|
||||
|
Submodule components/esp32/lib updated: d518cc7e8b...b3c748ed8a
@ -114,7 +114,7 @@ low_level_output(struct netif *netif, struct pbuf *p)
|
||||
struct pbuf *q = p;
|
||||
err_t ret;
|
||||
|
||||
if (wifi_if > WIFI_IF_AP) {
|
||||
if (wifi_if >= ESP_IF_MAX) {
|
||||
return ERR_IF;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user