]> granicus.if.org Git - esp-idf/commitdiff
esp32: fix some STA certification issues
authorliu zhifu <liuzhifu@espressif.com>
Mon, 29 Apr 2019 12:13:31 +0000 (20:13 +0800)
committerliu zhifu <liuzhifu@espressif.com>
Mon, 29 Apr 2019 12:16:44 +0000 (20:16 +0800)
Fix following WiFi STA certification issues:
1. Add support for STA HT2040 coexist management
2. Add support for WPA2 improvements
3. Disallow HT rate when unicast/mcast cipher is TKIP/WEP

components/esp32/include/esp_wifi.h
components/esp32/include/esp_wifi_types.h
components/esp32/lib

index 3348f8f4ef43e5d3fd5988fadfc342b9a956655b..e67f4606bd55867687fb5b07a37321204ca0c46c 100644 (file)
@@ -1102,6 +1102,19 @@ esp_err_t esp_wifi_set_ant(const wifi_ant_config_t *config);
   */
 esp_err_t esp_wifi_get_ant(wifi_ant_config_t *config);
 
+/**
+  * @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
index a6c7b39683188e2defd639fdbcb475d85597d8b0..f536370497cd8788523adb9cce0bffe672ee6d0c 100644 (file)
@@ -451,6 +451,34 @@ typedef struct {
                     enabled_ant1: 4;      /**< Index (in antenna GPIO configuration) of enabled WIFI_ANT_MODE_ANT1 */
 } wifi_ant_config_t;
 
+/** 
+  * @brief WiFi ioctl command type
+  *
+  */
+typedef enum {
+    WIFI_IOCTL_SET_STA_HT2040_COEX = 1, /**< Set the configuration of STA's HT2040 coexist management */
+    WIFI_IOCTL_GET_STA_HT2040_COEX,     /**< Get the configuration of STA's HT2040 coexist management */
+    WIFI_IOCTL_MAX,
+} wifi_ioctl_cmd_t;
+
+/** 
+ * @brief Configuration for STA's HT2040 coexist management
+ *
+ */
+typedef struct {
+    int enable;                         /**< Indicate whether STA's HT2040 coexist management is enabled or not */
+} wifi_ht2040_coex_t;
+
+/** 
+  * @brief Configuration for WiFi ioctl
+  *
+  */
+typedef struct {
+    union {
+        wifi_ht2040_coex_t ht2040_coex; /**< Configuration of STA's HT2040 coexist management */
+    } data;                             /**< Configuration of ioctl command */
+} wifi_ioctl_config_t;
+
 #ifdef __cplusplus
 }
 #endif
index 3e40f1af216f8c44859887d60240d51b29e088f5..1c5f7ed2657b2d4673c105907a1457ffaa83accb 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 3e40f1af216f8c44859887d60240d51b29e088f5
+Subproject commit 1c5f7ed2657b2d4673c105907a1457ffaa83accb