Commit Graph

233 Commits

Author SHA1 Message Date
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
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
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
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
Nachiket Kukade
eee82730aa fix(wifi): Fix wrong typecasting of sta_info while getting SPP Caps 2024-08-27 16:11:46 +05:30
aditi
53e931cf65 fix(wpa_supplicant):Deinit old dpp authentication data after receiving config. 2024-07-30 13:54:45 +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
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
Sarvesh Bodakhe
e2c47edafa fix(wpa_supplicant): Handle case when WPS registrar misses WSC_DONE sent by station
When registrar somehow misses the WSC_DONE sent by station and station
goes for next connection after sending deauth, make sure that softAP
disables the registrar.
2024-07-12 12:05:22 +05:30
Sarvesh Bodakhe
ad6bd842a1 fix(wifi): Fix issue of supplicant using wrong parameters to configure bss
- Ensure that wpa_supplicant's state machine registers the requirement for rsnxe
  before deciding to add rsnxe to a assoc request.

Co-authored-by: jgujarathi <jash.gujarathi@espressif.com>
2024-07-12 08:09:25 +05:30
Jiang Jiang Jian
dc6b400968 Merge branch 'bugfix/wpa3_init_crash_v5.2' into 'release/v5.2'
fix(wpa_supplicant): Fix wpa3 AP crash because of dangling pointer (v5.2)

See merge request espressif/esp-idf!31541
2024-06-26 10:47:05 +08:00
Shyamal Khachane
8b0895e7ef fix(esp_wifi): Fix a memory leak that occurs when SAE connection is interrupted
1. Free temporary data used by SAE before memsetting the same
2. Drop any received auth response that uses a different algorithm than the one currently in use
2024-06-21 11:27:42 +05:30
Shreyas Sheth
298bca09ec fix(wpa_supplicant): Fix wpa3 AP crash because of dangling pointer 2024-06-17 12:41:04 +05:30
Kapil Gupta
5ce43f68f3 fix(esp_wifi): Correct action frame type in send_mgmt_frame API 2024-04-24 01:52:35 +05:30
Sarvesh Bodakhe
3ba5cb9687 fix(wifi): Add bugfix to avoid RSNXE and KDE mismatch during 4-way-handshake 2024-04-24 01:48:16 +05:30
Kapil Gupta
280ec09b03 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-24 01:48:06 +05:30
Kapil Gupta
f9feb970b9 feat(esp_wifi): Provide API to disable PMK caching 2024-04-17 09:40:22 +05:30
Shreyas Sheth
9004c42f29 fix(wpa_supplicant): Compile error when CONFIG_SAE is disabled
Closes https://github.com/espressif/esp-idf/issues/13553
2024-04-11 11:18:50 +05:30
Shreyas Sheth
c3f819289d fix(esp_wifi): Fix crash when assoc req comes before confirm is processed 2024-04-02 23:03:29 +05:30
Sarvesh Bodakhe
8e694cddcc feat(esp_wifi): Add support for WPA3 transition disable and more updates
1. Add support for SAE-PK and WPA3-Enterprise transition disable
2. Add support to handle OWE transition disable indication from AP
2. 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.
4. refactor: Backport common changes in scan/connect path from 90cc6158
   - 90cc6158 adds support for Network Introduction Protocl in DPP
2024-03-28 11:38:45 +05:30
jgujarathi
6115e2500a fix(wpa_supplicant): Cancel offchannel listen operations before sending dpp fail
- Ensure that offchannel listening operations are cancelled before sending dpp
  fail events
2024-03-26 10:04:13 +05:30
jgujarathi
1830bc4d29 fix(wpa_supplicant): Ensure dpp auth structure is deinited in dpp task context
- Ensure that the dpp auth data gets deinited only in DPP task context to ensure
  that there are no concurrency issues in usage of DPP auth data.
2024-03-26 10:04:06 +05:30
Jiang Jiang Jian
93f7ae7f7f Merge branch 'bugfix/wps_crash_issue_v5.2' into 'release/v5.2'
fix(wpa_supplicant): Avoid dereferencing a dangling function pointer in WPS (Backport v5.2)

See merge request espressif/esp-idf!29735
2024-03-26 10:51:58 +08:00
Sarvesh Bodakhe
691997af91 fix(wpa_supplicant): Improve execution flow for WPS registrar public APIs
Make sure that WPS registrar public APIs do not modify supplicant
data in application task context. Execute API functionlity in eloop
context to prevent protential race conditions.
2024-03-20 11:07:43 +05:30
Shreyas Sheth
dd1265845f fix(wifi): Fix wpa3 crash for station added without sta lock 2024-03-19 14:37:32 +08:00
muhaidong
d0afffe8c9 fix(wifi): fix esp_wifi_scan_start memory leakage issue
Closes https://github.com/espressif/esp-idf/issues/10693
2024-02-21 16:32:31 +08:00
Jiang Jiang Jian
4a3f224fe1 Merge branch 'bugfix/esp32c2_eap_auth_v5.2' into 'release/v5.2'
fix(wifi): Added low heap usage Kconfig option for eap enterprise (v5.2)

See merge request espressif/esp-idf!28824
2024-02-21 14:31:32 +08:00
aditi_lonkar
a3ba6b299d fix(wpa_supplicant):Add MBO config flag for mbo apis 2024-02-20 13:54:20 +08:00