Commit Graph

580 Commits

Author SHA1 Message Date
Shreyas Sheth
53e36b0ce4 fix(wpa_supplicant): Fix issues related to pmkid mismatch and eloop for dpp 2026-07-09 17:38:49 +05:30
nilesh.kale
9144db695a feat: enable tests and cleanup jira references for s31 2026-07-03 15:31:51 +05:30
Sarvesh Bodakhe
932a9e33d8 feat(wifi): add NAN group data and management frame protection
Add Wi-Fi Aware group-key support to secured NDPs so group-addressed
traffic can be protected, for interop with iOS/macOS peers:

- GTK (NCS-GTK-CCM-128) protects group-addressed data.
- IGTK/BIGTK (BIP) protect group management traffic - multicast SDFs,
  Beacons.

Capabilities are advertised in the CSIA IE: group_data_prot maps to GTKSA,
group_mgmt_prot to IGTKSA/BIGTKSA. The CSIA cannot encode IGTK/BIGTK
without GTK (WiFi Aware spec 9.5.21.2, Table 122), so enabling group_mgmt_prot
forces group_data_prot on for every secured service.

Expose per-service group_data_prot and device-global group_mgmt_prot.
2026-07-01 13:35:15 +05:30
yinqingzhao
4e383dc4c5 fix(itwt): fix flow id 0 cannot suspend in itwt example 2026-06-10 20:17:23 +08:00
sibeibei
1ce999e59f feat(ci): enable build for esp32s31, disable CI test 2026-06-08 19:24:30 +08:00
Mahavir Jain
e601a60baa Merge branch 'bugfix/increase_partition_nan' into 'master'
fix(esp_wifi): Increase partition size of app for NaN console

See merge request espressif/esp-idf!48973
2026-05-27 18:30:14 +05:30
Kapil Gupta
9dac8ed04f fix(esp_wifi): Increase partition size of app for NaN console 2026-05-27 17:46:47 +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
958c7bef43 feat(esp_wifi): Harden dpp code and add improvements for dpp 2026-05-25 13:57:28 +08:00
Jiang Jiang Jian
e02f5a9710 Merge branch 'feat/support_twt_for_esp32s31' into 'master'
feat(wifi): update itwt example

See merge request espressif/esp-idf!48483
2026-05-20 15:00:19 +08:00
yinqingzhao
6a29152dec feat(wifi): update itwt example for different chips 2026-05-19 20:00:04 +08:00
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
Sarvesh Bodakhe
caba5dcfea refactor(wifi): NAN datapath header cleanups and docs
- Rename NAN_IPV6_ADDR_ID_LEN / IS_ZERO_NAN_ADDR_ID to ..._IPV6_IDENTIFIER
  so the names no longer read like MAC-address constants; drop the
  duplicate macro definition in esp_nan.h.
- Replace literal lengths with named macros: WIFI_OUI_LEN for
  nan_vendor_ie_t.vendor_oui, and a new WIFI_MAC_ADDR_LEN (private)
  applied to the NAN-related structs and callbacks in esp_private/wifi.h.
- Document each callback in struct nan_sync_callbacks and each helper
  in struct nan_secure_dp_funcs: when fired / when invoked, what each
  argument means, and the matching spec section where useful.
- Note in wifi_nan_datapath_req_t / wifi_nan_datapath_resp_t that they
  cover the NCS-SK credential model only; pairing-based cipher suites
  (NCS-PK-PASN) install per-peer ND-PMKs via a separate pairing API
  without changing these structs. Record why per-NDP credential
  injection at response time is not viable: the responder's PMKID
  lookup happens at M1 receive time, before the indication event
  surfaces to the host.
2026-05-19 16:54:12 +05:30
Sarvesh Bodakhe
cfecf60986 feat(wifi): NAN multi-credential discovery security
Replace scalar passphrase/PMK in wifi_nan_discovery_security_params_t
with wifi_nan_credential_t[N] array (cap 4) per Wi-Fi Aware v4.0
§9.5.21.4. Drop public PMKID array and service-level csid_bitmap.

Rename wifi_nan_datapath_security_params_t -> wifi_nan_security_params_t;
add wifi_nan_peer_sdf_security_t for multi-PMKID peer-RX. The
derive_security_params callback takes (svc_name, sec_cfg, out_derived[])
and runs once per credential on the WiFi task. Split nan_record_own_svc
into claim/finalize so the WiFi-task callback finds the pending slot
by name and mirrors derived material — no main-task PBKDF2.
2026-05-19 11:11:55 +05:30
Sarvesh Bodakhe
0244cb362b feat(wifi): NAN encrypted NDP example apps
nan_publisher / nan_subscriber demonstrate the secure NDP path:
publisher acts as the responder + UDP echo server, subscriber as the
initiator. Both support passphrase and pre-shared PMK modes via
menuconfig; PMK hex strings are decoded with the same helper on both
sides so endpoints derive matching PMKIDs.
2026-05-19 11:07:06 +05:30
muhaidong
a1d2b468e8 fix(wifi): update auth mode threshold doc 2026-05-18 15:49:34 +08:00
Akshat Agrawal
d66ccc2479 feat(wifi): Add multiple NAN Service Discovery improvements
- Add Country Code, Vendor IE to NAN frames
 - Support parsing of multiple availibility & SDA attributes
 - Add parsing of service response filter
 - Support Bloom filter parsing and generation
 - Record peer_svc for nan_indication_cb
 - Add support for NDPE Extension attribute
2026-05-13 12:08:17 +05:30
sibeibei
78f4db5b87 feat(ci): add sleep cache safe check for wifi power save 2026-05-09 14:42:14 +08:00
muhaidong
7fabf0c6c6 fix(wifi): add ESP_WIFI_MAX_CONN_NUM-aligned ranges for soft-AP max STA Kconfig 2026-05-06 20:50:06 +08:00
Jiang Jiang Jian
f7a5ef7ad5 Merge branch 'feature/softap_owe_support' into 'master'
Add support for OWE Only in SoftAP mode

Closes WIFI-4281 and IDFGH-12437

See merge request espressif/esp-idf!47341
2026-05-06 19:38:29 +08:00
Jiang Jiang Jian
43a7fdee43 Merge branch 'bugfix/roaming_app_issues' into 'master'
fix(esp_wifi): Fixed some issues in roaming app found using static analysis

Closes WIFIBUG-1836 and WIFIBUG-1842

See merge request espressif/esp-idf!47372
2026-05-06 15:50:55 +08:00
Kapil Gupta
b585c0b364 fix(esp_wifi): Fixed some issues in roaming app found using static analysis 2026-05-06 15:50:54 +08:00
Jiang Jiang Jian
0c832c345a Merge branch 'feat/add_auto_lightsleep_example' into 'master'
feat(example): add power management example

Closes PM-672

See merge request espressif/esp-idf!46051
2026-05-06 15:26:21 +08:00
tarun.kumar
2c3cd560c4 fix(wifi) : Made changes based on more review comments
-Require STA DH IE for OWE associations.
    - Send failures using Association Response (no silent deauth-only path).
    - Include RSNE in OWE Association Response alongside DH Parameter IE.
    - Check wpabuf_resize return values when building OWE Assoc Response IEs.
    - Recognize OWE AKM in RSN IE when CONFIG_OWE_SOFTAP without CONFIG_OWE_STA.
    - Docs: SoftAP OWE-only; no transition mode; trim misleading OPEN→OWE note.
2026-05-06 01:07:57 +05:30
Aditi
7d0551257c feat(esp_wifi): Add changes for addressing some review comments
Closes https://github.com/espressif/esp-idf/issues/13457
2026-05-05 21:40:29 +05:30
Aditi
165c9fa44c feat(esp_wifi): Add ESP-IDF specific changes for OWE Only softap
1) Add OWE-Only Support in ESP-IDF softAP example
2) Add changes in documentation
2026-05-05 21:40:29 +05:30
Xu Si Yu
87e64217eb feat(coex): enable external coexistence command 2026-04-28 10:02:10 +08:00
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
wuzhenghui
1ec2dacb03 feat(example): test power_save pd_top config for esp32c5 & esp32c61 2026-04-07 10:29:45 +08:00
Fu Hanxi
4f92cfd077 ci: rename eco tags to revision 2026-03-26 12:24:59 +01:00
Chen Yudong
3928de1520 fix(examples): add CONFIG_FREERTOS_IN_IRAM to iperf examples 2026-03-20 19:50:21 +08:00
tarun.kumar
ff4023beea fix(roam) : Set and unset roam scan ongoing flag properly 2026-03-04 15:40:10 +05:30
Chen Yudong
9afec3c4f3 fix: use iperf-cmd for example esp_ble_mesh/wifi_coexist 2026-02-26 12:01:56 +08:00
Chen Yudong
4e032bf3e1 feat(example): update iperf examples 2026-02-26 11:23:45 +08:00
Chen Yudong
b4a37ebd9d fix(example): remove bt requires from wifi example 2026-02-25 16:37:02 +08:00
Jiang Jiang Jian
b40a7a853a Merge branch 'bugfix/fix_cause_in_wakeup_process' into 'master'
fix(wifi): fix crash issue in sleep wake process and cannot sleep after switch ps mode

Closes WIFIBUG-1687 and WIFI-7187

See merge request espressif/esp-idf!45291
2026-01-28 10:26:53 +08:00
Jiang Jiang Jian
d97590f73c Merge branch 'fix/fix_i2c_modem_clock_ref_count_mismatch' into 'master'
feat(esp_hw_support): add reference count control & clock enable checking for modem clock devices

Closes PM-592 and PM-595

See merge request espressif/esp-idf!42588
2026-01-27 14:18:53 +08:00
wuzhenghui
0df0b45441 feat(example): add cache safe check for wifi powersave example CI 2026-01-23 19:11:10 +08:00
igor.udot
4c26ab876b ci: update build-test-rules to use common_components 2026-01-23 10:14:09 +08:00
Xiao Xufeng
438e07b30e refactor: Remove idf_test component
Split the idf_performance.h and target ver, which hold the performance
thresholds, into the headers of each testing.

In the past pytest also parse the common header to get the thresholds.
Now the logic is also removed. Performance thresholds are supposed to be
in the pytest scripts.
2026-01-01 02:26:42 +08:00
Fu Hanxi
1721c86e91 test: fix mismatch sdkconfig name and file 2025-12-29 09:53:11 +01:00
yinqingzhao
a6b2eb6ad0 refactor(wifi): remove enum values WIFI_BW_HT20 and WIFI_BW_HT40 2025-12-24 14:11:52 +08:00
wuzhenghui
068632fa90 feat(esp_hw_support): add ESP_MODEM_CLOCK_ENABLE_CHECKING config option 2025-12-22 18:21:46 +08:00
Konstantin Kondrashov
d2a4f52aac feat(esp_event): Update depends_components
Where esp_event is used as depends_components:
- components/esp_event/host_test
- components/esp_event/test_apps
- examples/system/esp_event/default_event_loop
- examples/system/esp_event/user_event_loops
2025-11-26 17:05:10 +02:00
Jiang Jiang Jian
388ec4cd6d Merge branch 'ci/rename_wifi_two_duts' into 'master'
ci: rename wifi_two_dut to two_duts

See merge request espressif/esp-idf!43269
2025-11-13 16:54:51 +08:00
Chen Yudong
d784a1e098 ci: fix sdkconfig.ci.xxx for wifi examples 2025-11-12 18:42:38 +08:00
Chen Yudong
d591aaf1ae ci: rename wifi_two_dut to two_duts 2025-11-12 10:05:07 +08:00
Fu Hanxi
1e79c69fc4 tests: change wifi tests expect timeout to 60
- wifi_router
- wifi_ap
- wifi_high_traffic
2025-11-03 09:19:02 +08:00
Sarvesh Bodakhe
4c3d6c1292 fix(wifi): Add refactoring and migration guide for USD, Offchan_tx, ROC
1. fix(wifi): Rename old NAN configuration to NAN-Sync
  - Rename CONFIG_ESP_WIFI_NAN_ENABLE to CONFIG_ESP_WIFI_NAN_SYNC_ENABLE to indicate
    the support for Synchronized NAN (Wi-Fi Aware).
  - Because the original flag really controls the synchronized feature set, rename it
    to CONFIG_ESP_WIFI_NAN_SYNC_ENABLE so the NAN-Sync and NAN-USD paths can be
    selected independently without confusion.
2. Document esp_wifi_start requirement and fix USD examples
3. Rename nan_callbacks to nan_sync_callbacks
4. Remove the discovery_flag, clarify docs for sync vs USD flows, and add USD start/stop APIs
5. Require esp_wifi_start() before USD start
6. docs(nan): add NAN-USD application examples
7. add migration guide and hints for NAN-USD proto field
8. Improve allow_broadcast documentation
9. Add attention to the API esp_wifi_remain_on_channel
10. fix(wifi): align NAN API renames and docs for v6.0
  - keep shared APIs under esp_wifi_nan_* while reserving
    sync/usd names for mode-specific entry points
  - clarify synchronized-cluster scope in headers, docs, and migration notes (EN/zh-CN)
  - update examples for renamed helpers and WIFI_NAN_SYNC_CONFIG_DEFAULT()
  - rename `wifi_nan_config_t` to `wifi_nan_sync_config_t`
11. Mark NAN-USD as esp-idf experimental feature
2025-10-20 12:46:55 +05:30