Explorar o código

esp_wifi: esp32c2 does not support wapi.

muhaidong %!s(int64=3) %!d(string=hai) anos
pai
achega
6ca2804107

+ 4 - 0
components/soc/esp32/include/soc/Kconfig.soc_caps.in

@@ -682,3 +682,7 @@ config SOC_WIFI_FTM_SUPPORT
 config SOC_WIFI_GCMP_SUPPORT
     bool
     default n
+
+config SOC_WIFI_WAPI_SUPPORT
+    bool
+    default y

+ 1 - 0
components/soc/esp32/include/soc/soc_caps.h

@@ -383,3 +383,4 @@
 #define SOC_WIFI_HW_TSF                 (0)    /*!< Support hardware TSF */
 #define SOC_WIFI_FTM_SUPPORT            (0)    /*!< FTM Support */
 #define SOC_WIFI_GCMP_SUPPORT           (0)    /*!< GCMP Support(GCMP128 and GCMP256) */
+#define SOC_WIFI_WAPI_SUPPORT           (1)    /*!< WAPI Support */

+ 4 - 0
components/soc/esp32c2/include/soc/Kconfig.soc_caps.in

@@ -566,3 +566,7 @@ config SOC_WIFI_FTM_SUPPORT
 config SOC_WIFI_GCMP_SUPPORT
     bool
     default n
+
+config SOC_WIFI_WAPI_SUPPORT
+    bool
+    default n

+ 1 - 0
components/soc/esp32c2/include/soc/soc_caps.h

@@ -282,3 +282,4 @@
 #define SOC_WIFI_HW_TSF                 (1)    /*!< Support hardware TSF */
 #define SOC_WIFI_FTM_SUPPORT            (1)    /*!< FTM Support */
 #define SOC_WIFI_GCMP_SUPPORT           (0)    /*!< GCMP Support(GCMP128 and GCMP256) */
+#define SOC_WIFI_WAPI_SUPPORT           (0)    /*!< WAPI Support */

+ 4 - 0
components/soc/esp32c3/include/soc/Kconfig.soc_caps.in

@@ -762,3 +762,7 @@ config SOC_WIFI_FTM_SUPPORT
 config SOC_WIFI_GCMP_SUPPORT
     bool
     default y
+
+config SOC_WIFI_WAPI_SUPPORT
+    bool
+    default y

+ 1 - 0
components/soc/esp32c3/include/soc/soc_caps.h

@@ -360,3 +360,4 @@
 #define SOC_WIFI_HW_TSF                 (1)    /*!< Support hardware TSF */
 #define SOC_WIFI_FTM_SUPPORT            (1)    /*!< FTM Support */
 #define SOC_WIFI_GCMP_SUPPORT           (1)    /*!< GCMP Support(GCMP128 and GCMP256) */
+#define SOC_WIFI_WAPI_SUPPORT           (1)    /*!< WAPI Support */

+ 4 - 0
components/soc/esp32s2/include/soc/Kconfig.soc_caps.in

@@ -862,3 +862,7 @@ config SOC_WIFI_FTM_SUPPORT
 config SOC_WIFI_GCMP_SUPPORT
     bool
     default n
+
+config SOC_WIFI_WAPI_SUPPORT
+    bool
+    default y

+ 1 - 0
components/soc/esp32s2/include/soc/soc_caps.h

@@ -394,3 +394,4 @@
 #define SOC_WIFI_HW_TSF                 (1)    /*!< Support hardware TSF */
 #define SOC_WIFI_FTM_SUPPORT            (1)    /*!< FTM Support */
 #define SOC_WIFI_GCMP_SUPPORT           (0)    /*!< GCMP Support(GCMP128 and GCMP256) */
+#define SOC_WIFI_WAPI_SUPPORT           (1)    /*!< WAPI Support */

+ 4 - 0
components/soc/esp32s3/include/soc/Kconfig.soc_caps.in

@@ -979,6 +979,10 @@ config SOC_WIFI_GCMP_SUPPORT
     bool
     default y
 
+config SOC_WIFI_WAPI_SUPPORT
+    bool
+    default y
+
 config SOC_TWAI_BRP_MIN
     int
     default 2

+ 1 - 0
components/soc/esp32s3/include/soc/soc_caps.h

@@ -426,3 +426,4 @@
 #define SOC_WIFI_HW_TSF                 (1)    /*!< Support hardware TSF */
 #define SOC_WIFI_FTM_SUPPORT            (1)    /*!< FTM Support */
 #define SOC_WIFI_GCMP_SUPPORT           (1)    /*!< GCMP Support(GCMP128 and GCMP256) */
+#define SOC_WIFI_WAPI_SUPPORT           (1)    /*!< WAPI Support */

+ 1 - 0
components/wpa_supplicant/Kconfig

@@ -26,6 +26,7 @@ menu "Supplicant"
 
     config WPA_WAPI_PSK
         bool "Enable WAPI PSK support"
+        depends on SOC_WIFI_WAPI_SUPPORT
         default n
         help
             Select this option to enable WAPI-PSK