From 3c8ed7b8c97ef1b3ccd7073ee9226be61a921f81 Mon Sep 17 00:00:00 2001 From: ronghulin Date: Wed, 15 Apr 2020 20:20:16 +0800 Subject: [PATCH] bugfix: optimization API esp_wifi_deauth_sta --- components/esp_wifi/include/esp_wifi.h | 15 +++++++++++++++ components/esp_wifi/lib | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/components/esp_wifi/include/esp_wifi.h b/components/esp_wifi/include/esp_wifi.h index ad8f63054..f10643995 100644 --- a/components/esp_wifi/include/esp_wifi.h +++ b/components/esp_wifi/include/esp_wifi.h @@ -808,6 +808,21 @@ esp_err_t esp_wifi_get_config(wifi_interface_t interface, wifi_config_t *conf); */ esp_err_t esp_wifi_ap_get_sta_list(wifi_sta_list_t *sta); +/** + * @brief Get AID of STA connected with soft-AP + * + * @param mac STA's mac address + * @param[out] aid Store the AID corresponding to STA mac + * + * @return + * - ESP_OK: succeed + * - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init + * - ESP_ERR_INVALID_ARG: invalid argument + * - ESP_ERR_NOT_FOUND: Requested resource not found + * - ESP_ERR_WIFI_MODE: WiFi mode is wrong + * - ESP_ERR_WIFI_CONN: WiFi internal error, the station/soft-AP control block is invalid + */ +esp_err_t esp_wifi_ap_get_sta_aid(const uint8_t mac[6], uint16_t *aid); /** * @brief Set the WiFi API configuration storage type diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index 696c211b2..9f06eb781 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit 696c211b2321c4ac3d651fa524ba5326f59f47cf +Subproject commit 9f06eb78123f4684a622762e2d5f01112f1aa823