Commit Graph

1078 Commits

Author SHA1 Message Date
yinqingzhao
694dbd6843 fix(wifi):esp32c6 wifi rx statistics is always zero 2024-05-16 19:20:59 +08:00
yinqingzhao
a484bdda11 fix(bss_color):fix bss color issues 2024-05-16 14:45:06 +08:00
liuning
68cb30a609 fix(wifi): fix esp32 unrecoverable m f issue 2024-05-16 11:58:33 +08:00
zhangyanjiao
8710a192c4 fix(wifi): fixed sniffer and espnow issue
1. fix(wifi): fixed sniffer dump fcs error packets fail

Closes https://github.com/espressif/esp-idf/issues/10777

2. fix(wifi): fixed the espnow priv parameter get error

Closes https://github.com/espressif/esp-idf/issues/13693
2024-05-15 11:48:29 +08:00
Jiang Jiang Jian
4065dc56b9 Merge branch 'bugfix/nan_datapath_issues' into 'master'
Fix issues in NAN datapath establishment

Closes WIFIBUG-367

See merge request espressif/esp-idf!29065
2024-05-14 22:03:46 +08:00
Jiang Jiang Jian
ffae1dfb9d Merge branch 'doc/update_mesh_doc' into 'master'
docs(wifi): update the docmentation for mesh API

See merge request espressif/esp-idf!30238
2024-05-14 22:03:34 +08:00
Shyamal Khachane
029748bfad fix(esp_wifi): Fix issues in NAN datapath establishment
1. Resolve indefinite waiting while stopping NAN
2. Increase NDP response timeout to 8 DW's
3. Set NAN discovery beacon interval to 100 TU's as per Section 9.2
   of Wi-Fi Aware Specification v4.0
2024-05-14 11:24:45 +05:30
Nachiket Kukade
23809777fa fix(esp_wifi): Fix issue in selecting FTM compensation with external AP 2024-05-13 12:10:38 +05:30
zhangyanjiao
a017812623 fix(wifi): fix the tx issue when mesh packet lifetime remain equal to zero 2024-05-10 16:28:52 +08:00
Sarvesh Bodakhe
bc63f1e7fa fix(wifi): Fix issue of wrong Rx control information of espnow packets
Only for esp32 and esp32s2
2024-05-08 17:11:34 +05:30
Li Shuai
ddd65e1f54 fix(esp_wifi): clear soc wakeup request signal at tbtt process 2024-05-08 10:40:16 +08:00
Sarvesh Bodakhe
2700b750b6 fix(wifi): Fix issue in scan when AP advertises WPA and WPA2 with SAE AKM 2024-05-06 11:43:27 +05:30
Nachiket Kukade
d1c2490612 feat(esp_wifi): Update FTM PHY Compensation with calibration 2024-04-29 14:36:46 +05:30
xuxiao
b60c2e7a16 fix(wifi): fix trc_ampdu_stop_rateidx value errors when DUT under softap + sta mode 2024-04-28 15:56:01 +08:00
alanmaxwell
7f13d02229 fix(wifi): clear wifi buffer to fix ampdu compatibility issue 2024-04-24 11:27:29 +08:00
xuxiao
e9d21b64fb fix(wifi): fix esp32c6 wdt issues when recv/send tcp packages 2024-04-23 19:56:57 +08:00
zhangyanjiao
a65c9e37e9 docs(wifi): update the docmentation for mesh API 2024-04-23 19:15:09 +08:00
Kapil Gupta
79cea90dc1 fix(esp_wifi): Correct action frame type in send_mgmt_frame API 2024-04-22 16:08:18 +05:30
Jiang Jiang Jian
22f88a2b9f Merge branch 'bugfix/fix_twt_crash_issues' into 'master'
fix(wifi): fix itwt crash issues

Closes WIFIBUG-492

See merge request espressif/esp-idf!30360
2024-04-22 17:10:08 +08:00
Jiang Jiang Jian
c119fa05f1 Merge branch 'fix/fix_esp32c6_wifi_iperf_example_build_error' into 'master'
fix(example): fix wifi iperf example build errors when enabled CONFIG_ESP_WIFI_ENABLE_WIFI_RX_STATS

See merge request espressif/esp-idf!30174
2024-04-22 16:17:47 +08:00
xuxiao
f650dcdb5e fix(wifi): fixed itwt crash issues 2024-04-19 20:03:35 +08:00
jgujarathi
770162d76c feat(esp_wifi): Adds a new API to set default scan parameters
- esp_wifi_set_scan_parameters() : Used to set the default scan parameters to be used
while scanning. These parameters will be used for all scans conducted by station
including connect scan. Parameters provided through esp_wifi_scan_start() override the
default parameters for that scan only
- esp_wifi_get_scan_parameters(): Used to get the current default scan parameters.
2024-04-19 11:01:53 +08:00
Kapil Gupta
95b522a1be fix(wifi): Fix encryption/decryption issue for mgmt packets
* Fix issues related to mgmt packets encryption in GCMP
* Fix issue of wrong decryption of mgmt packets when PMF is enabled
* Fix softAP bug in handling of SAE Reauthentication
2024-04-16 19:49:09 +05:30
Kapil Gupta
58ee771f3c fix(wifi): Run tools/format.sh on WiFi component 2024-04-16 10:58:37 +05:30
xuxiao
5617bfaaec fix(example): fix wifi iperf example build errors when enabled CONFIG_ESP_WIFI_ENABLE_WIFI_RX_STATS 2024-04-15 19:07:37 +08:00
Jiang Jiang Jian
25d40a67bc Merge branch 'feature/esp32c5beta3_light_sleep_support_stage_2' into 'master'
feat(esp_hw_support): esp32c5 sleep support (Stage 3:  support system peripheral sleep retention)

Closes IDF-8640

See merge request espressif/esp-idf!29723
2024-04-15 14:40:52 +08:00
Lou Tianhao
e3ec2724e7 remove(wifi): sleep_retention member in struct wifi_osi_funcs_t 2024-04-12 14:14:13 +08:00
muhaidong
6d97ebf35c fix(wifi): fixed task watchdog got triggered by esp_wifi_stop issue 2024-04-11 12:03:11 +08:00
xuxiao
ec872c0c81 fix(wifi): fix code review comments 2024-04-10 15:27:50 +08:00
xuxiao
27f61966cd feat(wifi): add esp32c5 beta3 wifi support 2024-04-10 14:09:40 +08:00
Yogesh Mantri
a3abdb9176 fix(esp_wifi_remote): Build issue for softAP 2024-04-08 20:11:08 +08:00
Shreyas Sheth
aee2197563 fix(wifi): Fix print for 2g bitmap in scan path 2024-04-05 17:46:36 +05:30
Kapil Gupta
464fd689a1 fix(esp_wifi): Send unicast probe requests if bssid is known during scan 2024-04-02 11:23:32 +08:00
Kapil Gupta
431a2a7d1c fix(esp_wifi): Address review comments 2024-04-01 23:00:01 +08:00
jgujarathi
9a88dab748 feat(esp_wifi): Add support for advanced roaming as a wifi app
- Adds support for advanced roaming as a wifi app.
2024-04-01 23:00:01 +08:00
jgujarathi
c3f1c3fcde feat(esp_wifi): Add channel bitmaps to the scan config
- Add the ability to specify the specific channels and the
  in wifi_config_t.
- Adds warning that discourages setting bssid and channel in sta_config
  when btm/mbo is enabled and supported by the network.
- Fix issues with reporting authmodes of FT supporting APs during scanning.
- Additional typo fixes in the public header files
2024-04-01 23:00:01 +08:00
alanmaxwell
21693c3c7c fix(ci): disable phy antenna example build for h2 and fix typo and format 2024-04-01 14:59:57 +08:00
alanmaxwell
408a4675ee fix(wifi): fix multi antenna issue for C6 2024-04-01 14:59:55 +08:00
alanmaxwell
0f73cf50fb refactor(wifi): Add deprecated attribute for WiFi multiple antennas api 2024-04-01 14:59:27 +08:00
xiehang
f3c5047638 feat(extconn): Supports external WiFi connections for ESP32p4 and other espressf chips 2024-04-01 11:44:52 +08:00
xiehang
9d7bd6a8dd change(esp_phy): Add SOC_PHY_SUPPORTED to control phy mode 2024-04-01 11:36:55 +08:00
Li Shuai
a054f89021 fix: modify some typos to ensure CI pipeline run pass 2024-03-30 11:51:52 +08:00
Li Shuai
a0a343cb13 change(wifi): use new retention api to implement wifi mac and bb retention 2024-03-30 11:51:50 +08:00
Jiang Jiang Jian
277bec6d04 Merge branch 'bugfix/fix_group_address_qos_frames_issue' into 'master'
fix(wifi): fix multicast address qos frames issue

Closes ESPCS-940 and WIFI-6500

See merge request espressif/esp-idf!29694
2024-03-28 12:55:02 +08:00
David Cermak
132135519d fix(wifi): Remove optional dependency on esp_wifi_remote if !ESP_WIFI_ENABLED
The dependency could be introduced from dependent component if needed.
The else() part of the condition wasn't correct, as it didn't check for
esp_wifi_remote from component manager, which is prefixed by Espressif
namespace, so the correct statement would be:
if(espressif__esp_wifi_remote IN_LIST build_components)
2024-03-27 16:50:38 +01:00
muhaidong
fedfac470a fix(wifi): fix multicast address qos frames issue 2024-03-27 10:13:14 +08:00
jgujarathi
7ef11a1409 fix(rsnxe): Expands maximum size of RSNXE IE to 255
- Allows for RSNXE IE to be processed as a variable length upto
255 bytes, changing the earlier max of 20.
2024-03-26 15:06:36 +05:30
Jiang Jiang Jian
be06a6f5ff Merge branch 'bugfix/fix_softap_coex_start_issue' into 'master'
fix(wifi): fix softap coex start issue, no wifi request if wifi is not used at idle

See merge request espressif/esp-idf!29772
2024-03-21 21:22:54 +08:00
liuning
81b86f657c fix(wifi): fix softap coex start issue, no wifi request if wifi is not used at idle 2024-03-21 19:35:27 +08:00
Sarvesh Bodakhe
1d71178193 fix(wpa_supplicant): Add bugfixes related to ciphersuites in wifi enterprise
- Avoid downgrading TLS ciphersuites when client RSA keys are larger than RSA-2048 bit.
- Note that when using bigger certificates on low-power chips without crypto
  hardware acceleration, it is recommended to adjust the task watchdog timer (TWDT)
  if it is enabled. For precise information on timing requirements, you can check
  performance numbers at https://github.com/espressif/mbedtls/wiki/Performance-Numbers.
2024-03-20 09:33:52 +05:30
Sarvesh Bodakhe
05b882baea fix(wpa_supplicant): Update cipher suite list for TLSv1.3 suiteb and some refactoring
- Use MBEDTLS_TLS1_3_AES_256_GCM_SHA384 cipher for TLSv1.3-suiteb
- Call psa_crypto_init() in tls_connection_init() to reduce redundancy
2024-03-20 09:33:52 +05:30
Sarvesh Bodakhe
5903e9ea2b feat(wpa_supplicant): Make CONFIG_ESP_WIFI_EAP_TLS1_3 an experimental feature 2024-03-20 09:33:52 +05:30
Sarvesh Bodakhe
ec09cdf885 feat(wpa_supplicant): Add TLS v1.3 support for WiFi enterprise
* Add TLS v1.3 support for following EAP methods:
  - EAP-TLS  (RFC 9190)
  - EAP-PEAP (RFC 9427)
  - EAP-TTLS (RFC 9427)
* Add mbedtls porting for TLS v1.3 exporter (RFC 8446 Section 7.5)
* Add new Kconfig flag to enable TLS v1.3 for EAP methods
* Advertise TLS v1.3 signature algorithms if TLS 1.3 is enabled for EAP
  methods
* Advertise TLS v1.3 cipher suites if CONFIG_ESP_WIFI_EAP_TLS1_3 enabled
* Add support to Ack protected success indication
  (workaround for EAP-TLS 1.3 and 1.2 compatibilty)
2024-03-20 09:33:52 +05:30
Sarvesh Bodakhe
0ed1cadcf1 feat(esp_wifi): Update Wi-Fi WPA3 authmodes as per WPA Specification v3.3
* Merge 'WIFI_AUTH_WPA3_EXT_PSK' and 'WIFI_AUTH_WPA3_EXT_PSK_MIXED_MODE'
  into 'WIFI_AUTH_WPA3_PSK' as per specification.
2024-03-19 11:33:55 +05:30
Nachiket Kukade
4971764917 feat(esp_wifi): Refactor and improve FTM code
Enable FTM Responder mode for ESP32C6. Update wifi libs with below -

1. Break FTM State Machine code into separate functions
2. Use dynamic allocation for FTM session to save memory
3. Add API to get FTM report instead of event based mechanism
4. Add FTM Request retry and comeback support

Closes https://github.com/espressif/esp-idf/issues/6810
2024-03-18 22:01:36 +08:00
Sarvesh Bodakhe
34725cdbfd feat(wifi): Add support SAE-PK and WPA3-Enterprise transition disable 2024-03-15 13:55:31 +05:30
Shreyas Sheth
9127a8fb25 fix(wifi): Fix wpa3 crash for station added without sta lock 2024-03-14 15:36:32 +05:30
Jiang Jiang Jian
c97fc4c282 Merge branch 'bugfix/fix_the_spiram_malloc_issue_in_wifi_mesh' into 'master'
fix(wifi): fixed the spiram malloc issue in wifi mesh

Closes IDFGH-12234

See merge request espressif/esp-idf!29472
2024-03-13 20:18:00 +08:00
liuning
1cf760b73f feat(coex): support to scan long time on channel, fix coexist sync issue 2024-03-13 10:54:41 +08:00
muhaidong
7fb8af4e5b fix(doc): update api esp_wifi_sta_get_rssic docs
Closes https://github.com/espressif/esp-idf/issues/12685
2024-03-12 20:33:52 +08:00
alanmaxwell
80266a876d fix(wifi): fix typo in wifi headers 2024-03-12 20:16:44 +08:00
zhangyanjiao
82e8c02efb fix(wifi): fixed the spiram malloc issue in wifi mesh
Closes https://github.com/espressif/esp-idf/issues/13285
2024-03-12 15:37:32 +08:00
muhaidong
736e4f2fe5 fix(wifi): fix some amsdu issue
1. limit the number of sub amsdu
2. fix recycle cache sub amsdu eb issue
2024-03-05 19:06:09 +08:00
liuning
7440e302be feat(coex): improve Wi-Fi connecting compatibility at coexistence 2024-02-27 09:43:00 +08:00
muhaidong
41ce6211d3 fix(wifi): fix lmac_stop_hw_txq issue 2024-02-22 22:56:02 +08:00
aditi_lonkar
90cc61588e feat(esp_wifi): Add support of Network Introduction Protocol in DPP 2024-02-21 12:47:32 +05:30
yinqingzhao
8b8d0f886d fix(wifi):fix issues that in mplen clear and esp_wifi_set_mode 2024-02-21 11:18:39 +08:00
Chen Jian Xing
90035d3588 Merge branch 'bugfix/update_scan_ap_num_when_clear_ap_list' into 'master'
fix(wifi): fixed scan and home channel change issues

Closes WIFI-6456 and IDFGH-11976

See merge request espressif/esp-idf!28895
2024-02-20 17:14:19 +08:00
zhangyanjiao
8bfab29f8d fix(wifi): fixed scan and home channel change issues
1. update scan ap number when clear scan ap records
2. fixed the old_snd filed error in WIFI_EVENT_HOME_CHANNEL_CHANGE event

Closes https://github.com/espressif/esp-idf/issues/13051
2024-02-19 14:57:41 +08:00
fl0wl0w
90d1dcfd76 feat(freertos): Introduced new Kconfig option CONFIG_FREERTOS_NUMBER_OF_CORES
This commit replaces the use of portNUM_PROCESSORS and configNUM_CORES
macros in all of ESP-IDF. These macros are needed to realize an SMP
scenario by fetching the number of active cores FreeRTOS is running on.
Instead, a new Kconfig option, CONFIG_FREERTOS_NUMBER_OF_CORES, has been
added as a proxy for the FreeRTOS config option, configNUMBER_OF_CORES.
This new commit is now used to realize an SMP scenario in various places
in ESP-IDF.

[Sudeep Mohanty: Added new Kconfig option CONFIG_FREERTOS_NUMBER_OF_CORES]

Signed-off-by: Sudeep Mohanty <sudeep.mohanty@espressif.com>
2024-02-09 09:11:28 +01:00
liuning
42a0128d9c fix(wifi): fix wifi stop cost too much time 2024-02-07 13:49:18 +08:00
Jiang Jiang Jian
fe2a5adc93 Merge branch 'contrib/github_pr_12867' into 'master'
fix(esp32): Removed rogue semicolon in #define in esp_smartconfig.h (GitHub PR)

Closes IDFGH-11769

See merge request espressif/esp-idf!28903
2024-02-06 11:57:14 +08:00
zhangyanjiao
7e6295fd75 fix(wifi/mesh): wait for child disconnect when mesh deinit 2024-02-06 09:49:09 +08:00
Simon H
4b08c8b000 fix(esp_wifi): Remove semicolon from SMARTCONFIG_START_CONFIG_DEFAULT
Removed rogue semicolon from SMARTCONFIG_START_CONFIG_DEFAULT() macro. This
fixes build issues when this macro is used via C++ brace initialization.

Closes https://github.com/espressif/esp-idf/pull/12867

[Darian Leung: Updated commit message]
Signed-off-by: Darian Leung <darian@espressif.com>
2024-02-05 17:21:55 +08:00
Sarvesh Bodakhe
0154e81d87 feat(wifi): Sync public header files between ESP-IDF and Wi-Fi driver
- Updated WiFi libraries based on the IDF changes
- Renamed esp_wifi_native.h to esp_wifi_types_native.h
- Reverted forward declarations of native wifi types and HE types
- Forward declare as opaque structs only if we don't have native types (csi and ctrl_packet types)
2024-02-01 12:17:43 +01:00
David Cermak
344cb342b8 fix(esp_wifi): Support for esp_wifi_remote 2024-02-01 12:17:43 +01:00
Sarvesh Bodakhe
c0b3af2292 fix(esp_wifi): Add md5sum validation checks for new public headers and sync headers
Add checks for following public headers:
- esp_wifi_types_generic.h
- esp_wifi_native.h
2024-02-01 12:17:43 +01:00
David Cermak
597f2ce001 fix(esp_wifi): Split public/native, wifi_types.h -> types_generic.h 2024-02-01 12:17:43 +01:00
David Cermak
9088655030 fix(esp_wifi): Separate public and native wifi interface types 2024-02-01 12:17:37 +01:00
David Cermak
07d60b1c04 feat(esp_wifi): Add dependency on wifi_remote for chips with no wifi 2024-02-01 11:26:22 +01:00
Kapil Gupta
d033c3ebff fix(wifi): add low memory options for eap enterprise 2024-01-30 22:54:22 +08:00
Jiang Jiang Jian
984418d0c4 Merge branch 'bugfix/fix_pmk_invalid_wpa_or_wpa2_connect_fail_issue' into 'master'
fix(wifi): fix pmk invalid lead same ssid wpa and wpa2 connect fail issue

Closes WIFIBUG-192 and WIFIBUG-346

See merge request espressif/esp-idf!28571
2024-01-19 19:50:06 +08:00
muhaidong
f268621627 fix(wifi): fix pmk invalid lead same ssid wpa and wpa2 connect fail issue 2024-01-19 11:54:10 +08:00
Omar Chebib
102d5bbf72 refactor(riscv): added a new API for the interrupts 2024-01-18 16:36:53 +08:00
zhangyanjiao
e4c6cec53b fix(wifi): fix the crash and malloc fail issue
1. fix(wifi/mesh): fix the crash issue when mesh deinit
2. fix(wifi):fix when ap recv auth in sa query porcess will memset psq issue
2024-01-17 17:01:35 +08:00
Chen Yudong
e99278b6c5 ci: fix wifi function test markers 2024-01-16 17:12:59 +08:00
Sarvesh Bodakhe
615d928aa5 fix(esp_wifi): Add support for WPA3 + WPA3_EXT_PSK mixed mode and minor bugfixes
- Add support for WPA3 + WPA3_EXT_PSK mixed mode
- Improvements in scan and connect path as per specifications along with
  minor bugfixes
- When AP advertises all PSK modes (WPA, WPA2 and WPA3), make sure that
  station treats it as WPA2_WPA3_PSK mixed mode.

Closes https://github.com/espressif/esp-idf/issues/12517
2024-01-11 10:42:38 +08:00
liuning
d962bc560b fix(pm): fix no sleep null after data sent (33290e79) 2024-01-05 14:12:21 +08:00
Abhik Roy
0c99a58ff6 Merge branch 'lwip/acceptmbox_config' into 'master'
change(lwip): Added macro to configure TCP accept mailbox size

See merge request espressif/esp-idf!27276
2024-01-03 15:55:12 +08:00
jgujarathi
b35ab4e1df fix(esp_wifi): Report authmode incompatible WPA AP scanned and we require PMF
- Report the authmode incompatible if the scanned AP is in WPA mode and we require PMF
  according to sta config
2024-01-01 07:42:03 +05:30
muhaidong
0b3c9aa54c fix(wifi): fix beacon was unexpectedly freed issue 2023-12-29 01:53:22 +08:00
jgujarathi
4b4095e47d fix(esp_wifi): Cover additional situations for reporting new reason codes
- WIFI_REASON_NO_AP_FOUND_W_COMPATIBLE_SECURITY will be reported for the following
  reasons
  -- AP has PMF required but station is not configured for pmf capable/required.
  -- Station has PMF required but AP is not configured for pmf capable/required.
  -- The AP is using unsupported group management/pairwise ciphers
  -- OWE not enabled by station for found OWE AP
  -- AP RSNXE parsing failed in supplicant
  -- AP is in Independent BSS mode
2023-12-28 15:40:54 +05:30
Shyamal Khachane
47fc60db75 fix(esp_wifi): Fix crash while stopping NAN
Also fix inconsistent NAN macro values
2023-12-27 10:24:06 +08:00
Abhik Roy
0c41c4e1da change(lwip): Added macro to configure TCP accept mailbox size 2023-12-15 21:11:44 +11:00
Paul Guyot
336c0946fa Add missing configuration for DEFAULT_ACCEPTMBOX_SIZE (fix #12509)
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
2023-12-15 21:04:26 +11:00
jgujarathi
40adf0bfcd fix(esp_wifi): Correct wifi lib docs for esp_wifi_crypto_types.h
- Wifi lib changes for docs of some APIs in esp_wifi_crypto_types.h
2023-12-15 12:28:18 +05:30
Vikram Dattu
3d40b17576 fix(docs): fixed doxygen warnings in few headers
- non-matching arguments in `i2c_types.h` and `esp_wifi_crypto_types.h`
 - Fixed unended `@cond` macro in `esp_err.h`
2023-12-15 12:28:18 +05:30
zhangyanjiao
40d7cd8b68 feat(wifi): add wifi channel change event
Closes https://github.com/espressif/esp-idf/issues/12538
2023-12-11 19:07:11 +08:00
Jiang Jiang Jian
64a9cd5c80 Merge branch 'feat/support_dump_ack_csi' into 'master'
feat(wifi): support dump 802.11 ACK frame for CSI

Closes WIFI-5992

See merge request espressif/esp-idf!27735
2023-12-08 19:43:11 +08:00
Igor Udot
f0607f6d3b Merge branch 'fix/unity_tester' into 'master'
refactor: changed logic of unity_tester

See merge request espressif/esp-idf!25767
2023-12-08 09:48:51 +08:00