194 Commits

Author SHA1 Message Date
Kapil Gupta
e2a2dcd808 Merge branch 'bugfix/skip_memory_reordering_wpa2_semaphr_v5.0' into 'release/v5.0'
fix(esp_wifi): fixed stack corruption in WiFi tasks (v5.0)

See merge request espressif/esp-idf!36940
2025-02-14 19:06:36 +08:00
Kapil Gupta
e7e15d954c fix(esp_wifi): Fix stack curruption in btm task (v5.2) 2025-02-14 13:03:32 +05:30
Kapil Gupta
cbe890bde6 fix(esp_wifi): fixed Stack corruption in DPP task 2025-02-13 15:57:48 +05:30
Kapil Gupta
968b8a215a fix(esp_wifi): fixed Stack corruption in WPS processing 2025-02-13 15:57:48 +05:30
Kapil Gupta
90b29be236 fix(esp_wifi): Fixed memory corruption in wifi enterprise
Closes https://github.com/espressif/esp-idf/issues/15370
2025-02-13 15:57:41 +05:30
Kapil Gupta
55c6945957 fix(esp_wifi): Reduce scan frequency in WPS 2025-02-10 15:45:39 +05:30
Kapil Gupta
92f5736c21 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:46:33 +05:30
Shyamal Khachane
7a7b6be32a 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-12-10 22:39:21 +05:30
Sarvesh Bodakhe
8058b97326 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-12-10 22:39:21 +05:30
Sarvesh Bodakhe
eeaf6714a5 fix(wpa_supplicant): Fix debug print in wps_start_msg_timer() 2024-12-10 22:39:21 +05:30
sibeibei
78aba309f3 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-12-06 17:57:25 +08:00
Jiang Jiang Jian
3106c368eb Merge branch 'feat/support_esp32c2_eco4_wifi_v50' into 'release/v5.0'
Feat/support esp32c2 eco4 wifi v50

See merge request espressif/esp-idf!34659
2024-12-04 20:43:06 +08:00
Jiang Jiang Jian
01a851ca9d Merge branch 'bugfix/wps_ie_reset_v50' into 'release/v5.0'
fix(wifi): Remove WPS IEs once WPS succeeds

See merge request espressif/esp-idf!35081
2024-11-25 15:04:09 +08:00
Kapil Gupta
88cb3141bf fix(wifi): Remove WPS IEs once WPS succeeds 2024-11-21 13:49:04 +05:30
wangtao@espressif.com
55184e83aa feat(wifi): support esp32c2 eco4 wifi bringup 2024-11-18 15:57:11 +08:00
Jiang Jiang Jian
aacfeee713 Merge branch 'bugfix/wpa2_ent_fixes_v5.0' into 'release/v5.0'
Few fixes in wpa_supplicant(v5.0)

See merge request espressif/esp-idf!34447
2024-10-31 14:36:50 +08:00
muhaidong
53584bbdce fix(wifi): fix miss internal wapi deinit issue 2024-10-29 11:56:41 +08:00
Aditi
0a84eb907f fix(wpa_supplicant): Add few fixes in dpp task 2024-10-28 17:46:56 +05:30
aditi
3d025d9ecf fix(wpa_supplicant): Add few fixes in btm_rrm task 2024-10-28 17:46:55 +05:30
aditi
716b4ddc32 fix(wpa_supplicant): Add few fixes in WPS task 2024-10-28 17:46:55 +05:30
aditi
a4b83d0c4a fix(wpa_supplicant): Add few fixes in eap client code 2024-10-28 17:46:53 +05:30
Jiang Jiang Jian
795e2bbae1 Merge branch 'bugfix/backport_supplicant_fixes_v5.0' into 'release/v5.0'
fix(wifi): Backport some fixes(v5.0)

See merge request espressif/esp-idf!33978
2024-10-24 15:47:37 +08:00
Kapil Gupta
6b3b661774 fix(esp_wifi): Prevent memory overflow in WPS 2024-10-13 18:13:18 +08:00
Kapil Gupta
1b9a66617d fix(esp_wifi): Mask some error conditions in WPS
Mask some error conditions in WPS to increase the probability of
WPS success.
2024-10-13 18:13:18 +08:00
Kapil Gupta
0803307ffe fix(esp_wifi): Disable WPS timers once WPS succeed 2024-10-13 18:13:18 +08:00
Kapil Gupta
c1f41cdfd0 fix(esp_wifi): Allow connection with WPA mode in WPS 2024-10-13 18:13:18 +08:00
Kapil Gupta
ab99551f8c fix(esp_wifi): Deinit WPS registrar during hostapd deinit 2024-10-13 18:13:18 +08:00
Jouni Malinen
ae56989c7f 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-10-07 12:31:11 +05:30
Jouni Malinen
92cf32a40b SAE: Check that peer's rejected groups are not enabled
Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
2024-10-07 12:31:11 +05:30
Nachiket Kukade
1e88c7a2ff fix(wifi): Fix wrong typecasting of sta_info while getting SPP Caps 2024-09-04 10:53:22 +08:00
aditi
3769a10ef7 fix(wpa_supplicant):Deinit old dpp authentication data after receiving config. 2024-08-16 10:41:36 +05:30
Jiang Jiang Jian
cb74823a38 Merge branch 'bugfix/sae_gcmp_conn_failure' into 'release/v5.0'
Fix SAE connection failure when GCMP cipher is used (v5.0)

See merge request espressif/esp-idf!32601
2024-08-15 21:05:22 +08:00
Shyamal Khachane
cad8a7c41c fix(esp_wifi): Refactor and update wpa_supplicant with upstream 2024-08-07 12:36:13 +05:30
Kapil Gupta
a3ef4cb054 fix(esp_wifi): backport some dpp fixes 2024-07-22 12:09:27 +05:30
Sarvesh Bodakhe
c36c3920fc 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 11:58:56 +05:30
aditi
30effe7894 fix(wpa_supplicant):Fix for setting wps status fail when connection fails 2024-07-11 18:17:00 +05:30
Sarvesh Bodakhe
b3fb47908c feat(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
3. refactor: Backport common changes in scan/connect path from 90cc6158
   - 90cc6158 adds support for Network Introduction Protocol in DPP
4. 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-03 12:46:58 +05:30
Sarvesh Bodakhe
af72ce1f75 fix(esp_wifi): Fix some wifi bugs
1. Fix issues related to mgmt packets encryption in GCMP
2. Fix issue of wrong decryption of mgmt packets when PMF is enabled
3. Fix frame subtype in send_mgmt_frame
4. Fix issue of wrong Rx control information of espnow packets for esp32 and esp32s2
5. Fix send mgmt err when eapol process
2024-07-01 11:06:13 +05:30
Sarvesh Bodakhe
7fd73ede7f fix(wifi): Add bugfix to avoid RSNXE and KDE mismatch during 4-way-handshake 2024-07-01 11:05:25 +05:30
Shyamal Khachane
ff6db87429 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 16:38:27 +05:30
Jiang Jiang Jian
397c1d9903 Merge branch 'bugfix/wps_crash_issue_v5.0' into 'release/v5.0'
fix(wpa_supplicant): Avoid dereferencing a dangling function pointer in WPS (Backport v5.0)

See merge request espressif/esp-idf!29736
2024-04-07 10:11:34 +08:00
Sarvesh Bodakhe
3847822531 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-04-03 11:33:54 +08:00
jgujarathi
969605c7c2 fix(wpa_supplicant): Cancel offchannel listen operations before sending dpp fail
- Ensure that offchannel listening operations are cancelled before sending dpp
  fail events
2024-04-03 10:20:54 +08:00
jgujarathi
0f1c0d27c8 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-04-03 10:20:54 +08:00
muhaidong
0f3286aa92 fix(wifi): fix esp_wifi_scan_start memory leakage issue
Closes https://github.com/espressif/esp-idf/issues/10693
2024-03-07 17:43:57 +08:00
Jiang Jiang Jian
702853c00e Merge branch 'bugfix/esp32c2_eap_auth_v5.0' into 'release/v5.0'
fix(wifi): Added low heap usage Kconfig option for eap enterprise (v5.0)

See merge request espressif/esp-idf!28826
2024-02-29 11:24:50 +08:00
aditi_lonkar
7c65911c18 fix(wpa_supplicant):Add MBO config flag for mbo apis 2024-02-28 10:37:57 +08:00
Kapil Gupta
c62022b312 fix(wifi): add low memory options for eap enterprise 2024-02-28 10:37:40 +08:00
jgujarathi
6cb42e4304 fix(wpa_supplicant): Add support for a dpp authentication timeout
- Adds support for a 1 second dpp authentication timeout.
2024-01-08 15:57:50 +05:30
jgujarathi
d982e66c21 fix(wpa_supplicant): Restructuring DPP init method to ensure cleanup
- Restructuring DPP init function to ensure cleanup of variables in case of
  init failure
2024-01-08 15:57:50 +05:30