Commit Graph

291 Commits

Author SHA1 Message Date
muhaidong
20294ff1f0 esp_wifi: fix some wifi bugs
1. fix pairwise cipher tkip pmf compability issue
2. compute packet length use lldesc length instead rx_ctl sig_len for sniffer
3. refactor WiFi ioctl function
2022-10-21 17:48:22 +08:00
jgujarathi
45ce744c54 esp-wifi: Restores station status to connected when no other AP is found for roam 2022-09-28 12:26:48 +05:30
zhangyanjiao
9c6d54b9f6 esp_wifi: fix espnow recv unencrypted packets issue 2022-08-04 15:10:22 +08:00
xueyunfei
f2bee03f08 bugfix for backport wifi bugs to 4.1
- Bugfix for close sniffer mode when wifi stop

    - Bugfix for qos null update ba ssn

    - Fix deep sleep can't reconnect to ap when pmf enable.

    - Fix some ap will ignore auth when rx deauth for a while.
2022-08-03 15:05:53 +08:00
Jiang Jiang Jian
3cf24bd5d6 Merge branch 'bugfix/sta_pmf_mixed_mode_coexist' into 'release/v4.1'
esp_wifi: Fix sta connection issue with pmf AP when in mixed mode(v4.1)

See merge request espressif/esp-idf!17522
2022-08-03 11:22:00 +08:00
baohongde
07397b566b components/coex: Make sure sempher and queue used in isr is in DRAM
Closes https://github.com/espressif/esp-idf/issues/9032
Closes https://github.com/espressif/esp-idf/issues/8928
Closes https://github.com/espressif/esp-idf/issues/9129
2022-07-25 13:51:25 +08:00
aditi_lonkar
cceb9e11e7 esp_wifi: Fix sta connection issue with pmf AP when in mixed mode. 2022-05-09 10:34:54 +05:30
Jiang Jiang Jian
1004ff712f Merge branch 'bugfix/return_correct_QOS_values' into 'release/v4.1'
esp_wifi: Fix the QOS value of reply packets to peers.

See merge request espressif/esp-idf!17811
2022-05-07 10:13:09 +08:00
Michael (XIAO Xufeng)
d2debfaddf Merge branch 'bugfix/phy_regi2c_critical_section_v4.1' into 'release/v4.1'
esp_phy: use spinlock to avoid regi2c access conflicts (v4.1)

See merge request espressif/esp-idf!17694
2022-05-06 23:32:24 +08:00
Hrudaynath Dhabe
662bd2f57e esp_wifi: Fix the QOS value of reply packets to peers. 2022-05-06 14:08:44 +05:30
Jiang Jiang Jian
047fcd2c90 Merge branch 'bugfix/ignore_pmf_capable_flag_v4.1' into 'release/v4.1'
Always connect Station in PMF mode if possible (Backport v4.1)

See merge request espressif/esp-idf!17539
2022-05-01 17:30:48 +08:00
Krzysztof Lewandowski
4fcce88db9 esp_wifi: fix clearing default wifi netif procedure
Prior to this change "esp_wifi_clear_default_wifi_driver_and_handlers"
will not remove netif pointer from table when both AP and STA interfaces were
created and destroying default wifi interfaces is done in unfortunate
order. As a result there is dangling pointer left and it may cause crash in
later code (i.e. when esp_wifi_stop() is called).
2022-04-27 03:24:34 -04:00
xiewenxiang
dcf385b356 esp_phy: Add IRAM_ATTR for phy i2c spinlock 2022-04-21 02:58:25 +08:00
Nachiket Kukade
ace7ea8173 esp_wifi: Always connect Station in PMF mode if possible
While using esp_wifi_set_config, flag pmf_capable defaults to 0.
Users may not bother to enable it, which prevents connection to a
WPA3 AP. Or the AP may reset into WPA3 mode failing the re-connection.
To ensure better security, deprecate the pmf_capable flag and set it to
true internally.
Additionally add API esp_wifi_disable_pmf_config to disable PMF for
debug purposes or to avoid PMF issues on AP side.
2022-04-12 17:48:47 +05:30
Michael (XIAO Xufeng)
a8e00c3691 esp_phy: use spinlock to avoid regi2c access conflicts 2022-04-06 15:20:03 +08:00
Nachiket Kukade
15a7c51143 esp_wifi: Update wifi lib
Stop dropping bcast PMF deauths/disassocs with certain reason codes
2022-03-03 16:38:47 +05:30
zhangyanjiao
dad8d00bdf esp_wifi: refactor modem sleep access phy 2022-02-24 14:35:48 +08:00
Xia Xiaotian
900dc2ada6 esp_wifi: define wifi_clock_enable() on esp32 2022-02-24 14:35:48 +08:00
Xia Xiaotian
5056892b9b esp_wifi: store PHY digital registers before disabling PHY and load
them after enabling PHY
2022-02-24 14:35:48 +08:00
zhangyanjiao
002b273aa3 call pm_wakeup_init in esp_phy_enable() on esp32 2022-02-24 14:35:48 +08:00
Xia Xiaotian
89c036498e esp_wifi: refactor PHY access
- Simplify PHY access API
- Move coexist initializing and deinitializing out from PHY API
  to Wi-Fi and Bluetooth
- Remove coexist pause and resume for they are no longer needed.
2022-02-24 14:35:48 +08:00
zhangyanjiao
3410711f9b esp_wifi:
1. fix the issue that no tbtt is generated in station+softap mode when maximum modem sleep is enabled
2. update libphy.a to V4670 719f9f6_20210218 for esp32
2022-01-27 14:37:28 +08:00
yuanjm
b59e3b88b6 smartconfig: Fix smartconfig set socket option fail 2022-01-12 14:56:22 +08:00
NikLeberg
4b8ae70256 allow for minimal scope of wifi_init_config_t
With this change one can use the default config as a variable with minimal scope: esp_wifi_init(&(wifi_init_config_t)WIFI_INIT_CONFIG_DEFAULT())
2021-12-14 20:20:11 +08:00
Shang Zhou
626ce87ffb docs: Update miswritten and abbreviated words and syntax errors for initialize WiFi section in esp_wifi.h header file 2021-12-14 20:19:26 +08:00
muhaidong
171a59cc88 esp_wifi: fix fragment issue and PMF compatible for faulty APs
1. fix(pp): fix fragment plt loss when 2td pn compare with 1th pn
2. pmf allow keyindex in big endian format to workaround faulty APs
3. docs: update miswritten and abbreviated words and syntax errors for initialize WiFi section in esp_wifi.h header file
4. allow for minimal scope of wifi_init_config_t
2021-12-14 20:15:42 +08:00
zhangyanjiao
2cdf9b5d9d esp_wifi:
1. Fix airkiss and esptouch find channel crash issue
2. Fix issue of softAP not initating 4-way handshake if max length passphrase is set
3. Fix issue of esptouch find hidden AP fail
4. Clear hostpot bss when auth timeout happens
5. Fix not connect to open AP when WPA3 auth fail
6. Fix issue with hidden AP scans after connecting AP
7. Fix the watchdog issue when receiving action frame
8. Fix set config return value error
9. Fix the issue of reason code change from 15 to 204 when provide wrong password
10. Fix ampdu age timer memory leak
11. Fix issue of esp_wifi_80211_tx
12. Fix crash issue in presence of WEP AP
13. Fix the MIC comparison logic AES-128-CMAC decryption
14. Fix issue of setting incorrect log_length of NVS misc log
15. Fix SoftAP crash by handling public action frames
16. Fix a bug that Wi-Fi stack may crash when receive AMSDU length bigger then 3200
2021-12-07 14:22:24 +08:00
xiehang
d23be33b0d esp_wifi: Add beacon timeout event 2021-12-06 15:16:37 +08:00
shenjun
56a1a74492 esp_wifi_mesh: add esp_mesh_send_block_time to set blocking time of esp_mesh_send
1. add esp_mesh_send_block_time to set blocking time of esp_mesh_send
2. fix the issue that layer2 node connect to lower-layer node when FIXED-ROOT root disappeared
2021-11-25 14:02:03 +08:00
aditi_lonkar
865453bbe5 esp_wifi: Fix some wifi bugs
Add station based check for auth frame formation.
    Remove dependency of SHA256 AKM on PMF.
    Fix Block Ack setup issue in PMF scenario(aggregation issue).
2021-07-19 12:38:54 +05:30
ChenJianxing
9c897ef280 esp_wifi: rm esp32s2beta 2021-07-15 11:59:55 +08:00
ChenJianxing
e2526915b7 esp_wifi: fix amsdu & fragment vulnerabilities 2021-06-21 19:26:43 +08:00
xiehang
b8520d0c9c esp_wifi: Fix setting channel error after WiFi stop 2021-05-06 11:52:26 +08:00
baohongde
12b6656d90 Synchronize multiple branch of bt-lib 2021-04-21 05:29:48 +00:00
Jiang Jiang Jian
056890a41a Merge branch 'bugfix/fix_some_wifi_bugs_0105_v4.1' into 'release/v4.1'
Bugfix/fix some wifi bugs 0105 v4.1 (backport v4.1)

See merge request espressif/esp-idf!11881
2021-03-23 16:36:07 +00:00
xiehang
c277240dc6 esp_wifi: Modify ESP_IF_WIFI_AP to WIFI_IF_AP 2021-03-22 17:19:47 +08:00
xiehang
4403af7267 esp_wifi: Modify ESP_IF_WIFI_STA to WIFI_IF_STA 2021-03-22 17:18:58 +08:00
Jiang Jiang Jian
efcb1959bc Merge branch 'bugfix/fix_arp_buffer_error_in_smart_config_v4.1' into 'release/v4.1'
bugfix/fix_arp_buffer_error_in_smart_config_v4.1

See merge request espressif/esp-idf!12255
2021-03-22 06:10:40 +00:00
xiehang
e67d29b4e8 esp_wifi: Update WiFi lib
1. Change wifi scan duration from 120ms to 100ms
2. Using deport reg instead of ahb
3. Revert to report specific reason code when receiving deauth during 4-way-handshark
4. Fix the bug that tx ampdu parameter is not from peer device
5. Faster WiFi station connect improvement, avoid 100ms passive scan
6. Add FCS failed packets filter
7.Update esp32 phy lib to v4660
8.Fix country code last byte to space instead of NULL
9.Fix softap cannot forward A-MSDU
10.Fix some typos in esp_wifi.h
11.Fix max tx power to 20dBm
12.Fix the issue that the esp_wifi_sta_get_ap_info can't get country
13.Add support for 802.1x sha256 auth key mode
2021-03-17 15:30:09 +08:00
xiehang
40f124b0d0 esp_wifi: Add macro control for phy log 2021-03-17 15:27:39 +08:00
ChenJianxing
f4bb2b466c esp_wifi: optimize phy version log 2021-03-17 15:27:39 +08:00
ronghulin
18b6ed65f1 bugfix: fix some wifi bugs
1. fix max tx power to 20dBm
2. fix the issue that the esp_wifi_sta_get_ap_info can't get country

Closes https://github.com/espressif/esp-idf/issues/6267
2021-03-17 15:27:39 +08:00
dongyou
87968f8406 esp_wifi: Add documentation to avoid using WiFi modem sleep for WiFi/BT coexistence
Remove description of unusable API esp_wifi_restart()
Update esp_now_fetch_peer discription
Update description for ssid and password
2021-03-17 15:27:25 +08:00
ChenJianxing
a7302a6880 esp_wifi: fix CSA and BAR crash issue 2021-03-02 11:32:46 +08:00
Shubham Kulkarni
761a3cdeae esp_wifi_deinit: Return ESP_ERR_WIFI_NOT_STOPPED if wifi is not stopped
Add test case to test this workflow
2021-02-26 14:56:42 +05:30
dongyou
53398c646a fix smartconfig issue when router reply arp late 2021-02-04 11:33:23 +08:00
Ivan Grokhotkov
2d7b596c9e Merge branch 'bugfix/phy_xpd_v4.1' into 'release/v4.1'
wifi: add set_xpd_sar override(backport v4.1)

See merge request espressif/esp-idf!11545
2021-01-29 17:10:03 +08:00
zhangyanjiao
20dc46ca49 Revert "esp_wifi: optimize WiFi TX performance"
This reverts commit 5de5eb5676.
2020-12-18 08:38:01 +00:00
Cao Sen Miao
cabe0a44b7 adc_i2s: solve the i2s_adc issue when using wifi 2020-12-15 20:57:02 +08:00
Xia Xiaotian
649d834c16 esp_wifi: decouple Wi-Fi and bluetooth with coexist to reduce binary file size
close https://github.com/espressif/esp-idf/issues/5970
2020-12-10 17:07:49 +08:00