Commit Graph

854 Commits

Author SHA1 Message Date
zhangyanjiao
e9e149fc88 fix(wifi): fix some bugs in LR and bandwidth
1. Fix the LR rate set fail for espnow and 80211 tx
2. Check phy bandwidth when setting espnow peer rate

Closes https://github.com/espressif/esp-idf/issues/11751
2023-08-17 17:55:57 +08:00
Nachiket Kukade
29e6603ba7 fix(wifi): Fix EAPOL Key TxDone callback implementation
Fix issues arising due to not distinguishing between M2 and M4
TxDone during 4-way handshake. Also fix EAPOL frame rate to lowest
possible rate.
2023-08-14 16:50:42 +05:30
muhaidong
b871eff7d7 fix(wifi): fix disassociation callback miss free key issue 2023-08-11 15:09:03 +08:00
Nachiket Kukade
fc3798f590 fix(wifi): Fix error propagation while initiating FTM 2023-08-03 16:59:28 +05:30
Shyamal Khachane
e986bda085 fix(esp_wifi): Fix some OWE issues
1. Allow flow of traffic after 4 way handshake is completed
2. Fix beacon timeout issue in transition mode
2023-08-03 09:41:43 +05:30
liuning
12b894fd5d fix(esp_wifi): fix no mac retention at wifi start 2023-08-02 21:33:41 +08:00
Kapil Gupta
2b18dd4899 fix(wifi): Prevent PMF config overwritten by tx_cb 2023-08-02 11:33:33 +00:00
xueyunfei
217226d3c9 Fix(esp_wifi):revert send wake up and sleep null between scaning 2023-08-01 20:27:22 +08:00
jgujarathi
cabb41d889 fix(esp_wifi) : Trigger null data frame TX before offchan channel switch.
Moves the location of null data frame TX to before channel switch during
offchannel action frame TX req.
2023-07-31 16:51:57 +05:30
zhangyanjiao
a33a78f73f fix(wifi): fix the RX error when softAP and ESP-NOW both encrypted 2023-07-26 10:32:01 +08:00
David Čermák
70951831c0 Merge branch 'bugfix/netif_default_sta_init' into 'master'
wifi: Fix default wifi-netif creation to assert if no event loop

Closes IDFGH-10321

See merge request espressif/esp-idf!24361
2023-07-21 21:56:37 +08:00
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
wuzhenghui
2b600df4ee fix(esp_pm): Constrains the minimum frequency of APB_MAX when the modem is working 2023-07-14 20:10:16 +08:00
Li Shuai
b84d811684 Wi-Fi/power save: fix the some mac issues of wifi power save
Some APs are configured to hide the SSID, the length field of the SSID element
in the Beacon frame is set to 0. This can cause incorrect parsing of the Beacon
by the Wi-Fi MAC hardware.

Some APs send two beacon frames with different BSSID in a TBTT cycle. After
correctly parsing the beacon of the associated AP, it continue to receive the
other beacon frame, which will cause the MAC to remain in a wait RX/TXING
state, blocking the Wi-Fi go to sleep.
2023-07-13 21:25:07 +08:00
xuxiao
4960c10664 feat(wifi): itwt support itwt wake duration unit 2023-07-13 11:15:17 +08:00
muhaidong
444760b9e6 feat(external coex): add set tx line flag api 2023-07-12 19:24:29 +08:00
zhangyanjiao
7ae5822f0e fix(wifi): Add bugfixes and improvements
1. Update wifi security mode
2. Add check for memory allocation in tx buffers
3. Fix association refused temporarily comeback time set to zero issue
2023-07-11 21:25:24 +08:00
david zuhn
3d8f7b3895 spelling correction in documentation
Signed-off-by: zhangyanjiao <zhangyanjiao@espressif.com>

Closes https://github.com/espressif/esp-idf/pull/9721
2023-07-11 14:33:44 +08:00
David Cermak
20fcc23f88 fix(wifi): Fix default wifi-netif creation to assert if no event loop
- Added ESP_ERROR_CHECK() checks to `esp_wifi_set_default_wifi_..._handlers()` calls
- Added ESP_ERROR_CHECH() to `esp_netif_attach_wifi_...()` calls
- Updated documentation to reflect the changes

Closes https://github.com/espressif/esp-idf/issues/11580
2023-07-10 16:56:16 +02:00
Nachiket Kukade
6e6139061d fix(esp_wifi): Enable FTM for ESP32C2, fix other FTM issues
Enable FTM for ESP32C2 and update wifi libs with below fixes -

1. Bugfixes in Initiator and Responder mode
2. Fix wrong RTT value in first FTM procedure without connection
3. Update FTM calibration values for ESP32S2, S3, C3 and C2
4. Update distance estimation logic
5. Add some useful command parameters in FTM example
6. Fix bug when number of FTM measurement frames received is more
   than (number_of_brusts * FTMs per brust).

Co-authored-by: Sarvesh Bodakhe <sarvesh.bodakhe@espressif.com>
2023-07-10 10:41:37 +05:30
zhangyanjiao
277f0f4470 feat(wifi): Add API to get RSSI info after station connects to AP
- Add esp_wifi_sta_get_rssi() function to retrieve RSSI info after station connects to AP
2023-07-06 17:27:42 +08:00
Shyamal Khachane
6138ec7a61 fix(esp_wifi): NAN Service discovery and datapath bugfixes
1. Increase timeout value for NDP Accepted/Rejected events.
    2. Update publisher ID incase publisher restarts(service).
    3. Ignore service discovery frames with invalid/inactive service ID.
    4. Update NAN documentation
2023-07-05 10:35:14 +05:30
muhaidong
79ddd24d23 fix(wifi): fix some wifi bugs
1. esp_wifi: fix association request miss verify ssid issue
2. esp_wifi: fix wpa3 softAP allocate aid issue
2023-07-04 19:49:34 +08:00
jgujarathi
2fe35e8b49 esp_wifi : Add a obss scan timer disarm upon sta disconnect.
Adds a obss scan timer disarm when a sta disconnects from an AP.
2023-07-03 17:55:57 +05:30
jgujarathi
1302c5a622 esp_wifi : Fix collection of issues during sta scan and roam.
1) Fix issue during split scan to allow for data tx.
2) Fix issue when parsing wpa_ie to set correct authmode when AP
   supports both WPA_EAP and WPA_EAP_SHA256 authmode.
   Closes https://github.com/espressif/esp-idf/issues/11202
3) Fix an occasional crash during sta roam.
4) Add home_channel_dwell_time to wifi_scan_config_t. This allows
   configuration of the time spent between scanning consecutive
   channels for tx.
2023-07-03 04:05:52 +00:00
chenjianxing
3472c2a02a esp_wifi: decouple softap for esp32c2. 2023-06-28 13:47:31 +08:00
Liu Ning
8514469092 esp_wifi: fix ret when setting channel at wifi not started, fix timer callback 2023-06-27 21:34:53 +08:00
Shreyas Sheth
42f2cdb8e0 esp_wifi: Bugfix NVS get values for sae_pwe 2023-06-23 14:16:46 +05:30
Chen Yu Dong
1efcd78077 Merge branch 'bugfix/connection_to_hidden_AP_fail' into 'master'
Fix connection to hidden AP in APSTA mode for C6

See merge request espressif/esp-idf!23912
2023-06-21 17:23:40 +08:00
wuzhenghui
913a0adcfa esp_wifi: implement wifi_reset_mac_wrapper 2023-06-19 12:53:09 +08:00
Shyamal Khachane
84222e62a7 esp_wifi: Fix connection failure to hidden AP in APSTA mode for ESP32C6 2023-06-16 13:38:51 +05:30
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
muhaidong
a1a69b044e esp_wifi: fix some txop issues 2023-06-09 22:37:15 +08:00
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
xuxiao
722c60c14b esp_wifi: itwt add setup timeout timer to track response frame 2023-06-02 21:10:32 +08:00
zhangyanjiao
ce4b54361e esp_wifi:
1. mesh: layer2 node will scan all channels when fixed root leave
2. show warning info when setting max connection num for softAP
2023-05-26 11:33:33 +08:00
Shyamal Khachane
063460a0d3 1. Support NAN ifx for API's esp_wifi_internal_set_fix_rate and esp_wifi_set_protocol
2. Remove user configurable flag fsd_reqd from NAN publish config
3. Fix issue wherein NDL of previously cancelled service is obtained in peer record of new service with no NDL
2023-05-19 10:07:57 +05:30
chenjianxing
786b1642e6 esp_wifi: fix softap nvs <ssid,password,pmk> not match issue
Closes FCS-1196
2023-05-11 17:11:39 +08:00
Sarvesh Bodakhe
bb88774286 esp_wifi: Fix tx_callback issue for ESP32C6 2023-05-04 14:13:39 +05:30
Sarvesh Bodakhe
9e4915b81b esp-wifi: add station SAE-PK (Public Key) configuration note 2023-04-28 18:23:42 +05:30
muhaidong
bd77a74c9d esp_wifi: update pairwise cipher in softAP 2023-04-27 14:08:28 +08:00
muhaidong
bd16d6feeb esp_supplicant: When the softAP authentication mode is set to WPA2_PSK, WPA2_WPA3_PSK, or WPA3_PSK, the pairwise cipher will be overwritten with WIFI_CIPHER_TYPE_CCMP 2023-04-27 10:56:36 +08:00
Shyamal Khachane
e16b6f9369 esp_wifi: Reject TKIP cipher incase of OWE connection 2023-04-26 11:24:11 +05:30
Jiang Jiang Jian
58272a70b4 Merge branch 'esp32c6/bugfix_for_memory_leak_cause_by_timer' into 'master'
esp_wifi: bugfix for esp32c6 memory leak

See merge request espressif/esp-idf!23401
2023-04-25 18:04:36 +08:00
xuxiao
8df3e461f0 esp_wifi: bugfix for esp32c6 memory leak 2023-04-24 20:41:22 +08:00
laokaiyao
49f16eefbb esp32h4: checked all the corner stuffs of the removal 2023-04-23 12:03:07 +00:00