595 Commits

Author SHA1 Message Date
Kapil Gupta
f40e875ece fix(esp_wifi): Fix stack curruption in btm task (v5.2) 2025-02-14 13:00:51 +05:30
Kapil Gupta
22dd269b53 fix(esp_wifi): Fix stack corruption in wpa3 task 2025-02-13 18:08:00 +05:30
Kapil Gupta
5d9db0b972 fix(esp_wifi): fixed Stack corruption in DPP task 2025-02-13 18:08:00 +05:30
Kapil Gupta
9fb88f83df fix(esp_wifi): fixed Stack corruption in WPS processing 2025-02-13 18:08:00 +05:30
Kapil Gupta
d5f7c1253e fix(esp_wifi): Fixed memory corruption in wifi enterprise
Closes https://github.com/espressif/esp-idf/issues/15370
2025-02-13 18:07:46 +05:30
Sarvesh Bodakhe
806b75938a feat(wpa_supplicant): Add WIFI_EVENT_AP_WRONG_PASSWORD in SoftAP
This event is triggered when external station tries connecting to softAP
with wrong password.

Currently supported softAP AUTH modes: WPA-PSK, WPA2-PSK and WPA3-PSK (SAE-auth)
2025-01-16 20:13:55 +05:30
Jiang Jiang Jian
59cf08863a Merge branch 'backport/backport_some_changes_to_v5.2_20250106' into 'release/v5.2'
Backport/backport some changes to v5.2 20250106

See merge request espressif/esp-idf!36231
2025-01-09 11:55:27 +08:00
yinqingzhao
44fd1e0d3a feat(wifi): avoid compiling components related to wifi when wifi is not supported 2025-01-08 15:40:42 +08:00
Kapil Gupta
33aec06e76 fix(esp_wifi): Enable EAP workarounds by default
Enabling this will make sure our behavior is same as upstream
wpa_supplicant.
2025-01-03 17:43:29 +05:30
Sergei Silnov
566d04ecd9 Merge branch 'fix/unity_tester_v5.2' into 'release/v5.2'
refactor: changed logic of unity_tester (v5.2)

See merge request espressif/esp-idf!35394
2024-12-05 01:38:57 +08:00
Jiang Jiang Jian
501f4ab608 Merge branch 'bugfix/wps_ie_reset_v52' into 'release/v5.2'
fix(wifi): Remove WPS IEs once WPS succeeds(v5.2)

See merge request espressif/esp-idf!35079
2024-12-04 19:32:58 +08:00
Jiang Jiang Jian
d450c81766 Merge branch 'feat/support_esp32c2_eco4_wifi_v52' into 'release/v5.2'
Feat/support esp32c2 eco4 wifi v52

See merge request espressif/esp-idf!35382
2024-12-04 12:14:31 +08:00
Kapil Gupta
1c5a84c369 fix(wifi): Remove WPS IEs once WPS succeeds 2024-12-04 11:47:37 +08:00
igor.udot
3edae05e39
fix: add count for wpa test 2024-12-03 09:43:15 +01:00
igor.udot
e09fd7fce4
refactor: changed logic of unity_tester, replaced threads by generators 2024-12-03 09:43:15 +01:00
wangtao@espressif.com
0519619e26 feat(wifi): support esp32c2 eco4 wifi bringup 2024-12-03 14:38:40 +08:00
Jiang Jiang Jian
0b2e6d68df Merge branch 'bugfix/sae_h2e_vulnerability_fix_v5.2' into 'release/v5.2'
fix(wifi): Sae check for invalid rejected group (v5.2)

See merge request espressif/esp-idf!33980
2024-12-03 14:33:29 +08:00
Aditya Patwardhan
b369dfe29d Merge branch 'bugfix/fix_build_failure_with_tls1_3_only_v5.2' into 'release/v5.2'
fix: Fixed build errors with TLS 1.3 only configuration (v5.2)

See merge request espressif/esp-idf!35261
2024-11-29 16:07:19 +08:00
Harshit Malpani
8d0c4ee711
fix(wpa_supplicant): Fix build errors for exclusive TLSv1.3 mbedtls config
Co-authored-by: Sarvesh Bodakhe <sarvesh.bodakhe@espressif.com>
2024-11-28 09:52:01 +05:30
Shyamal Khachane
325ce1f8f9 fix(esp_wifi): Populate appropriate reason codes when softAP sends deauthentication
Populate appropriate reason for sending deauthentication when softAP receives
invalid RSN IE from association request
2024-11-26 23:37:35 +05:30
Sarvesh Bodakhe
fca3fab225 fix(wifi): Fix wrong wifi reason codes reported on station and softAP
- Fix wrong reason code reported when softAP issues a disconnect for station
- Fix wrong reason code reported when association timeout happens at station
- Deprecate enums WIFI_REASON_ASSOC_EXPIRE, WIFI_REASON_NOT_AUTHED, WIFI_REASON_NOT_ASSOCED
  and use WIFI_REASON_DISASSOC_DUE_TO_INACTIVITY,
  WIFI_REASON_CLASS2_FRAME_FROM_NONAUTH_STA,
  WIFI_REASON_CLASS3_FRAME_FROM_NONASSOC_STA respectively
- Update wifi documentation related to reason codes
2024-11-26 23:36:54 +05:30
Sarvesh Bodakhe
0bc704bb62 fix(wpa_supplicant): Fix debug print in wps_start_msg_timer() 2024-11-26 23:36:54 +05:30
sibeibei
2719ebce3f fix(wifi): fix some wifi issues 241031
1. fix cant sleep if reconnect to connected ap
    2. clear pmk in internal reconnection
    3. update connect status for init-->auth
2024-11-22 16:51:12 +08:00
Jouni Malinen
ce2e5455e8 SAE: Check for invalid Rejected Groups element length explicitly on STA
Instead of practically ignoring an odd octet at the end of the element,
check for such invalid case explicitly. This is needed to avoid a
potential group downgrade attack.

Fixes: 444d76f74f65 ("SAE: Check that peer's rejected groups are not enabled")
Signed-off-by: Jouni Malinen <j@w1.fi>
2024-11-18 11:15:47 +08:00
Jouni Malinen
9a6389978c SAE: Check that peer's rejected groups are not enabled
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2024-11-18 11:15:47 +08:00
Jouni Malinen
46f3eedcef SAE: Reject invalid Rejected Groups element in the parser
There is no need to depend on all uses (i.e., both hostapd and
wpa_supplicant) to verify that the length of the Rejected Groups field
in the Rejected Groups element is valid (i.e., a multiple of two octets)
since the common parser can reject the message when detecting this.

Signed-off-by: Jouni Malinen <j@w1.fi>
2024-11-18 11:15:47 +08:00
Jouni Malinen
fbbd0e29e9 SAE: Check for invalid Rejected Groups element length explicitly
Instead of practically ignoring an odd octet at the end of the element,
check for such invalid case explicitly. This is needed to avoid a
potential group downgrade attack.

Signed-off-by: Jouni Malinen <j@w1.fi>
2024-11-18 11:15:47 +08:00
Jouni Malinen
a04d277251 SAE: Check that peer's rejected groups are not enabled in AP
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2024-11-18 11:15:47 +08:00
muhaidong
200f6f4c78 fix(wifi): fix miss internal wapi deinit issue 2024-10-29 12:03:05 +08:00
Aditi
0943aff2df fix(wpa_supplicant): Add few fixes in dpp task 2024-10-25 14:47:11 +05:30
aditi
2a4e413624 fix(wpa_supplicant): Add few fixes in btm_rrm task 2024-10-25 14:46:55 +05:30
aditi
158bd9119a fix(wpa_supplicant): Add few fixes in eloop task 2024-10-25 14:43:02 +05:30
aditi
7db5c50cc8 fix(wpa_supplicant): Add few fixes in WPS task 2024-10-25 14:42:56 +05:30
aditi
c70a8a9ab4 fix(wpa_supplicant): Add few fixes in eap client code 2024-10-25 14:42:30 +05:30
Jiang Jiang Jian
2b35c55820 Merge branch 'bugfix/load_access_fault_upon_auth_v5.2' into 'release/v5.2'
fix(wifi): Add a check on hostapd instance while handling an Auth frame (Backport v5.2)

See merge request espressif/esp-idf!34121
2024-10-24 16:53:32 +08:00
Sajia
eccca0a6b0 fix(wifi): Add a check on hostapd instance while handling an Auth frame 2024-10-11 15:12:14 +05:30
Kapil Gupta
6699f1a51c fix(esp_wifi): Prevent memory overflow in WPS 2024-10-07 11:12:35 +05:30
Kapil Gupta
11ffeab864 fix(esp_wifi): Mask some error conditions in WPS
Mask some error conditions in WPS to increase the probability of
WPS success.
2024-10-07 11:12:35 +05:30
Kapil Gupta
071585dd4d fix(esp_wifi): Disable WPS timers once WPS succeed 2024-10-07 11:12:35 +05:30
Kapil Gupta
8fbd04f839 fix(esp_wifi): Allow connection with WPA mode in WPS 2024-10-07 11:12:05 +05:30
Kapil Gupta
a4b226b7c1 fix(esp_wifi): Deinit WPS registrar during hostapd deinit 2024-10-07 10:24:21 +05:30
Kapil Gupta
5beab45cfe fix(esp_wifi): Added prints in btm roam for error condition 2024-10-07 10:23:40 +05:30
Nachiket Kukade
eee82730aa fix(wifi): Fix wrong typecasting of sta_info while getting SPP Caps 2024-08-27 16:11:46 +05:30
Alexey Lapshin
9760884e60 fix(wpa_supplicant): fix warnings found by GNU static analyzer 2024-08-21 14:03:48 +07:00
aditi
53e931cf65 fix(wpa_supplicant):Deinit old dpp authentication data after receiving config. 2024-07-30 13:54:45 +05:30
Shyamal Khachane
49e42f6eca fix(esp_wifi): Handle PMKID mismatch or absence in OWE
Compute keys incase PMKID does not match or PMKID is absent in association response
2024-07-25 08:29:22 +05:30
aditi
f1d5ffea3d fix(wpa_supplicant):Fix for setting wps status fail when connection fails 2024-07-22 15:26:09 +05:30
Kapil Gupta
42680d30ae fix(esp_wifi): backport some dpp fixes 2024-07-19 13:29:48 +08:00
muhaidong
2dbaf58499 fix(wifi): fix configure gcmp failure issue 2024-07-15 21:00:55 +08:00
Jiang Jiang Jian
c06cfeddb5 Merge branch 'bugfix/wps_reg_state_handling_v5.2' into 'release/v5.2'
fix(wpa_supplicant): Handle case when WPS registrar misses WSC_DONE sent by station (Backport v5.2)

See merge request espressif/esp-idf!32081
2024-07-15 10:43:01 +08:00