From 5677149833b824e89054cd2ac3d42cf7a24c86c6 Mon Sep 17 00:00:00 2001 From: qiyueixa Date: Fri, 30 Dec 2016 21:22:06 +0800 Subject: [PATCH 1/2] esp32: add wifi low rate feature 1. add low_rate_enable flag to scan results to identify if AP low rate is enabled. 2. add WIFI_PROTOCOL_LR for users to enable low rate feature. --- components/esp32/include/esp_wifi_types.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/esp32/include/esp_wifi_types.h b/components/esp32/include/esp_wifi_types.h index be3183ba5..88ad3dcf5 100755 --- a/components/esp32/include/esp_wifi_types.h +++ b/components/esp32/include/esp_wifi_types.h @@ -109,6 +109,8 @@ typedef struct { wifi_second_chan_t second; /**< second channel of AP */ int8_t rssi; /**< signal strength of AP */ wifi_auth_mode_t authmode; /**< authmode of AP */ + uint32_t low_rate_enable:1; /**< bit: 0 flag to identify if low rate is enabled or not */ + uint32_t reserved:31; /**< bit: 1..31 reserved */ } wifi_ap_record_t; typedef enum { @@ -119,6 +121,7 @@ typedef enum { #define WIFI_PROTOCOL_11B 1 #define WIFI_PROTOCOL_11G 2 #define WIFI_PROTOCOL_11N 4 +#define WIFI_PROTOCOL_LR 8 typedef enum { WIFI_BW_HT20 = 1, /* Bandwidth is HT20 */ From 7778273314ef83f12df7c37dc490bccc40c4e8c4 Mon Sep 17 00:00:00 2001 From: qiyueixa Date: Thu, 5 Jan 2017 18:43:09 +0800 Subject: [PATCH 2/2] esp32: update wifi libs 1. add wifi low rate feature --- components/esp32/lib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp32/lib b/components/esp32/lib index 074303d74..edad97484 160000 --- a/components/esp32/lib +++ b/components/esp32/lib @@ -1 +1 @@ -Subproject commit 074303d74fc9c68823adee0a38fc1e8de42943b6 +Subproject commit edad9748406d06bfd2dfba6cf1a0735c3982460f