936 Commits

Author SHA1 Message Date
Kapil Gupta 69b3391e5f Merge branch 'bugfix/static_analysis_issue_supplicant' into 'master'
fix(supplicant): resolve constant expression warning in crypto_ecdh_output_size

Closes IDF-15548

See merge request espressif/esp-idf!47650
2026-04-20 12:40:57 +05:30
Kapil Gupta 3c70d52b89 Merge branch 'bugfix/wps_frag_handling' into 'master'
fix(wps): harden enrollee WSC fragment handling

Closes WIFIBUG-1801

See merge request espressif/esp-idf!47084
2026-04-20 00:26:01 +05:30
Kapil Gupta 7774285b7d fix(esp_wifi): Move unnecessary PMF prints to verbose 2026-04-17 14:34:56 +05:30
Jiang Jiang Jian c09a6ee07a Merge branch 'chip/add_wifi_support_for_esp32s31_rebase_master' into 'master'
feat(wifi): add wifi support for esp32s31

See merge request espressif/esp-idf!47339
2026-04-17 14:24:43 +08:00
Kapil Gupta fd883d87ac fix(esp_wifi): Address review comments on MR 2026-04-16 19:07:24 +05:30
Kapil Gupta ca94acf4de Merge branch 'bugfix/validate_ptk_generation' into 'master'
fix(esp_wifi): fail if ptk derivation fails

See merge request espressif/esp-idf!47643
2026-04-16 18:47:52 +05:30
yinqingzhao 9f58583929 fix(ci): fix ci build issue of esp32s31 2026-04-16 20:19:54 +08:00
yinqingzhao c3da80ee52 feat(wifi): add esp32s31 wifi support 2026-04-16 20:17:07 +08:00
Kapil Gupta 6aabf3706f fix(supplicant): resolve constant expression warning in crypto_ecdh_output_size
Use PSA_BITS_TO_BYTES(key_bits) directly instead of
PSA_RAW_KEY_AGREEMENT_OUTPUT_SIZE(PSA_KEY_TYPE_ECC_KEY_PAIR(...))
to eliminate a tautological type check that always evaluates to the same result.
2026-04-15 20:42:24 +05:30
Kapil Gupta 9dd1c015db fix(esp_wifi): fail if ptk derivation fails 2026-04-15 15:26:48 +05:30
Kapil Gupta 957313d4c3 fix(esp_wifi): Skip allocation of new buffers during EAP processing 2026-04-13 17:14:26 +08:00
Kapil Gupta 85c164c2b7 fix(esp_wifi): Optimize crypto operations for DPP 2026-04-12 09:00:25 +05:30
Kapil Gupta 4707f8ee7d fix(esp_wifi): Disconnect before sending WPS success event 2026-03-31 14:48:44 +05:30
Kapil Gupta 91997ec7d2 fix(esp_wifi): Address some issues in esp_supplicant WPS states 2026-03-30 11:35:16 +05:30
Kapil Gupta d388fc268d fix(wps): harden enrollee WSC fragment handling 2026-03-27 15:00:27 +05:30
Fu Hanxi 4f92cfd077 ci: rename eco tags to revision 2026-03-26 12:24:59 +01:00
Nachiket Kukade 5cd80dd8a8 fix(wpa_supplicant): Fix coverity issue (CID 900721)
Return a valid band mode in case of get_band failure
2026-03-26 12:06:37 +08:00
Kapil Gupta 1f6e32ee78 fix(esp_wifi): Optimize crypto operations for SAE
- Montgomery multiplication fast path for P-256 mulmod
- Jacobi symbol for legendre (replacing exp_mod)
- Software Jacobian point multiplication for MPI-only chips
- ECC hardware acceleration for supported chips
2026-03-20 19:44:09 +05:30
Kapil Gupta 30efa77a80 ci(esp_wifi): Update supplicant's crypto Unit test cases 2026-03-20 19:44:09 +05:30
Sarvesh Bodakhe 2a5ff3943f fix(wifi): ignore disconnect events outside WPS handshake phase in wps
wifi_station_wps_start() calls esp_wifi_disconnect() to leave a
previously connected AP before scanning for WPS registrars. When the
STA is already connected, the async disconnect event triggers
wps_sm_notify_deauth() which incorrectly treats it as a handshake failure,
disabling WPS entirely.

Guard wps_handle_failure() so it only fires when wps_get_status() is
WPS_STATUS_PENDING, i.e. the STA has found a WPS AP and is actively
in the M1-M8 exchange.
2026-03-17 11:26:32 +05:30
Akshat Agrawal 66a25379c0 bugfix(usd): Resolve multicast RX issue in AX capable chips
- Limit the NAN_DE_MAX_SERVICE to avoid Starvation of the second service
2026-03-16 19:33:46 +05:30
Jiang Jiang Jian c0cc489bc2 Merge branch 'bugfix/supplicant_min_scan_time' into 'master'
fix(esp_wifi): Fix min scan time for btm scan

Closes WIFIBUG-1768

See merge request espressif/esp-idf!46336
2026-03-09 15:55:02 +08:00
Jiang Jiang Jian 46ee782a21 Merge branch 'fix/roam_scan_ongoing_flag_set' into 'master'
Set and unset roam scan ongoing flag properly

Closes WIFIBUG-1508, WIFIBUG-1621, and WIFIBUG-1747

See merge request espressif/esp-idf!44384
2026-03-06 18:54:15 +08:00
Kapil Gupta a359bfa614 fix(esp_wifi): Fix min scan time for btm scan 2026-03-06 08:36:43 +05:30
Jiang Jiang Jian 52f3bf88f1 Merge branch 'bugfix/sae_commit_queue_full_memory_leak' into 'master'
fix(wpa_supplicant): fix memory leak on SAE commit queue post failure

See merge request espressif/esp-idf!46293
2026-03-05 19:34:09 +08:00
Sajia eeb69e20bb fix(wifi): Stop scan when wps is disabled 2026-03-05 14:53:24 +08:00
Sarvesh Bodakhe 7e81c99613 fix(wpa_supplicant): fix memory leak on SAE commit queue post failure
In auth_sae_queue(), when wpa3_hostap_post_evt() fails, the queued
entry was left on the list and never freed. This leaks memory under
SAE commit floods or when the event queue is full.

Free the entry and remove it from the list on post failure.
2026-03-04 22:46:04 +05:30
tarun.kumar ff4023beea fix(roam) : Set and unset roam scan ongoing flag properly 2026-03-04 15:40:10 +05:30
Jiang Jiang Jian 84d406190c Merge branch 'bugfix/support_for_alt_snounce' into 'master'
fix(esp_wifi): Add alt snonce verification in softAP

Closes FCS-1846

See merge request espressif/esp-idf!46008
2026-03-03 20:01:35 +08:00
Jiang Jiang Jian 65c723da6b Merge branch 'bugfix/ft_enable_flag_set_check' into 'master'
Add ft enabled check for ft sae

Closes WIFIBUG-1744

See merge request espressif/esp-idf!45932
2026-03-02 15:55:42 +08:00
Kapil Gupta 724f1fcaeb fix(esp_wifi): EAP TLS RSA verify and CBC record decrypt with PSA crypto 2026-02-25 15:24:50 +05:30
Kapil Gupta 78d06aae6e fix(esp_wifi): Add alt snonce verification in softAP 2026-02-24 10:53:15 +05:30
tarun.kumar e56cbd09b6 fix(wifi) : Add ft enabled check for ft sae and added a separate check if AP doesnt include PMKID in 1/4 handshake message
- Add a separate condition if AP doesnt include PMKID in FT-SAE for 1/4 handshake message
2026-02-19 12:22:16 +05:30
Kapil Gupta 63f6d822ae Merge branch 'bugfix/dpp_concurrency_issue' into 'master'
fix(esp_wifi): Execute DPP event handlers in eloop context

Closes WIFIBUG-1543

See merge request espressif/esp-idf!45718
2026-02-13 12:56:04 +05:30
Kapil Gupta b7a1e385f0 fix(esp_wifi): Execute DPP event handlers in eloop context 2026-02-11 12:30:35 +05:30
Sajia 87dba67ba4 fix(wifi): Disable wps in eloop context during wps timeout 2026-02-10 11:24:59 +05:30
Jiang Jiang Jian ecee0ba530 Merge branch 'bugfix/eloop_mem_leak' into 'master'
fix(esp_wifi): Fix memory leak caused due to eloop

Closes WIFIBUG-1501

See merge request espressif/esp-idf!42938
2026-02-05 14:26:35 +08:00
Jiang Jiang Jian adbe6d2818 Merge branch 'bugfix/free_sae_commit_queue' into 'master'
fix(esp_wifi): Fix memory leak for sae commit queue

See merge request espressif/esp-idf!43431
2026-02-05 14:13:15 +08:00
Shreyas Sheth 63487a51ab fix(esp_wifi): Fix memory leak caused due to eloop
- Fix memory leak when eloop timer is in eloop queue and esp_wifi_deinit is
called
- Return error on long timeout
- Fix memory leak when register timeout returns error
2026-02-05 11:02:13 +08:00
Jiang Jiang Jian 766205166f Merge branch 'bugfix/wps_finish_bug' into 'master'
fix(esp_wifi): Fix bug where wps_finish is called recursively

Closes WIFIBUG-1520 and WIFIBUG-1675

See merge request espressif/esp-idf!45287
2026-02-05 10:32:45 +08:00
Shreyas Sheth d81060d18d fix(esp_wifi): Fix memory leak for sae commit queue 2026-02-03 15:02:38 +08:00
Mu Hai Dong fd5c0104d8 Merge branch 'bugfix/fix_external_coex_function_ci_memory_check_fail_issue' into 'master'
fix(wifi): fix unit test ci memory check fail issue

Closes IDFCI-3500, IDFCI-4913, IDFCI-8340, and IDFCI-3511

See merge request espressif/esp-idf!45411
2026-02-02 21:25:18 +08:00
harshal.patil 53072bfa9d fix(mbedtls): Enable h/w accel for CMAC and HMAC operations
- Refactor ESP-MAC drivers
2026-01-31 00:45:11 +05:30
muhaidong 9c7ff1094b fix(wifi): fix unit test ci memory check fail issue 2026-01-29 15:33:25 +08:00
tarun.kumar dc365da0f6 fix(ci) : Fix offchan tx and roc related unit test case 2026-01-27 14:58:51 +05:30
igor.udot 4c26ab876b ci: update build-test-rules to use common_components 2026-01-23 10:14:09 +08:00
Kapil Gupta f10dc34880 fix(esp_wifi): Fix bug where wps_finish is called recursively 2026-01-21 11:10:59 +05:30
Kapil Gupta 1eb2c9249a Merge branch 'bugfix/wps_reg_crash' into 'master'
fix(wifi): Add check before allocating eapol sm

See merge request espressif/esp-idf!43273
2026-01-17 11:03:06 +05:30
Sajia 2991d26491 fix(wifi): Free eapol sm before alloc for new connection 2026-01-16 16:42:49 +05:30
Shreyas Sheth 65228af9ab fix(wifi): Fix incorrect allocation of eb due to rsn ie len mismatch 2026-01-14 12:42:31 +05:30