mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 11:17:20 +02:00
@@ -30,10 +30,10 @@ typedef enum {
|
|||||||
WIFI_MODE_MAX
|
WIFI_MODE_MAX
|
||||||
} wifi_mode_t;
|
} wifi_mode_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef esp_interface_t wifi_interface_t;
|
||||||
WIFI_IF_STA = ESP_IF_WIFI_STA,
|
|
||||||
WIFI_IF_AP = ESP_IF_WIFI_AP,
|
#define WIFI_IF_STA ESP_IF_WIFI_STA
|
||||||
} wifi_interface_t;
|
#define WIFI_IF_AP ESP_IF_WIFI_AP
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
WIFI_COUNTRY_POLICY_AUTO, /**< Country policy is auto, use the country info of AP to which the station is connected */
|
WIFI_COUNTRY_POLICY_AUTO, /**< Country policy is auto, use the country info of AP to which the station is connected */
|
||||||
|
Submodule components/esp_wifi/lib_esp32 updated: ab63edff8f...64404ba1a0
@@ -135,7 +135,7 @@ low_level_output(struct netif *netif, struct pbuf *p)
|
|||||||
struct pbuf *q = p;
|
struct pbuf *q = p;
|
||||||
esp_err_t ret;
|
esp_err_t ret;
|
||||||
|
|
||||||
if (wifi_if > WIFI_IF_AP) {
|
if (wifi_if >= ESP_IF_MAX) {
|
||||||
return ERR_IF;
|
return ERR_IF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user