Commit Graph
1637 Commits
Author SHA1 Message Date
yinqingzhao 9bb9bbc781 fix(wifi): fix tx issues introduced by keeping alive optimization 2026-06-29 16:18:38 +08:00
Jiang Jiang Jian d9b3b6984a Merge branch 'bugfix/fix_smartconfig_stop_assert_issue' into 'master'
fix(wifi): added start check when calling smartconfig stop

Closes WIFI-7432

See merge request espressif/esp-idf!49993
2026-06-26 14:04:33 +08:00
Akshat Agrawal 7b477596a7 fix(nan): Move the required variables under the NAN_SYNC block 2026-06-25 09:15:21 +05:30
zhangyanjiao 3d1bff8b42 fix(wifi): added start check when calling smartconfig stop 2026-06-25 09:53:29 +08:00
Jiang Jiang Jian 87a6c90160 Merge branch 'bugfix/pub_ndp_setup_timeout' into 'master'
fix(nan): Cluster merging and NIK NVS persistence, including pairing and NDP fixes

Closes WIFIBUG-1932, WIFIBUG-1931, WIFIBUG-1927, WIFIBUG-1942, WIFIBUG-1948, WIFIBUG-1955, WIFIBUG-1986, and WIFIBUG-1975

See merge request espressif/esp-idf!49185
2026-06-24 20:57:22 +08:00
Jiang Jiang Jian 16da34ad67 Merge branch 'feat/ftm_esp32s31_calib_values' into 'master'
feat(ftm): Update ftm calibration values esp32s31

See merge request espressif/esp-idf!49221
2026-06-24 16:28:29 +08:00
Akshat Agrawal 7a9acae345 Remove hardcoded GSP subattributes 2026-06-24 10:34:04 +05:30
Akshat Agrawal b7b54b3650 Fix unwanted encryption of NAFs 2026-06-23 22:12:44 +05:30
Nachiket Kukade d36416980c feat(nan): Add aes_wrap/unwrap crypto callbacks
- Use crypto callbacks instead of calling internal API's
- Clean up of unused code, flags. Re-arrange functions
2026-06-23 22:08:06 +05:30
Akshat Agrawal c4b1e06057 Address review comments VNC 2026-06-23 22:08:06 +05:30
Akshat Agrawal 2c134933ec Address review comments and fix build errors 2026-06-23 22:08:06 +05:30
Akshat Agrawal 601faef85b fix(nan): Add service hash to NVS to maintain pairing states after reset 2026-06-23 22:08:06 +05:30
Akshat Agrawal afd5a13e71 Change the NIRA verification logic 2026-06-23 22:08:06 +05:30
Akshat Agrawal e64f0d7b1d fix(nan): Disable/Enable Pairing setup bit based on NIK stored in NVS
- Only send pairing followup only if nik caching is enabled
2026-06-23 22:08:06 +05:30
Nachiket Kukade 7d6d7ead9a feat(nan): persist NIK/NPK credentials in NVS
Replace nik/nik_valid in wifi_nan_sync_config_t with reset_current_nvs_creds
and use_nvs_for_caching. On NAN start, load the saved own NIK and peer
credentials from NVS (or erase them when reset is requested); generate and
persist a fresh own NIK only when none is valid and caching is enabled.

PASN reuses the SAE module (PWE/crypto and the comeback-token mechanism),
so define CONFIG_SAE whenever SoftAP-SAE or PASN is enabled. This fixes the
undefined references to check_comeback_token()/auth_build_token_req() when
SOFTAP config is disabled.
2026-06-23 22:08:06 +05:30
Nachiket Kukade 11ac60fcbb refactor(nan): consolidate NIRA construction into esp_nan_construct_nira 2026-06-23 22:08:06 +05:30
Akshat Agrawal 713fee2929 Add pairing followup timeout and post CONFIRM Failure 2026-06-23 22:08:06 +05:30
Nachiket Kukade b45178e798 fix(nan): Move Pairing API's to private header 2026-06-23 22:08:06 +05:30
Nachiket Kukade 0d9225db5a fix(nan): address esp_ai_reviewer review comments 2026-06-23 22:08:06 +05:30
Akshat Agrawal 92a41a8f37 Address Review comments 2026-06-23 22:08:06 +05:30
Akshat Agrawal f68fb697f7 fix(nan): fix NAN pairing NIK/NIRA exchange and verification
Register esp_nan_verify_nira, cache NIRA for publish frames, send own_nik
in pairing follow-up, and complete pairing only after peer NIK is stored.
2026-06-23 22:08:06 +05:30
Akshat Agrawal cd94023075 fix(nan): Add CLUSTER_JOIN Event and Cluster merging feat 2026-06-23 22:08:06 +05:30
Akshat Agrawal 2a8c1b5b24 fix(nan): Add NDP Setup timeout at the publisher side
- fix PASN initiator pmksa_cache_get() usage with the extra argument
- Add attributes to secured NDP frames according to Specs
- Resolve M2 MIC verification failure in secured datapath
2026-06-23 22:08:06 +05:30
muhaidong c6c152bef3 fix(wifi): post disconnect event after disassociation tx callback 2026-06-22 17:50:50 +08:00
Sajia 1d044feba3 feat(ftm): Update ftm calibration values esp32s31 2026-06-22 16:14:52 +08:00
yinqingzhao 951d2d902b fix(wifi): fix still performing active scan on unsupported channels in auto policy 2026-06-17 09:55:01 +08:00
yinqingzhao 07623db26a feat(wifi): support ftm for esp32s31 2026-06-10 19:57:21 +08:00
yinqingzhao 63b92cf17e fix(wifi): fix scheduling issue when tasks have the same priority as the Wi-Fi task 2026-06-10 11:48:26 +08:00
yinqingzhao 42744902c6 feat(wifi): optimizations ralated to keep alive 2026-06-09 16:16:15 +08:00
Jiang Jiang Jian 853a2cfd3a Merge branch 'chip/support_wifi_low_power_for_s31_rebase_master' into 'master'
Chip/support wifi low power for s31 rebase master

Closes IDF-14579 and IDF-14582

See merge request espressif/esp-idf!48532
2026-06-09 15:16:53 +08:00
sibeibei 1b8b73ae41 fix(ci): fix pre-commit issue 2026-06-08 19:24:30 +08:00
sibeibei bd7dc2da07 feat(wifi): adpater apb clock is independent 2026-06-08 19:24:30 +08:00
Kapil Gupta db6f99e160 Merge branch 'bugfix/isolate_remote_local_cache' into 'master'
fix(esp_wifi): Isolate wifi-remote API check from local station build

See merge request espressif/esp-idf!48866
2026-06-01 14:42:57 +05:30
Kapil Gupta 620973393c fix(esp_wifi): Isolate wifi-remote API check from local station build
Use scripts/station_gen_build with -B and -D SDKCONFIG so generate_and_check
does not read the station example's sdkconfig or build tree. Apply
sdkconfig.defaults and IDF_TARGET=esp32 for stable header preprocessing.

Unset GIT_DIR/GIT_INDEX_FILE (and related vars) before git subprocesses so
pre-commit and git worktrees do not mis-resolve paths after cd into scripts/.
2026-05-29 14:20:15 +08:00
Guillaume Souchere d670774f5c feat(esp_common): implement composable error code registration via link-time arrays
Refactor the esp_err_to_name() system to decouple esp_common from
higher-level components. Instead of a monolithic generated table,
each component registers its error codes into a dedicated linker
section (.esp_err_msg_table) via idf_define_esp_err_codes() in its
CMakeLists.txt.

New files:
- tools/err_codes_extract.py: extract ESP_ERR_* defines from headers to CSV
- tools/err_codes_to_c.py: generate C source placing entries into linker section
- tools/err_codes_to_rst.py: generate RST documentation from error codes
- tools/cmake/err_codes.cmake: CMake module providing idf_define_esp_err_codes()
- components/esp_common/include/esp_err_codes.h: esp_err_msg_t typedef
- components/esp_common/src/esp_err_to_name_new.c: new lookup using link-time array
- tools/test_apps/build_system/err_codes_check/: CI test app

Changes:
- Remove all optional component dependencies from esp_common/CMakeLists.txt
- Add .esp_err_msg_table section to all 5 linker scripts
- Register error codes in 18 components via idf_define_esp_err_codes()
- Add new scripts to .gitlab/ci/rules.yml build_check patterns
- use new scripts to generate doc and add CI validation
- Update esp_err.rst to add description of composable code registration
2026-05-28 09:53:32 +02:00
Sudeep Mohanty 301eeba878 Merge branch 'task/buildv2_hygiene_and_dep_declarations' into 'master'
fix(components): generic dep-declaration and scope-leakage hygiene exposed by cmakev2

See merge request espressif/esp-idf!48739
2026-05-26 10:18:22 +02:00
tarun.kumar 108362389e fix(wifi) : Add Mode/threshold checks in esp_wifi_disable_pmf_config()
- Updated API documentation for esp_wifi_disable_pmf_config()
2026-05-25 15:36:41 +05:30
Shreyas Sheth 41b4d70ad4 feat(esp_wifi): Add support for multiconfig support for DPP 2026-05-25 13:57:28 +08:00
Shreyas Sheth 2d3c11b277 fix(esp_wifi): Fix ci pipeline for random mac feature 2026-05-25 11:22:45 +08:00
JackandCursor 4786ab4d14 docs(wifi): add Chinese translation for MAC randomization
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-25 11:22:45 +08:00
Aditi 18cbdbf2b1 feat(esp_wifi): Add improvements for privacy extension
1) Add support for MAC randomization in Active scan and connect
  2) Add support for randomizaton of sequence numbers
  3) Add support for randomization of dialog token for GAS frames
2026-05-25 11:22:45 +08:00
0f8d4b74a0 feat(esp_wifi): NAN Pairing Improvements and bugfixes
- Route NAN pairing bootstrap via NPBA receive path
- extend datapath_req wait time to fit secured M1-M4 handshake
- Plug ND-PMK derived from KDK into NDP
- prefers paired-peer cached ND-PMK (from PASN pairing complete), when available
- carry ND-PMK metadata in pairing install callback
- Extend PASN key-installed callback payload to include role, mapped NDP CSID
  and derived ND-PMK so the NAN layer can populate paired-peer security cache.

Co-authored-by: Akshat Agrawal <akshat.agrawal@espressif.com>
Co-authored-by: Sarvesh Bodakhe <sarvesh.bodakhe@espressif.com>
2026-05-22 11:30:00 +05:30
9f361f478d feat(esp_wifi): Add NAN Pairing support
- Add container struct for internal extra params for follow-up
- Support for parsing Shared Key Desc in Pairing follow-up
- Implement NAN Pairing API's with required parameters
- In KeyData set cipher_ver to 0, Key Info to 0x12C8
  (AKM-defined | Pairwise | Install | ACK |
   Secure | Encrypted Key Data) for iOS compatibility
- Move NAN PASN into esp_nan_supplicant.c, move declarations
  to esp_private/esp_supp_nan.h
- Align PASN/ND-PMK derivation with hostap

Co-authored-by: Sajia <sajia.ali@espressif.com>
Co-authored-by: Akshat Agrawal <akshat.agrawal@espressif.com>
Co-authored-by: Sarvesh Bodakhe <sarvesh.bodakhe@espressif.com>
2026-05-22 13:01:51 +08:00
Nachiket Kukade e731ff3598 feat(wpa_supplicant): Add PASN Support to for NAN Pairing
- Create pasn module from upstream. Changes till 1a791e9c
- Add ecdh prime len api to MbedTLS port
- Integrate nan and pasn modules for PIN code method
- Fix KCK length and add auth timeout
- Add NAN Pairing PASN support
2026-05-22 13:01:51 +08:00
Nachiket Kukade 38182e38c0 feat(esp_wifi): Add NAN pairing bootstrapping APIs for Wi-Fi Aware 4.0
- Implement the bootstrapping handshake phase of NAN pairing (spec 7.6.4.1).
- Add pairing support to NAN Publish/Subscribe APIs:
- Add dummy NIRA , MME Attributes
2026-05-22 13:01:51 +08:00
Sudeep Mohanty 506cedf16c fix(esp_wifi): declare interface deps in non-WiFi stub registration
Public headers (notably esp_wifi_default.h) include esp_event.h,
esp_netif.h and esp_phy.h. Declare these in REQUIRES so the headers
are visible to consumers — same interface as the WiFi-enabled
registration at the bottom of this file.

Also declare wpa_supplicant as PRIV_REQUIRES so the remote/ EAP
stubs can include esp_eap_client.h when the stub registration is
compiled.
2026-05-21 10:05:48 +02:00
sibeibei 68c9de209b feat(wifi): add sleep retention attach/detach in hw start/stop 2026-05-21 11:46:16 +08:00
Li Shuai 0d9587952d change(esp_wifi): support wifi module retention runtime attach and detach 2026-05-21 11:46:16 +08:00
Sarvesh Bodakhe a17b3e97c6 fix(wifi): NAN per-service subscriber security state
The singleton subscriber security cache was overwritten on each new
subscribe, breaking PMKID match for all but the most recent service.
Move security state to own_svc, matched cred index to peer_svc.
2026-05-19 16:54:17 +05:30
Sarvesh Bodakhe b3512ccf7d change(wifi): NAN security_cfg as pointer
security_cfg in wifi_nan_publish_cfg_t / wifi_nan_subscribe_cfg_t is a
large struct; pass it by pointer so callers don't bloat their cfg copy.
Driver deep-copies during publish/subscribe, so caller may free right
after the API returns. Add NULL-check when security_reqd is set.

Update both example apps to declare a local security_cfg and assign its
address. Add help text on EXAMPLE_NAN_SECURITY_ENABLED.
2026-05-19 16:54:17 +05:30