Commit Graph

601 Commits

Author SHA1 Message Date
Armando
706d684418 feat(esp32p4): introduced new target esp32p4, supported hello_world 2023-08-09 19:33:25 +08:00
Kapil Gupta
fb908dfe98 change(esp_wifi): Update copyright info for wpa_supplicant 2023-08-02 18:51:37 +05:30
Jiang Jiang Jian
e6e0b0dc40 Merge branch 'bugfix/neighbour_report_crash' into 'master'
Fix crash in RRM neighbour report requests.

Closes WIFI-5838

See merge request espressif/esp-idf!24993
2023-08-01 15:24:56 +08:00
Jiang Jiang Jian
07dd194fdb Merge branch 'bugfix/minor_enterprise_fixes' into 'master'
Minor enterprise fixes

See merge request espressif/esp-idf!24987
2023-08-01 15:16:23 +08:00
Shyamal Khachane
d64a3d7755 fix(esp_wifi): Drop Eapol msg if EAP success is not processed 2023-07-28 15:00:03 +05:30
Jiang Jiang Jian
8ef5a0f723 Merge branch 'bugfix/ccmp_decrypt_log' into 'master'
esp_wifi: Move ccmp mgmt enc/decrypt logs to verbose

See merge request espressif/esp-idf!24331
2023-07-26 10:37:06 +08:00
jgujarathi
c610594abb fix(rrm) : Fix crash in RRM neighbour report requests.
Fix crash in sending new RRM neighbour report requests by removing
the call to neighbour report request timeout callback in case of
already ongoing neighbour report request timer.
2023-07-25 16:38:59 +05:30
Shreyas Sheth
691eed15cc fix(wifi): Fix memory leak caused by assoc IE and retry timer 2023-07-20 10:13:25 +05:30
Shyamal Khachane
a9e6deb615 fix(esp_wifi): Discard commit frame received at confirmed state in SAE 2023-07-18 08:09:08 +05:30
Shreyas Sheth
88cbcf4696 fix(wifi): Bugfix ignore immediate assoc req received by AP
1) Ignore immediate assoc req received from the station while we are
processing the older one
2) Create station mutex (sta->lock) only for stations connecting with wpa3
security
3) Fix regression caused by 4cb4faa9
2023-07-15 13:53:51 +05:30
Jiang Jiang Jian
5995cab9c1 Merge branch 'bugfix/multiple_btm_rrm_task' into 'master'
Fix esp_supplicant_common_deinit to post delete btm_rrm_t task.

Closes IDFGH-9553

See merge request espressif/esp-idf!22674
2023-07-12 19:55:00 +08:00
Kapil Gupta
01a9b46ea9 Fix(esp_wifi): Fix race conditions in btm task deletion 2023-07-11 14:22:10 +05:30
Jiang Jiang Jian
cc1fe58ba3 Merge branch 'bugfix/sae_crypto_optimization_esp32' into 'master'
esp_wifi: Optimize sae crypto operations for esp32

See merge request espressif/esp-idf!24279
2023-07-11 13:57:29 +08:00
Jiang Jiang Jian
12306efc19 Merge branch 'bugfix/btm_scan_done_crash' into 'master'
wpa_supplicant : Fix race condition in BTM scan

Closes WIFI-5838

See merge request espressif/esp-idf!23775
2023-07-04 16:03:08 +08:00
Jiang Jiang Jian
f5ccae4d93 Merge branch 'bugfix/concurrency_while_eloop_register' into 'master'
esp_wifi: Bugfix concurrency observed while doing eloop register

Closes WIFI-5955

See merge request espressif/esp-idf!24046
2023-07-03 13:41:36 +08:00
jgujarathi
98e33605b4 wpa_supplicant : Fix occasional crash during btm roam.
Fix crash due to premature deallocation of neighbour report elements
by scan_done. Post event to btm_rrm_t task to handle scan_done serially
rather than when btm_rrm_t task is processing btm request rx frame.
2023-07-03 04:16:21 +00:00
Kapil Gupta
7dc8de15aa esp_wifi: Optimize sae crypto operations for esp32 2023-06-26 14:25:33 +05:30
Kapil Gupta
09916413a4 esp_wifi: Move ccmp mgmt enc/decrypt logs to verbose 2023-06-20 17:24:40 +05:30
Kapil Gupta
f6b9c4846b Merge branch 'bugfix/wps_deauth_sent_before_eap_failure' into 'master'
esp_wifi: Send deauth before Eap-Failure in WPS registrar

Closes WIFI-5999

See merge request espressif/esp-idf!24164
2023-06-20 18:26:54 +08:00
Jiang Jiang Jian
b77540c285 Merge branch 'bugfix/malloc_free_removal' into 'master'
esp_wifi: Remove direct calls of malloc() and free()

See merge request espressif/esp-idf!23287
2023-06-16 15:21:46 +08:00
Konstantin Kondrashov
c350c3c504 Merge branch 'feature/cleanup_wrong_log_use' into 'master'
all: Removes unnecessary newline character in logs

Closes IDFGH-10197

See merge request espressif/esp-idf!24131
2023-06-15 21:49:49 +08:00
Kapil Gupta
32479c960b esp_wifi: Remove direct call of malloc() and free() 2023-06-14 11:50:58 +05:30
aditi_lonkar
d34a63d1aa Fix for sending deauth before Eap-Failure in WPS 2023-06-12 15:08:42 +05:30
KonstantinKondrashov
e72061695e all: Removes unnecessary newline character in logs
Closes https://github.com/espressif/esp-idf/issues/11465
2023-06-09 03:31:21 +08:00
Shreyas Sheth
078629d61b esp_wifi: Bugfix concurrency observed while doing eloop register 2023-06-06 12:43:12 +05:30
Kapil Gupta
026f9b31fa esp_wifi: Fix WPS issue for WPA3+WPA2 mode 2023-06-05 10:50:53 +05:30
Shreyas Sheth
28e046d200 esp_wifi: Bugfix wpsreg AP not responding to assoc req
Fixed regression caused by 2b8e40e7
2023-06-02 02:07:55 +00:00
Jiang Jiang Jian
cd53393e0b Merge branch 'bugfix/mbo_ie_absent_prob_req' into 'master'
wpa_supplicant : Add MBO IE in probe request and fix issues with parsing GCMP ciphers in scan results.

See merge request espressif/esp-idf!23390
2023-05-19 16:58:12 +08:00
Jiang Jiang Jian
05d1104d28 Merge branch 'bugfix/reduce_logging_for_SAE_master' into 'master'
Modify log level for SAE

See merge request espressif/esp-idf!23548
2023-05-05 17:00:50 +08:00
jgujarathi
e803554654 wpa_supplicant : Fix scan results for GCMP and GCMP-256 cipher.
Add support for recognising GCMP and GCMP-256 ciphers if used by AP.
Update the scan example to show the correct cipher.
2023-05-05 10:13:17 +05:30
jgujarathi
00c0bf683f wpa_supplicant : Add MBO ie in probe request.
Adds the MBO information element in the probe request frame by resetting
scan_ie after set_config is done.
2023-05-05 10:12:29 +05:30
Shyamal Khachane
032305a74f wpa_supplicant: Reduce logging for SAE 2023-05-04 11:21:57 +05:30
Sarvesh Bodakhe
cd0d42d43b wpa_supplicant: Use 'mbedtls_pk_parse_public_key' to parse compressed EC public key and remove unnecessary code
Support to parse compressed EC public key is added from 'mbedtls-3.4.0'
2023-04-28 18:23:42 +05:30
Jiang Jiang Jian
25222163b9 Merge branch 'bugfix/fix_softap_pairwise_cipher_issue' into 'master'
esp_wifi: update pairwise cipher in softAP

Closes WIFI-5768 and WIFI-5779

See merge request espressif/esp-idf!23270
2023-04-27 21:31:19 +08:00
muhaidong
76ac4add53 esp_supplicant: wpa pmf should be disabled 2023-04-27 10:56:25 +08:00
Sarvesh Bodakhe
0518d2eb65 wpa_supplicant: Fix PMKID SHA-256 related regression
Fixed regression caused by commit 38e9c8b4
2023-04-26 18:00:32 +05:30
Kapil Gupta
f73bd61ebe Merge branch 'bugfix/dpp_retry_start_listening_issue' into 'master'
esp_dpp: Fix retry with esp_supp_dpp_start_listen after failure

See merge request espressif/esp-idf!23369
2023-04-26 01:07:03 +08:00
jasta
1885379ae3 esp_dpp: Fix retry with esp_supp_dpp_start_listen after failure
This fixes a subtle bug in which ESP_ERR_DPP_TX_FAILURE errors would
call esp_supp_dpp_stop_listen which sets the s_dpp_stop_listening flag
to true.  Subsequent attempts to restart listening with
esp_supp_dpp_start_listen then only attempt to listen once more for
500ms before reading the s_dpp_stop_listening flag again and giving up.

This contributes greatly to #10615, but the fix here is still largely
a work-around as it sometimes requires manually retrying a couple times
before it works.  Without this fix, any number of retries by
deinit/init again will seemingly not work as the retries for currently
unknown reasons.

Signed-off-by: Shreyas Sheth <shreyas.sheth@espressif.com>

Closes https://github.com/espressif/esp-idf/pull/10865
2023-04-23 20:27:20 +05:30
laokaiyao
bf2a7b2df6 esp32h4: removed esp32h4 related codes 2023-04-23 12:03:07 +00:00
Shreyas Sheth
5524aad43f esp_wifi:Enable wpsreg to initialize in APSTA mode 2023-04-20 14:48:14 +05:30
Shreyas Sheth
dce0920329 esp_wifi: Install keys after successful transmission of EAPOL 4/4 Message 2023-04-12 18:32:24 +05:30
Shyamal Khachane
c046ddd642 wpa_supplicant : Fix association response processing in OWE 2023-04-07 11:45:46 +05:30
Jiang Jiang Jian
262149246d Merge branch 'bugfix/invalid_pmkid_in_eapol_1_of_4' into 'master'
wpa_supplicant: bugfix invalid pmkid in eapol 1 of 4

Closes WIFI-5636

See merge request espressif/esp-idf!23033
2023-04-03 17:24:29 +08:00
Shreyas Sheth
38e9c8b474 wpa_supplicant: Bugfix sending invalid PMKID by softAP in EAPOL message 1 of 4 2023-04-03 12:00:23 +05:30
Sarvesh Bodakhe
b89a851645 esp_wifi: Move wpa_supplicant WIFI_EVENT_STA_CONNECTED and WIFI_EVENT_STA_DISCONNECTED event handlers into callbacks
Executing supplicant WIFI_EVENT_STA_CONNECTED and WIFI_EVENT_STA_DISCONNECTED handlers in event-handler context can lead to concurrency issues.
Moving the functionality into 'wpa_sta_connected_cb' and 'wpa_sta_disconnected_cb' callbacks and execute in ppTask context.
2023-03-31 12:34:03 +05:30
Sarvesh Bodakhe
7fb6f3b9e3 esp_wifi: remove unnecessary code under SAE-PK configuration 2023-03-31 12:34:03 +05:30
Jiang Jiang Jian
74c151df44 Merge branch 'bugfix/fix_softap_wpa3_loop' into 'master'
Fix infinite loop in PMK mismatch case in WPA3 SoftAP

Closes WIFI-5627

See merge request espressif/esp-idf!22954
2023-03-30 14:42:00 +08:00
Shreyas Sheth
888b909e79 esp_wifi: WPA3 softap set PMF required true
1) Set NVS PMF required true if not specified by application when
   authmode is WPA3
2) Fix issue regarding cleanup of non associated sta_info
3) Fix implementation of sta lock to avoid concurrency issues
4) Fix softAP deinit crash when password is configured with max length
2023-03-29 13:07:52 +00:00
Jiang Jiang Jian
8448c72440 Merge branch 'bugfix/wps_phassphrase' into 'master'
wpa_supplicant: Get WPS credential in passphrase format

Closes IDFGH-8922

See merge request espressif/esp-idf!22454
2023-03-29 16:31:46 +08:00
Nachiket Kukade
7ee27bc956 wpa_supplicant: Fix infinite loop in PMK mismatch case in WPA3 SoftAP 2023-03-28 16:52:16 +05:30
muhaidong
61a5785414 Remove -Wno-format in esp_phy, esp_wifi, wpa_supplicant components 2023-03-27 06:42:08 +00:00
Kapil Gupta
5186b018c0 wpa_supplicant: Get WPS credential in passphrase format
Closes https://github.com/espressif/esp-idf/issues/10339
2023-03-24 10:40:04 +05:30
Gustavo Henrique Nihei
50145ed179 esp_rom: Remove STATUS struct in favor of ETS_STATUS
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2023-03-16 01:50:21 +08:00
Jiang Jiang Jian
3cad41ee77 Merge branch 'bugfix/wpa3_softap_supplicant_coverity_fixes' into 'master'
esp_wifi: Fix some SAE SoftAP issues

Closes WIFI-5493, WIFI-5498, IDF-7028, WIFI-5516, and WIFI-5515

See merge request espressif/esp-idf!22574
2023-03-13 10:33:27 +08:00
Shreyas Sheth
c797146f43 wpa_supplicant: Resolve WPA3 SAE softAP coverity issues
1) Resolve wpa_suppliant coverity issues caused by SAE softAP
2) Fix crash occured while deinitialization of softAP
   when authmode is changed
3) Fix issue related to anti clogging token and send_confirm
4) Put some AP specific functions under ESP_WIFI_SOFTAP_SUPPORT
   compilation flags
2023-03-12 17:33:17 +05:30
Nachiket Kukade
4c76af3f68 esp_wifi: Add support for NAN Discovery and Datapath
Update wifi lib with below -
1. Create NAN Discovery SM for beaconing & cluster formation
2. Create NAN interface for Tx/Rx of beacons & action frames
3. Add commands & events for NAN Services Publish/Subscribe/Followup
4. Add NAN Datapath definitions, Events, Peer structures
5. Support for forming and parsing of Datapath related attributes
6. Modules for NDP Req, Resp, Confirm, Term, Peer management
7. NAN Interface related additions in Datapath, Data Tx Q's

In addition include below changes -
1. Add netif and driver support for NAN Interface
2. Add simple examples for Publisher-Subscriber usecases
3. Add an advanced console example that supports commands
   for NAN Discovery, Services & Datapath
4. Add wifi_apps for providing better NAN API's and Peer management

Co-authored-by: Shyamal Khachane <shyamal.khachane@espressif.com>
2023-03-10 11:18:23 +05:30
Jiang Jiang Jian
58b3692540 Merge branch 'bugfix/add_unregister_wpa3_cb' into 'master'
wpa_supplicant : Fix issues encountered in WFA testing

Closes WIFI-5386

See merge request espressif/esp-idf!22396
2023-03-07 14:15:20 +08:00
gauri patankar
6f7cf98ffe esp_wifi: SAE Password Identifier support 2023-03-06 11:04:20 +05:30
jgujarathi
20c316d4cf wpa_supplicant : Add disable for tls key usage check.
Disable the key usage check this leads to false negative results
while using wfa certificates during testing.
2023-03-01 14:14:26 +05:30
jgujarathi
d9d1c3e334 wpa_supplicant : Add validations for 192-bit Suite B test cases.
Add validation for group data cipher, pairwise cipher and AKM Suites to
ensure correct ciphers are supported by AP during 192-bit Enterprise
connections.
2023-03-01 12:04:45 +05:30
Shreyas Sheth
2b8e40e760 esp_wifi: WPA3-SAE support for softAP 2023-02-28 12:25:05 +08:00
Alexey Lapshin
adcdfa641c wpa_supplicant: fix gcc-12 compile errors 2023-02-22 05:33:03 +00:00
jgujarathi
178497c432 wpa_supplicant : Add deinitialization of Enterprise config_methods.
Add deinitialization of config_methods as it prevents correct reinitialization of sta in eap_peer_config_init() during reassoc.
2023-02-17 17:21:41 +05:30
jgujarathi
a512a5d990 wpa_supplicant : Add support for unregistering wifi wpa3 callbacks.
Unregister wifi callbacks allows for disabling support for wpa3 functions when not required.
2023-02-17 17:20:49 +05:30
Sarvesh Bodakhe
d2f6a3dacc esp-wifi: add SAE-PK (Public Key) authentication support for station 2023-02-16 13:49:11 +05:30
Cao Sen Miao
fd3e0b0b18 esp32h2(ci): enable target test 2023-02-15 10:20:43 +08:00
Kapil Gupta
30a2558450 esp_wifi: Merge wpa_supplicant and esp_wifi Kconfig 2023-02-11 07:38:45 +08:00
Shreyas Sheth
a9095ba8e0 esp_wifi: bugfix RSNXE related changes
1. Set AP rsnxe len generic
2. Set transition_disable value in wifi get config
2023-02-07 12:26:54 +00:00
Jiang Jiang Jian
eb55a21fc8 Merge branch 'bugfix/minor_syntax_changes' into 'master'
wpa_supplicant  : Fixing collection of issues encountered during QuickTrack testing.

See merge request espressif/esp-idf!22097
2023-02-03 14:44:00 +08:00
jgujarathi
88ea8c5fed wpa_supplicant : Prevent h2e config overwrite
Current esp_wifi_get_config doesn't return correct value of h2e config which will cause h2e config to be overwritten in Station connected handler.

Add one preventative condition to take care of this.
2023-02-01 14:04:23 +05:30
jgujarathi
c565724f3a wpa_supplicant : fix invalid de-init of last_scan_res_used
During the wifi deinit last_scan_res_used is not set to 0 which will cause it be used directly after reinit.

Added changes which will set it to 0 during init and deinit.
2023-02-01 12:17:42 +05:30
jgujarathi
417fc6d404 wpa_supplicant : Correct scan results for GCMP RSN
Fixed a typo which was causing scan results for GCMP not showing correctly
2023-02-01 12:12:29 +05:30
gauri patankar
d14d001e44 wpa_supplicant:Fix potential null pointer dereference 2023-01-31 21:54:43 +05:30
gauri patankar
85de6f3f9a wpa_supplicant: Restore DEBUG_PRINT in supplicant 2023-01-25 16:57:44 +05:30
Kapil Gupta
de42b2912c Merge branch 'bugfix/update_wps_api_documentation' into 'master'
wpa_supplicant: Update WPS API documentation

Closes IDFGH-8996

See merge request espressif/esp-idf!21714
2023-01-25 18:52:51 +08:00
Sachin Parekh
d9ac69362a wpa_supplicant: Enable ECC test case 2023-01-18 14:25:53 +05:30
Jiang Jiang Jian
3636495d33 Merge branch 'bugfix/remove_redundant_debug_print' into 'master'
Remove redundant DEBUG_PRINT in supplicant

Closes IDFGH-9037

See merge request espressif/esp-idf!21857
2023-01-18 16:45:44 +08:00
Cao Sen Miao
94120b82c2 esp32h2: add build test 2023-01-17 10:29:04 +08:00
Laukik Hase
4f67662cab Merge branch 'feature/mbedtls-3.3.0' into 'master'
mbedtls: Update to v3.3.0

Closes IDF-6536

See merge request espressif/esp-idf!21897
2023-01-12 19:38:51 +08:00
Jiang Jiang Jian
73b838dac3 Merge branch 'bugfix/sae_auth_and_pmk_issues' into 'master'
Fix SAE open auth and PMK issues

Closes WIFI-5059

See merge request espressif/esp-idf!21910
2023-01-10 14:03:01 +08:00
Shyamal Khachane
9603d1d903 Fix SAE open auth and PMK issues 2023-01-10 14:03:00 +08:00
Laukik Hase
c2ab1af47f
wpa_supplicant: Update deprecated API (mbedtls_pkcs5_pbkdf2_hmac)
- The newer alternative does not require HMAC context for its
  operation
2023-01-09 15:41:36 +05:30
Kapil Gupta
45571b0525 Merge branch 'bugfix/remove_sha384_hash_for_bigger_certs' into 'master'
esp_wifi: remove sha384 hash for cert size > 2k

Closes WIFI-5208

See merge request espressif/esp-idf!21840
2023-01-09 18:07:50 +08:00
Chen Yudong
8aca3932b0 CI: enable more wifi cases 2023-01-06 06:03:52 +00:00
gauri patankar
68fb038f43 wpa_supplicant:Remove redundant DEBUG_PRINT in supplicant 2023-01-03 12:52:54 +05:30
Shreyas Sheth
d5c88500c0 wpa_supplicant: Bugfix wps coverity forward null pointer issue 2023-01-01 19:33:24 +00:00
Kapil Gupta
7a8a85877d Removed sha384 hash for certs > 2k 2022-12-29 15:16:58 +05:30
Cao Sen Miao
4713a9a7f2 ESP32H2: Introduce new chip target esp32h2, hello_world example supported 2022-12-29 12:29:14 +08:00
Jiang Jiang Jian
eab2792735 Merge branch 'bugfix/wps_start_state_issue' into 'master'
esp_wifi: Add check for wps start state

See merge request espressif/esp-idf!21100
2022-12-27 17:33:20 +08:00
Kapil Gupta
142f339642 wpa_supplicant: Update WPS API documentation 2022-12-27 13:04:20 +05:30
Shreyas Sheth
18ea8fd0ce esp_wifi: Add check for wps start state 2022-12-27 11:14:03 +05:30
gauri patankar
9a1e4e3b7b wpa_supplicant:Remove stray \n in supplicant logging 2022-12-23 15:55:06 +05:30
chli
e8d652165c wpa_supplicant: remove stray \n when logging "wifi_wps_enable"
Closes https://github.com/espressif/esp-idf/pull/10285

Signed-off-by: gauri patankar <gauri.patankar@espressif.com>
2022-12-23 15:32:58 +05:30
Shyamal Khachane
2e8ebdc0fc wpa_supplicant: Clear current pmksa before generating RSN IE
Also update wifi libs with below changes -
  - Fix reason codes for Invalid PMKID
  - Fix handling of Assoc Resp status codes for Station

Closes https://github.com/espressif/esp-idf/issues/10364
2022-12-20 14:45:47 +05:30
Shyamal Khachane
28fdafbca6 wpa_supplicant: Fix PMK caching related regression
Fixed regression caused by commit bd55b8b7
2022-12-19 19:08:06 +05:30
Shreyas Sheth
bd55b8b72e esp_wifi:BDSA related patch updates 2022-12-12 15:04:04 +05:30
Jiang Jiang Jian
6419436684 Merge branch 'bugfix/skip_sae_during_wps' into 'master'
esp_wifi: Add changes to skip SAE handshake during WPS connection

Closes ESPCS-875

See merge request espressif/esp-idf!21369
2022-12-05 22:26:45 +08:00
Kapil Gupta
924c709efe WiFi: Add WPS softAP registrar example and events 2022-12-02 15:12:25 +05:30
Jiang Jiang Jian
22f8bcdc27 Merge branch 'bugfix/flush_pmk_for_akm_change' into 'master'
esp_wifi: Flush PMK caching if bss akm has changed

Closes WIFI-5014

See merge request espressif/esp-idf!21179
2022-12-02 10:20:13 +08:00
Kapil Gupta
4967e90571 esp_wifi: Add changes to skip SAE handshake during WPS connection 2022-12-01 15:37:43 +05:30
Kapil Gupta
9e0e7bf5ba esp_wifi: STA set extra IEs for open AP
Fixed regression caused by !21292
2022-12-01 09:24:06 +05:30
Kapil Gupta
73bd4ea619 Merge branch 'bugfix/sta_set_extra_ies_for_open_AP' into 'master'
esp_wifi: STA set extra IEs for open AP

Closes WIFI-5012

See merge request espressif/esp-idf!21292
2022-11-30 22:28:03 +08:00
Shreyas Sheth
377eeedfef esp_wifi:Mandate stations to have minimum security wpa3 2022-11-30 13:01:40 +08:00
Shreyas Sheth
340778cb13 esp_wifi: STA set extra IEs for open AP 2022-11-28 06:48:09 +00:00
Song Ruo Jing
1575b9e43a ci: Disable all currently failed target tests for esp32c6 2022-11-28 12:09:08 +08:00
Song Ruo Jing
e13a4ad963 ci: Disable some unit-test-apps for esp32c6 to pass ci build stage 2022-11-28 11:58:30 +08:00
Alexey Gerenkov
47c2c13de5 build: Adds support for universal Clang toolchain 2022-11-23 13:25:16 +03:00
Kapil Gupta
e8e7e3f946 esp_wifi: Flush PMK caching if bss akm has changed 2022-11-21 18:34:13 +05:30
Kapil Gupta
93dd1b2175 Merge branch 'bugfix/fixing_memory_leak_in_wps_scan_master' into 'master'
Adds improvements to esp_wps code to cover up potential memory leaks.

See merge request espressif/esp-idf!20741
2022-11-10 12:39:26 +08:00
Kevin (Lao Kaiyao)
5bed8fab49 Merge branch 'refactor/rename_h2_to_h4' into 'master'
esp32h2: renaming esp32h2 to esp32h4

Closes IDF-6098

See merge request espressif/esp-idf!20676
2022-11-09 19:19:43 +08:00
Shreyas Sheth
7de54eabf4 esp_wifi: Bugfix WPA Enterprise Reauthentication issue 2022-11-08 18:10:28 +05:30
laokaiyao
8677216576 esp32h2: renaming esp32h2 to esp32h4 2022-11-08 17:05:33 +08:00
Jiang Jiang Jian
9d7facf284 Merge branch 'remove_deprecated_rc4' into 'master'
Removed some occurences of the RC4 cipher suite

Closes IDF-4983

See merge request espressif/esp-idf!19856
2022-11-07 13:57:51 +08:00
jgujarathi
2272350820 (esp_wifi) : Adds improvements to esp_wps.c to cover up potential memory leaks. 2022-11-07 10:53:44 +05:30
Jiang Jiang Jian
6fb6bdf6dd Merge branch 'bugfix/wpa_sm_cleanup' into 'master'
esp_wifi: Remove unnecessary function pointers from wpa_sm_init

See merge request espressif/esp-idf!19833
2022-11-04 16:45:42 +08:00
Kapil Gupta
7278cf3e16 Merge branch 'feature/move_eloop_to_pptask' into 'master'
wpa_supplicant: Run eloop timer in ppTask context

Closes WIFI-4981

See merge request espressif/esp-idf!20481
2022-10-31 12:48:43 +08:00
Kapil Gupta
79b6e32ea7 wpa_supplicant: Validate eloop struct before deleting it 2022-10-27 09:16:18 +05:30
Kapil Gupta
404aa30290 wpa_supplicant: Run eloop timer in ppTask context
Currently eloop runs in timer context which may cause some
inconsistent behavior.

Add changes to run eloop in ppTask context
2022-10-26 18:09:25 +05:30
jgujarathi
915fb4dfe2 Removed some occurences of the RC4 cipher suite(deprecated now) 2022-10-26 03:02:16 +00:00
Mahavir Jain
dd76328927 Merge branch 'feature/wpa_supp_mbedtls_private_cleanup' into 'master'
wpa_supplicant: `MBEDTLS_PRIVATE` & `MBEDTLS_ALLOW_PRIVATE_ACCESS`-related cleanup

Closes IDF-5861

See merge request espressif/esp-idf!20171
2022-10-19 12:13:14 +08:00
Jiang Jiang Jian
72a70f08b9 Merge branch 'bugfix/reason_code_pmk_flush' into 'master'
Prevent pmk flush for unspecified reasoncode

Closes WIFI-4796

See merge request espressif/esp-idf!20459
2022-10-13 11:51:48 +08:00
gauri patankar
84252e4eb8 wpa_supplicant: Update security patches from upstream
1. Adding security patch for SAE side channel attacks
2. Adding confirm message validation in error cases
3. Adding y coordinate for PWE in SAE
2022-10-11 11:33:33 +05:30
gauri patankar
c286b0192b wpa_supplicant: Move SAE modules into dragonfly files 2022-10-11 11:26:39 +05:30
Laukik Hase
82c5bdcb76
wpa_supplicant: MBEDTLS_PRIVATE & MBEDTLS_ALLOW_PRIVATE_ACCESS-related cleanup 2022-10-10 11:48:16 +05:30
Kapil Gupta
198a4335f2 Remove unnecessary code from disconnect handler 2022-10-04 21:38:59 +05:30
gauri patankar
c89686647d esp_wifi:added hash key length validation 2022-09-30 10:40:27 +05:30
Kapil Gupta
cc6196ff6a esp_wifi: Remove unnecessary function pointer from wpa_sm_init 2022-09-29 12:46:53 +00:00
wuzhenghui
6b6bb3a321 esp32c6: add wpa_supplicant support 2022-09-26 20:32:13 +08:00
Kapil Gupta
6729f870b9 wpa_supplicant: Prevent pmk flush for unspecified reasoncode 2022-09-26 15:09:48 +05:30
Kapil Gupta
2bbd5ea69c Merge branch 'bugfix/wps_connect_to_open_ap' into 'master'
esp_wifi: bugfix wps connect to open AP

See merge request espressif/esp-idf!20247
2022-09-20 23:59:47 +08:00
Kapil Gupta
1cfd20c476 Merge branch 'bugfix/wps_connection_optimization' into 'master'
wpa_supplicant: Use channel from WPS scan for WPS connect

See merge request espressif/esp-idf!20184
2022-09-20 20:09:31 +08:00
Shreyas Sheth
d12351f7a6 esp_wifi: bugfix wps connect to open AP
Set Mac address in correct field
2022-09-20 11:43:53 +05:30
Kapil Gupta
3c5c108fa8 wpa_supplicat: Use same channel as found in WPS scan for WPS connect 2022-09-16 10:58:03 +05:30
muhaidong
0960aa8d87 wpa_supplicant: try install gtk before send 2 of 2 2022-09-05 21:28:19 +08:00
Kapil Gupta
06db6c2098 Merge branch 'bugfix/wps_ssid_len_validation' into 'master'
wpa_supplicant: Add WPS ssid length validation

See merge request espressif/esp-idf!19486
2022-08-29 13:55:17 +08:00
Mahavir Jain
fbd1972318
wpa_supplicant: fix issue with WPA2 enterprise TLS session
Usage of `mbedtls_ssl_conf_sig_algs()` was incorrect, it must include signature
algorithm with hash. This change is as per requirement defined in mbedTLS-3.2.1
release.
2022-08-24 11:59:35 +05:30
Laukik Hase
6319970ab7
esp_tls/wpa_supplicant: Updated deprecated mbedtls APIs 2022-08-24 11:59:34 +05:30
Jiang Jiang Jian
08ed16f48c Merge branch 'bugfix/remove_rc4_3des_tls_cipher_wpa' into 'master'
wpa_supplicant: remove RC4 and 3DES ciphers for TLS

Closes IDFGH-8107

See merge request espressif/esp-idf!19718
2022-08-24 14:07:05 +08:00
Kapil Gupta
964f0ad5ad wpa_supplicant: remove RC4 and 3DES ciphers for TLS
MbedTLS-3.x has dropped support for 3DES and RC4 TLS cipher
suites. Removing them from supplicant as well

Closes https://github.com/espressif/esp-idf/issues/9607
2022-08-23 13:02:05 +05:30
Kapil Gupta
4df06ed2f0 wpa_supplicant: Fix WPS connection issue after WPS done
esp_wifi_disconnect is needed to clear the wifi state and enable
station to connect to new SSID. Add changes to call it after
WPS is done.
2022-08-22 20:32:34 +05:30
Kapil Gupta
51f785fabe wpa_supplicant: Add WPS ssid length validation 2022-08-10 12:08:40 +05:30
muhaidong
36feb95a9e esp_wifi: done beacon monitor timer and eloop timer when deinit 2022-08-09 17:22:39 +08:00
Ivan Grokhotkov
401c10ecfb build system: re-add -Wno-format as private flag for some components 2022-08-03 16:42:47 +04:00
Kapil Gupta
465996fba5 wpa_supplicant: fix invalid pointer free 2022-07-28 12:47:31 +00:00
Shreyas Sheth
341a92aaa5 esp_wifi: WPA3 SAE keep default value as h2e and hunting and pecking for sae pwe 2022-07-22 12:23:13 +05:30
Jiang Jiang Jian
371a935e76 Merge branch 'bugfix/wpa2_enterprise_issues' into 'master'
esp_wifi: WPA2 enterprise related changes

Closes WIFI-4579

See merge request espressif/esp-idf!19162
2022-07-22 13:56:41 +08:00
Kapil Gupta
951928960b esp_wifi: WPA2 enterprise related changes
1. Removed DHE ciphers when mbedTLS is disabled since they take
too much processing power.
2. Removed support of SHA384 and SHA512 when mbedTLS is disabled
due to too much processing needed.
3. Fixed bugs in crypto_hash_init API which was causing
EAP connections to fail when mbedTLS was enabled.
4. Cleaned some code of crypto_hash_***
2022-07-21 13:33:18 +05:30
David Cermak
5c383d7b73 esp_netif/lwip: Fix deps cycles to "lwip -> esp_netif -> phy-drivers"
Fix dependency tree so that lwip doesn't depend on any specific network
interface component.
Network interface drivers shall depend on esp_netif.
esp_netif shall depend on lwip (but not on any specific interface
driver) -- it optionally depends on vfs and esp_eth (need ethernet
header for L2/bridge mode)
2022-07-20 14:59:07 +02:00
Kapil Gupta
9d98cd8f8d WiFi: Do not disconnect in WPS disable incase WPS is done/scanning
Closes https://github.com/espressif/esp-idf/issues/9341
2022-07-18 14:57:01 +05:30
Jiang Jiang Jian
633a9f744a Merge branch 'bugfix/OWE_memory_leak' into 'master'
esp_wifi : fixed OWE memory leak

See merge request espressif/esp-idf!19061
2022-07-18 17:20:36 +08:00
Kapil Gupta
882ad4e5e7 Merge branch 'feature/eloop_debug_framework' into 'master'
wpa_supplicant: Add debug info for eloop functions

See merge request espressif/esp-idf!18451
2022-07-18 14:17:25 +08:00
Shyamal Khachane
88db86672d fix for OWE memory leak 2022-07-15 14:29:32 +05:30
Kapil Gupta
ff00a1c7a2 esp_wifi: Clear old keys before going for new connection 2022-07-12 16:37:55 +05:30
Jiang Jiang Jian
5f9bbf71fe Merge branch 'feature/sae_sta_h2e' into 'master'
SAE H2E support for STA

See merge request espressif/esp-idf!17860
2022-06-20 23:52:08 +08:00
Shreyas Sheth
591c7a496c esp_wifi: WPA3 SAE H2E support for station 2022-06-20 18:51:11 +05:30
muhaidong
6ca2804107 esp_wifi: esp32c2 does not support wapi. 2022-06-20 11:42:12 +08:00
Kapil Gupta
7fae6ce4f2 Correct SSID copy length during WPS scan 2022-06-18 13:26:48 +00:00
Kapil Gupta
6212a50edd wpa_supplicant: Add debug info for eloop functions 2022-06-16 10:36:34 +05:30
Shyamal Khachane
6d55761f60 OWE support for station 2022-06-15 17:20:24 +05:30
Kapil Gupta
bb23d783c0 Merge branch 'bugfix/sta_rejoin_softap_mode_issue' into 'master'
wpa_supplicant: Add changes to deinit sta_info correctly

Closes WIFI-4441

See merge request espressif/esp-idf!18395
2022-06-07 21:47:14 +08:00
Kapil Gupta
ed2bed49c0 wpa_supplicant: Add changes to deinit sta_info correctly
Incase sta pointer is not null during station join, deinit of
previous sm causing crash due to incorrect typecast.

Add changes to correct this.
2022-06-07 11:41:53 +05:30
Kapil Gupta
28a06d07f7 Corrected hash size for sta_info structure 2022-06-06 16:38:04 +05:30
Kapil Gupta
e9128b3b5b wpa_supplicant: Removed ESP32 reference from generic APIs/Code 2022-06-06 11:03:36 +05:30
Kapil Gupta
e60ebc0cbe Use snprintf instead of sprintf 2022-06-06 11:03:36 +05:30
Kapil Gupta
2aa6853d3e Remove strcpy/strncpy function callings from supplicant 2022-06-06 11:03:35 +05:30
Kapil Gupta
916a4d6524 Fix coverity reported issues 2022-06-06 11:03:35 +05:30
Kapil Gupta
944690a5e7 Correct condition for not to use pmk caching 2022-06-06 11:03:35 +05:30
Michael (XIAO Xufeng)
6a8aed12ee ci: partially enable ut tests for esp32c2
Disabled test cases are tracked in:

 IDF-4465, IDF-5045, IDF-5057, IDF-5058, IDF-5059, IDF-5060, IDF-5061, IDF-5131

- test_fatfs: IDF-5136

- test_pm: IDF-5053

- test_cache_mmu: IDF-5138

- test_partitions: IDF-5137

- test_vfs: IDF-5139

- test_freertos: IDF-5140

- test_wpa_supplicant: IDF-5046

- test_mbedtls: IDF-5141

- test_pthread: IDF-5142

- test_protocomm: IDF-5143

- test_lightsleep: IDF-5053

- test_taskwdt: IDF-5055

- test_tcp_transport: IDF-5144

- test_app_update: IDF-5145

- test_timer: IDF-5052

- test_spi: IDF-5146

- test_rtc_clk: IDF-5060

- test_heap: IDF-5167

ci: fixed issues for tests of libgcc, ets_timer, newlib

test_pm: support on C2
2022-06-02 14:23:35 +08:00
Mahavir Jain
8250edbf22 Merge branch 'bugfix/mbedtls_deprecated_options' into 'master'
mbedtls: Remove deprecated options from mbedtls/esp_config.h

Closes IDFGH-7296

See merge request espressif/esp-idf!18008
2022-05-30 10:38:08 +08:00
Jiang Jiang Jian
8efa4d64e0 Merge branch 'feature/add_task_wrappers' into 'master'
wpa_supplicant: Add osi layer for FreeRTOS calls

Closes WIFI-2996

See merge request espressif/esp-idf!11734
2022-05-30 10:29:50 +08:00
Jiang Jiang Jian
0e94779b2e Merge branch 'feature/support_esp32c2_wifi_new' into 'master'
Bringup ESP32C2 Wi-Fi

Closes IDF-3905

See merge request espressif/esp-idf!18136
2022-05-29 18:25:24 +08:00
Kapil Gupta
777b2caa1c wpa_supplicant: Move ETS/ESP timers to eloop 2022-05-29 09:32:16 +05:30
Jiang Jiang Jian
2042840974 Merge branch 'bugfix/sae_pmk_caching_issue' into 'master'
esp_wifi: Do not use pmkid caching when SSID is changed

Closes WIFI-4422

See merge request espressif/esp-idf!18244
2022-05-29 00:18:19 +08:00
Zhang Jun Hao
fcf8c84ad5 fix potential leak of memory check error 2022-05-28 08:52:55 +00:00
Laukik Hase
28ac0b12fb
mbedtls: Remove deprecated options from mbedtls/esp_config.h
- Removed options related to RC4 ciphersuite, SSL3 and TLS1
  (as per mbedtls v3.1.0)
2022-05-28 10:21:06 +05:30
Kapil Gupta
0cdad0a002 wpa_supplicant: Add wrappers for FreeRTOS APIs 2022-05-26 15:23:21 +05:30
Kapil Gupta
1cf54db433 esp_wifi: Changes to not use pmkid caching when SSID is changed 2022-05-25 15:11:26 +05:30
Kapil Gupta
a6811adac7 wpa_supplicant: Add WPS registrar support for softAP mode 2022-05-24 12:11:53 +05:30
Kapil Gupta
df1a15e918 wpa_supplicant: Add upstream files for wps registrar 2022-05-24 12:11:53 +05:30
Kapil Gupta
ee33c6ae05 esp_wifi: Add APIs to check BTM and RRM support of connected AP 2022-05-16 15:57:59 +05:30
Kapil Gupta
c2429f1cf9 wpa_supplicant: sync eap code with upstream 2022-05-13 12:57:47 +08:00
Kapil Gupta
36321fda82 Merge branch 'feature/eloop_timer' into 'master'
wpa_supplicant: Add timer based eloop implementation

See merge request espressif/esp-idf!17430
2022-05-12 12:30:44 +08:00
Kapil Gupta
ecc87cfc8d wpa_supplicant: wps code updation
Update WPS code with upstream. Also moved ESP specific code
in another esp code folder.
2022-05-11 12:18:52 +00:00
Kapil Gupta
9c27cf93fc Add testcase for eloop execution 2022-05-11 17:45:23 +05:30
Kapil Gupta
d06daee350 wpa_supplicant: Add timer based eloop implementation 2022-05-11 17:45:23 +05:30
Kapil Gupta
cb222740bd Merge branch 'bugfix/coverity_fixes' into 'master'
wpa_supplicant: Fix issues reported by coverity

Closes WIFI-4390

See merge request espressif/esp-idf!17915
2022-05-05 18:17:27 +08:00
kapil.gupta
3d5ca7ee6e wpa_supplicant: Add support for FT psk 2022-05-01 16:16:51 +05:30
Kapil Gupta
f38e6cb4fa Merge branch 'bugfix/tkip_countermeasure_changes' into 'master'
wpa_supplicant: Unicast key renew in TKIP mic failure

See merge request espressif/esp-idf!17819
2022-04-28 18:50:44 +08:00
Kapil Gupta
f070e2db6d wpa_supplicant: Fix issues reported by coverity 2022-04-26 21:40:27 +05:30
Kapil Gupta
9a818cf31d wpa_supplicant: Unicast key renew in TKIP mic failure
Currently we always request group key renew for during
TKIP mic failure. Add support for unicast/multicast
key renew as per packet.
2022-04-26 17:43:34 +05:30
Ivan Grokhotkov
708e99497b
global: add dependency on esp_timer component and include esp_timer.h
Some components were including esp_timer.h without declaring a
dependency on esp_timer component. This used to work due to a
transitive public dependency on esp_timer from freertos component.
Add explicit dependencies where needed.
Also some source files were using esp_timer functions without
including the header file. This used to work because esp_timer.h was
included from freertos port header file. This commit adds esp_timer.h
includes where needed.
2022-04-25 18:39:23 +02:00
Hrudaynath Dhabe
079b5b1857 Merge branch 'bugfix/do_not_allow_unauthenticated_encrypted_key_data' into 'master'
esp_wifi: Ignore unauthenticated encrypted EAPOL-Key data

Closes IDFGH-6773

See merge request espressif/esp-idf!17105
2022-04-20 16:32:45 +08:00
Nachiket Kukade
bd40793771 Merge branch 'bugfix/dpp_pkey_api_fix' into 'master'
Move adding prefix/postfix of DPP key to example

Closes IDFGH-7116

See merge request espressif/esp-idf!17383
2022-04-19 15:04:13 +08:00
Kapil Gupta
86013e918a Merge branch 'feature/mbedtls_default_bundle_wpa_ent' into 'master'
wpa_supplicant: Add CA certification bundle support

See merge request espressif/esp-idf!17055
2022-04-18 19:47:45 +08:00
Hrudaynath Dhabe
57905c7ecf esp_wifi: Ignore unauthenticated encrypted EAPOL-Key data and fix
handling of key RSC.

Closes https://github.com/espressif/esp-idf/issues/8401
2022-04-14 17:13:49 +05:30
Nachiket Kukade
8dea7cbed6 wpa_supplicant/dpp: Avoid deadlock while deleting DPP task
Closes https://github.com/espressif/esp-idf/issues/8724
2022-04-14 16:54:47 +05:30
Nachiket Kukade
282d3c6188 wpa_supplicant/dpp: Move adding prefix/postfix of DPP key to example
1. Move adding of prefix/postfix to the private key to example code.
   This is to preserve forward compatibility when more curves are supported.
2. Documentation correction of bootstrapping key configuration.
2022-04-14 16:54:47 +05:30
Kapil Gupta
92c18f11d9 wpa_supplicant: Remove scan done event in task 2022-04-06 19:49:52 +05:30
Kapil Gupta
62eb06e386 wpa_supplicant: Add CA certification bundle support
Add support for CA certificate bundle support for server
certificate validation
2022-04-05 10:57:09 +05:30
Anton Maklakov
6200d2328d Merge branch 'bugfix/printf-placeholder-for-time_t' into 'master'
components: correct printf() placeholder for time_t

See merge request espressif/esp-idf!17439
2022-03-17 16:08:08 +08:00