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
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
Sarvesh Bodakhe
d2f6a3dacc
esp-wifi: add SAE-PK (Public Key) authentication support for station
2023-02-16 13:49:11 +05:30
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
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
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
Shyamal Khachane
9603d1d903
Fix SAE open auth and PMK issues
2023-01-10 14:03:00 +08:00
gauri patankar
68fb038f43
wpa_supplicant:Remove redundant DEBUG_PRINT in supplicant
2023-01-03 12:52:54 +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
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
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
Shreyas Sheth
bd55b8b72e
esp_wifi:BDSA related patch updates
2022-12-12 15:04:04 +05:30
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
Shreyas Sheth
377eeedfef
esp_wifi:Mandate stations to have minimum security wpa3
2022-11-30 13:01:40 +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
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
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
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
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
muhaidong
0960aa8d87
wpa_supplicant: try install gtk before send 2 of 2
2022-09-05 21:28:19 +08: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
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
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
Shreyas Sheth
591c7a496c
esp_wifi: WPA3 SAE H2E support for station
2022-06-20 18:51:11 +05:30
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
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
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
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
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
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
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
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
Kapil Gupta
2bdaa49cb0
Merge branch 'bugfix/pvs_warning_fixes' into 'master'
...
wpa_supplicant: fix issues reported in static analysis
Closes IDF-2733
See merge request espressif/esp-idf!17499
2022-03-17 12:47:05 +08:00
Kapil Gupta
6da52cf0d8
wpa_supplicant: static analysis fixes
2022-03-16 10:50:49 +05:30
Kapil Gupta
a1b842b1c6
wpa_supplicant: Add changes to fix broken dpp crypto
2022-03-14 18:26:35 +05:30
Anton Maklakov
e27f1331e4
components: correct printf() placeholder for time_t
...
Using C99 %jd, https://en.cppreference.com/w/c/chrono/time_t
2022-03-14 14:05:47 +07:00
Kapil Gupta
c098c253b1
wpa_supplicant: Add BTM security checks
2022-03-09 03:58:39 +00:00
0xFEEDC0DE64
9b7c345bce
Fix compiler error in mbedtls
...
Closes https://github.com/espressif/esp-idf/pull/8500
Closes https://github.com/espressif/esp-idf/issues/8499
Closes IDFGH-6879
Closes IDFGH-6881
2022-03-07 12:15:08 +05:30
Aditya Patwardhan
72f12a0c8c
Fix issue in wpa_supplicant
2022-03-03 01:37:10 +05:30
Laukik Hase
3925365351
ci: Fix pre-check
stage failing tests
...
- Updated license headers
- Re-enabled public headers and static analysis checks
- Fix public header file check failure
Co-authored-by: Aditya Patwardhan <aditya.patwardhan@espressif.com>
2022-03-03 01:37:10 +05:30
Aditya Patwardhan
60b167f2d6
mbedtls-3.1 update: Removed the MBEDTLS_PRIVATE
from multiple files
...
after they have been again made public in mbedtls-3.1
*Added `MBEDTLS_ALLOW_PRIVATE_ACCESS` in some files.
2022-03-03 01:37:10 +05:30
Kapil Gupta
6a164cc5bc
Fix issues in wpa2 enterprise with mbedTLS 3.0
2022-03-03 01:37:10 +05:30
Aditya Patwardhan
3b71bd7326
mbedtls-3.0: Fixed ESP32 build issues
...
- Added MBEDLTS_PRIVATE(...) wherever necessary
- For functions like mbedtls_pk_parse_key(...), it is necessary to pass the RNG function
pointers as parameter. Solved for dependent components: wpa_supplicant & openSSL
- For libcoap, the SSLv2 ClientHello handshake method has been deprecated, need to handle this.
Currently, corresponding snippet has been commented.
- Examples tested: hello-world | https_request | wifi_prov_mgr
mbedtls-3.0: Fixed ESP32-C3 & ESP32-S3 build issues
- Removed MBEDTLS_DEPRECATED_REMOVED macro from sha1 port
- DS peripheral: esp_ds_rsa_sign -> removed unsused 'mode' argument
- Added MBEDTLS_PRIVATE(...) wherever required
mbedtls-3.0: Fixed ESP32-S2 build issues
- Fixed outdated function prototypes and usage in mbedlts/port/aes/esp_aes_gcm.c due to changes in GCM module
mbedtls-3.0: Fixed ESP32-H2 build issues
ci: Fixing build stage
- Added MBEDTLS_PRIVATE(...) wherever required
- Added RNG function parameter
- Updated GCM Module changes
- Updated Copyright notices
- Tests:
- build_esp_idf_tests_cmake_esp32
- build_esp_idf_tests_cmake_esp32s2
- build_esp_idf_tests_cmake_esp32c3
- build_esp_idf_tests_cmake_esp32s3
ci: Fixing build stage (mbedtls-related changes)
- Added MBEDTLS_PRIVATE(...) wherever required
- Updated SHAXXX functions
- Updated esp_config according to mbedtls changes
- Tests:
- build_examples_cmake_esp32
- build_examples_cmake_esp32s2
- build_examples_cmake_esp32c3
- build_examples_cmake_esp32s3
ci: Fixing build stage (example-related changes)
- Added MBEDTLS_PRIVATE(...) wherever required
- Updated SHAXXX functions
- Updated esp_config according to mbedtls changes
- Tests:
- build_examples_cmake_esp32
- build_examples_cmake_esp32s2
- build_examples_cmake_esp32c3
- build_examples_cmake_esp32s3
ci: Fixing target_test stage
- Updated test SSL version to TLS_v1_2
- Tests:
- example_test_protocols 1/2
ci: Fixing build stage
- Added checks for MBEDTLS_DHM_C (disabled by default)
- Updated esp_cryptoauthlib submodule
- Updated factory partition size for legacy BLE provisioning example
- Tests:
- build_examples_cmake_esp32
- build_examples_cmake_esp32s2
- build_examples_cmake_esp32c3
- build_examples_cmake_esp32s3
Co-authored-by: Laukik Hase <laukik.hase@espressif.com>
2022-03-03 01:37:10 +05:30
Aditya Patwardhan
45122533e0
mbedtls-3 update:
...
1) Fix build issue in mbedtls
2) skip the public headers check in IDF
3)Update Kconfig Macros
4)Remove deprecated config options
5) Update the sha API according to new nomenclature
6) Update mbedtls_rsa_init usage
7) Include mbedtls/build_info.h instead of mbedtls/config.h
8) Dont include check_config.h
9) Add additional error message in esp_blufi_api.h
2022-03-03 01:37:10 +05:30
Aditya Patwardhan
0483bfbbfe
Initial Changes for updating mbedtls to v3.0
2022-03-03 01:37:09 +05:30
Kapil Gupta
20847eeb96
Merge branch 'bugfix/eap_client_crash' into 'master'
...
wpa_supplicant: Fix memory corruption
Closes WIFI-4299
See merge request espressif/esp-idf!16841
2022-02-11 09:54:27 +00:00
Jiang Jiang Jian
cca2234619
Merge branch 'feature/pmf_support_for_softAP' into 'master'
...
esp_wifi: Add pmf support for softAP.
Closes WIFI-1353
See merge request espressif/esp-idf!14906
2022-02-10 04:17:00 +00:00
aditi_lonkar
c3a661c0fd
esp_wifi: Add pmf support for softAP.
2022-02-09 18:58:37 +05:30
morris
ef00bd59dc
esp_rom: extract int matrix route and cpu ticks getter
2022-02-09 13:52:20 +08:00
Kapil Gupta
9b38b15180
wpa_supplicant: Fix invalid memory dereference
2022-02-08 23:08:51 +08:00
Ivan Grokhotkov
d4190a9471
wpa_supplicant: mark global variables defined in headers 'extern'
...
...to avoid defining common symbols.
GCC since version 10 defaults to -fno-common and doesn't generate
common symbols, leading to duplicate definitions of these symbols.
2022-01-27 11:00:09 +07:00
Laukik Hase
76a29cd68d
wpa_supplicant: Saved message-type digest used in handshake for PRF operations
2022-01-25 10:51:27 +05:30
Hrudaynath Dhabe
6d81821516
esp_wifi: Fix the negotiation of method with eap server.
2022-01-03 13:31:32 +05:30
Jiang Jiang Jian
2e06f1fee5
Merge branch 'bugfix/install_key_refactor' into 'master'
...
esp_wifi: refactor key install code
Closes WIFI-4014
See merge request espressif/esp-idf!14878
2021-12-24 06:56:41 +00:00
Jiang Jiang Jian
d7b83208c1
Merge branch 'bugfix/wpa3_memory_leak' into 'master'
...
esp_wifi: Fixes memory leak in wpa3.
Closes WIFI-4196
See merge request espressif/esp-idf!16520
2021-12-24 03:15:01 +00:00
Kapil Gupta
0336584f3e
esp_wifi: Refactor key install code
2021-12-23 21:31:31 +08:00
aditi_lonkar
1eeac4943c
esp_wifi: Fixes memory leak in wpa3 connection.
2021-12-23 12:26:58 +05:30
Kapil Gupta
14b949077d
wpa_supplicant: Add WPS Fixes
...
Add following bugfixes
1. Station not able to connect when WPS pin is pressed first on AP.
2. PBC overlap getting detected for selected registrar PIN APs.
3. Station not considering authorised MACs for PIN method.
4. For PIN methodm If no AP is found, station will loop through
APs in its vicinity and try to do WPS with them one by one till
WPS timeout occurs. This is for some APs which do not set
selected registrar correctly.
2021-12-20 17:34:30 +05:30
Hrudaynath Dhabe
9469f08a0b
esp_wifi: Change the verbosity of wpa_supplicant logs.
...
Closes https://github.com/espressif/esp-idf/issues/8030
2021-12-14 14:23:31 +05:30
Kapil Gupta
d3542495ab
ESP_WIFI: Remove static analysis warnings
2021-12-08 17:32:22 +05:30
Hrudaynath Dhabe
5f96a6ffd2
esp_wifi: Add support for EAP-FAST authentication method
2021-11-22 17:33:36 +05:30