From 1362b58b5856b16c2dfdd6693523e50bfaf16b7d Mon Sep 17 00:00:00 2001 From: zhangyanjiao Date: Tue, 8 Nov 2022 18:33:59 +0530 Subject: [PATCH] esp_wifi: report rssi info in wifi event --- components/esp_wifi/include/esp_wifi_types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp_wifi/include/esp_wifi_types.h b/components/esp_wifi/include/esp_wifi_types.h index e6df84fa4a52..3ce4ccfe7358 100644 --- a/components/esp_wifi/include/esp_wifi_types.h +++ b/components/esp_wifi/include/esp_wifi_types.h @@ -654,6 +654,7 @@ typedef struct { uint8_t ssid_len; /**< SSID length of disconnected AP */ uint8_t bssid[6]; /**< BSSID of disconnected AP */ uint8_t reason; /**< reason of disconnection */ + int8_t rssi; /**< rssi of disconnection */ } wifi_event_sta_disconnected_t; /** Argument structure for WIFI_EVENT_STA_AUTHMODE_CHANGE event */