Skip to content

Commit 02b60f5

Browse files
committed
Merge branch 'fix/backport_wifi_fixes_v5.3' into 'release/v5.3'
fix(wifi): backport some wifi fixes to v5.3 See merge request espressif/esp-idf!31476
2 parents e282468 + 3ccffd4 commit 02b60f5

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

components/esp_wifi/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ menu "Wi-Fi"
406406

407407
config ESP_WIFI_GMAC_SUPPORT
408408
bool "WiFi GMAC Support(GMAC128 and GMAC256)"
409-
default n
409+
default y
410410
help
411411
Select this option to enable GMAC support. GMAC support is compulsory for WiFi 192 bit certification.
412412

components/esp_wifi/include/esp_wifi.h

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,18 @@ extern wifi_osi_funcs_t g_wifi_osi_funcs;
242242
#define WIFI_FTM_RESPONDER 0
243243
#endif
244244

245+
#if CONFIG_ESP_WIFI_GCMP_SUPPORT
246+
#define WIFI_ENABLE_GCMP (1<<4)
247+
#else
248+
#define WIFI_ENABLE_GCMP 0
249+
#endif
250+
251+
#if CONFIG_ESP_WIFI_GMAC_SUPPORT
252+
#define WIFI_ENABLE_GMAC (1<<5)
253+
#else
254+
#define WIFI_ENABLE_GMAC 0
255+
#endif
256+
245257
#if CONFIG_ESP_WIFI_ENABLE_DUMP_HESIGB && !WIFI_CSI_ENABLED
246258
#define WIFI_DUMP_HESIGB_ENABLED true
247259
#else
@@ -258,12 +270,16 @@ extern wifi_osi_funcs_t g_wifi_osi_funcs;
258270
#define CONFIG_FEATURE_CACHE_TX_BUF_BIT (1<<1)
259271
#define CONFIG_FEATURE_FTM_INITIATOR_BIT (1<<2)
260272
#define CONFIG_FEATURE_FTM_RESPONDER_BIT (1<<3)
273+
#define CONFIG_FEATURE_GCMP_BIT (1<<4)
274+
#define CONFIG_FEATURE_GMAC_BIT (1<<5)
261275

262276
/* Set additional WiFi features and capabilities */
263277
#define WIFI_FEATURE_CAPS (WIFI_ENABLE_WPA3_SAE | \
264278
WIFI_ENABLE_SPIRAM | \
265279
WIFI_FTM_INITIATOR | \
266-
WIFI_FTM_RESPONDER)
280+
WIFI_FTM_RESPONDER | \
281+
WIFI_ENABLE_GCMP | \
282+
WIFI_ENABLE_GMAC)
267283

268284
#define WIFI_INIT_CONFIG_DEFAULT() { \
269285
.osi_funcs = &g_wifi_osi_funcs, \

components/wpa_supplicant/src/crypto/crypto_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static int esp_aes_gmac(const u8 *key, size_t key_len, const u8 *iv, size_t iv_l
4343
#if CONFIG_GMAC
4444
return aes_gmac(key, key_len, iv, iv_len, aad, aad_len, tag);
4545
#else
46-
return 0;
46+
return -1;
4747
#endif
4848
}
4949

0 commit comments

Comments
 (0)