From 8b389419abf8b838346d170d6d7f1192422e717a Mon Sep 17 00:00:00 2001 From: Deng Xin Date: Fri, 11 May 2018 14:49:16 +0800 Subject: [PATCH] (wifi): Add more information about wifi config 1. Update libphy.a to v3900 2. Update librtc.a to v238 3. add scan_method, sort_method and threshold when invoke esp_wifi_get_config() 4. add rssi of each STA in softAP list 5. add country information in scan result 6. add noise floor in rx pkt Closes https://github.com/espressif/esp-idf/issues/1095 Closes https://github.com/espressif/esp-idf/issues/1723 Closes https://github.com/espressif/esp-idf/issues/1483 --- components/esp32/include/esp_wifi_types.h | 3 +++ components/esp32/lib | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/esp32/include/esp_wifi_types.h b/components/esp32/include/esp_wifi_types.h index 4f1c4cd71..479720996 100755 --- a/components/esp32/include/esp_wifi_types.h +++ b/components/esp32/include/esp_wifi_types.h @@ -49,6 +49,7 @@ typedef struct { char cc[3]; /**< country code string */ uint8_t schan; /**< start channel */ uint8_t nchan; /**< total channel number */ + int8_t max_tx_power; /**< maximum tx power */ wifi_country_policy_t policy; /**< country policy */ } wifi_country_t; @@ -155,6 +156,7 @@ typedef struct { uint32_t phy_lr:1; /**< bit: 3 flag to identify if low rate is enabled or not */ uint32_t wps:1; /**< bit: 4 flag to identify if WPS is supported or not */ uint32_t reserved:27; /**< bit: 5..31 reserved */ + wifi_country_t country; /**< country information of AP */ } wifi_ap_record_t; typedef enum { @@ -230,6 +232,7 @@ typedef union { /** @brief Description of STA associated with AP */ typedef struct { uint8_t mac[6]; /**< mac address */ + int8_t rssi; /**< current average rssi of sta connected */ uint32_t phy_11b:1; /**< bit: 0 flag to identify if 11b mode is enabled or not */ uint32_t phy_11g:1; /**< bit: 1 flag to identify if 11g mode is enabled or not */ uint32_t phy_11n:1; /**< bit: 2 flag to identify if 11n mode is enabled or not */ diff --git a/components/esp32/lib b/components/esp32/lib index ba4c4ce08..04e656c30 160000 --- a/components/esp32/lib +++ b/components/esp32/lib @@ -1 +1 @@ -Subproject commit ba4c4ce08e64ec848360afe25796fbdf45e24c9a +Subproject commit 04e656c303d129c479b5c019ea364e11c6f96f4d