From 86300427dc6b18ef3eb7abafc8e2b541db7831dd Mon Sep 17 00:00:00 2001 From: xiehang Date: Wed, 7 Aug 2019 11:14:18 +0800 Subject: [PATCH] esp_wifi: add esp_wifi_internal_ioctl declared --- components/esp32/include/esp_wifi_internal.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/esp32/include/esp_wifi_internal.h b/components/esp32/include/esp_wifi_internal.h index 9309ea0e9..967c5d01e 100644 --- a/components/esp32/include/esp_wifi_internal.h +++ b/components/esp32/include/esp_wifi_internal.h @@ -226,6 +226,18 @@ void *wifi_calloc( size_t n, size_t size ); */ esp_err_t esp_wifi_internal_update_mac_time( uint32_t time_delta ); +/** + * @brief A general API to set/get WiFi internal configuration, it's for debug only + * + * @param cmd : ioctl command type + * @param cfg : configuration for the command + * + * @return + * - ESP_OK: succeed + * - others: failed + */ +esp_err_t esp_wifi_internal_ioctl(int cmd, wifi_ioctl_config_t *cfg); + #ifdef __cplusplus } #endif