Commit Graph

13223 Commits

Author SHA1 Message Date
KonstantinKondrashov
3dcdcc08eb efuse: Adds major and minor versions and others 2023-02-11 08:06:49 +00:00
Jiang Jiang Jian
ab6735155a Merge branch 'bugfix/newlib_tz_env_mutex_v4.3' into 'release/v4.3'
newlib: Use correct recursive mutex for env and regular mutex for tz (v4.3)

See merge request espressif/esp-idf!22295
2023-02-11 12:32:55 +08:00
Jiang Jiang Jian
9ee1cda5e3 Merge branch 'bugfix/fatfs_mtime_dst_v4.3' into 'release/v4.3'
fatfs: fix incorrect mtime returned for files created during DST (v4.3)

See merge request espressif/esp-idf!18459
2023-02-11 09:01:31 +08:00
Jiang Jiang Jian
97454c017f Merge branch 'bugfix/fix_some_wifi_bugs_230209_v4.3' into 'release/v4.3'
esp_wifi: fix some wifi bugs(Backport v4.3)

See merge request espressif/esp-idf!22290
2023-02-11 03:10:08 +08:00
Jiang Jiang Jian
3250b88828 Merge branch 'optimization/lwip_dhcp_coarse_timer_4.3' into 'release/v4.3'
lwip:optimization dhcp coarse timer for 4.3

See merge request espressif/esp-idf!22287
2023-02-11 02:31:30 +08:00
Jiang Jiang Jian
3dc1ab532e Merge branch 'bugfix/secure_boot_v2_part_size_check_v4.3' into 'release/v4.3'
gen_esp32part: allow secure boot v2 based app partition size 4K aligned (v4.3)

See merge request espressif/esp-idf!22288
2023-02-10 19:24:46 +08:00
Jiang Jiang Jian
3d366e1959 Merge branch 'bugfix/rtc_8md256_deepsleep_time_esp32_v4.3' into 'release/v4.3'
pm: Fixed sleep time inaccurate bug when select 8MD256 as rtc slow clock on ESP32 (v4.3)

See merge request espressif/esp-idf!21823
2023-02-10 19:12:25 +08:00
cje
d8fc054115 sleep: fix sleep time inaccurate bug when select 8MD256 as rtc slow clock on ESP32
Related to: https://github.com/espressif/esp-idf/issues/6687
2023-02-10 01:36:40 +08:00
Ivan Grokhotkov
d7db6c3148 fatfs: fix incorrect mtime returned for files created during DST
mktime function uses tm_isdst member as an indicator whether the time
stamp is expected to be in daylight saving time (1) or not (0).
FAT filesystem uses local time as mtime, so no information about DST
is available from the filesystem.

According to mktime documentation, tm_isdst can be set to -1, in which
case the C library will try to determine if DST was or wasn't in
effect at that time, and will set UTC time accordingly.

Note that the conversion from UTC to local time and then back to UTC
(time_t -> localtime_r -> FAT timestamp -> mktime -> time_t) does not
always recover the same UTC time. In particular, the local time in the
hour before DST comes into effect can be interpreted as "before DST"
or "after DST", which would correspond to different UTC values. In
this case which option the C library chooses is undefined.

Closes https://github.com/espressif/esp-idf/issues/9039
Originally reported in https://github.com/espressif/arduino-esp32/issues/6786
2023-02-09 11:28:29 +00:00
xueyunfei
b5e8c68b59 lwip:optimization dhcp coarse timer 2023-02-09 19:28:28 +08:00
Steve Jothen
98c2470040 Use correct recursive mutex for env and regular mutex for tz 2023-02-09 16:04:47 +08:00
muhaidong
997af8de8a docs: update ftm docs 2023-02-09 15:07:37 +08:00
muhaidong
36caf700c7 esp_wifi: fix some wifi bugs
1. fix ftm timer macro issue
2. send null data when state change from association to run
3. bugfix for optimize abnormal beacon log
4. bugfix RSNXE related changes
5. send ftm frames immediately
6. fix ftm procedure with peer failed status 4 issue
2023-02-09 15:01:49 +08:00
Mahavir Jain
726c7cd45c
partition_table: add tests for checking secure boot part size 2023-02-09 12:11:47 +05:30
Mahavir Jain
08ce6b92aa
gen_esp32part: allow secure boot v2 based app partition size 4K aligned
For Secure Boot v2 case, unsigned image is first padded to next 64K
aligned boundary and then a signature block of 4K gets appended. Thus
an app partition whose size is 4K aligned should be allowed here.

For Secure Boot v1 case, app partition size must be 64K aligned as the
signature block lies at the very end of 64K boundary.

Relevant:
57b601ab7f
2023-02-09 12:08:59 +05:30
Armando
984ee9dd38 adc: no longer support adc2 oneshot mode on esp32c3
Due to HW limitation, we don't support this anymore. On c3, ADC2 under oneshot mode is not stable.

However, you can enable CONFIG_ADC_ONESHOT_FORCE_USE_ADC2_ON_C3 to force use
ADC2.

Refer to errata to know more details:
https://www.espressif.com/sites/default/files/documentation/esp32-c3_errata_en.pdf
2023-02-08 09:04:28 +00:00
Armando
9b4986dd2c adc: no longer support adc2 continuous mode on esp32c3
Due to HW limitation, we don't support this anymore. On c3, ADC2 under continuous  mode is not stable.

However, you can enable CONFIG_ADC_CONTINUOUS_FORCE_USE_ADC2_ON_C3_S3 to force use
ADC2.

Refer to errata to know more details:
https://www.espressif.com/sites/default/files/documentation/esp32-c3_errata_en.pdf
2023-02-08 09:04:28 +00:00
Jiang Jiang Jian
30ee33c62e Merge branch 'bugfix/wps_start_state_issue_v4.3' into 'release/v4.3'
esp_wifi: Add check for wps start state (v4.3)

See merge request espressif/esp-idf!22029
2023-02-06 17:22:09 +08:00
Jiang Jiang Jian
419d6209a8 Merge branch 'bugfix/coex_enable_disable_not_in_pairs_v4.3' into 'release/v4.3'
bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs(backport v4.3)

See merge request espressif/esp-idf!22096
2023-02-04 01:53:35 +08:00
Sumeet Singh
feb32ec9f4 NimBLE: Fix incomplete clearing of peer_dev_rec 2023-02-03 03:09:24 +00:00
wangmengyang
35ba1547e5 bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs on ESP32-C3 2023-02-03 03:08:42 +00:00
Shreyas Sheth
2cc790a69b esp_wifi: Add check for wps start state 2023-02-03 03:08:17 +00:00
harshal.patil
f138411fd7 mbedtls/port: added stream_block parameter sanity check 2023-01-25 15:40:45 +05:30
harshal.patil
119ac05b5e mbedtls: fix esp_aes_crypt_ctr writing to null stream block 2023-01-25 15:40:45 +05:30
harshal.patil
342671a943 mbedtls: added SOC_AES_SUPPORT_AES_192 check in esp_aes_gcm_setkey() 2023-01-25 15:40:45 +05:30
Shreyas Sheth
b44da528db esp_wifi:Add wifi station config for enabling transition_disbale feature 2023-01-16 00:59:04 +05:30
Jiang Jiang Jian
7d5a228f15 Merge branch 'Bugfix/softap_excedes_the_range_of_subnet_4.3' into 'release/v4.3'
dhcp server:bugfix softap excedes the range of subnet

See merge request espressif/esp-idf!21995
2023-01-12 10:53:38 +08:00
chenjianxing
b9f31eaa66 esp_wifi: fix multicast pkts drop issue for some AP when DTIM period > 1 2023-01-11 11:04:18 +08:00
xueyunfei
cab17c713d dhcp server:bugfix softap excedes the range of subnet 2023-01-11 09:53:48 +08:00
Jiang Jiang Jian
28f66e58ee Merge branch 'bugfix/remove_sha384_hash_for_bigger_certs_v4.3' into 'release/v4.3'
esp_wifi: remove sha384 hash for cert size > 2k (v4.3)

See merge request espressif/esp-idf!21965
2023-01-10 22:42:21 +08:00
Jiang Jiang Jian
80dd246b14 Merge branch 'bugfix/sae_auth_and_pmk_issues_v4.3' into 'release/v4.3'
Fix SAE open auth and PMK issues (Backport v4.3)

See merge request espressif/esp-idf!21920
2023-01-10 19:03:10 +08:00
Kapil Gupta
21310654c7 Removed sha384 hash for certs > 2k 2023-01-09 15:58:23 +05:30
Shyamal Khachane
18052cc0fc wpa_supplicant: Set PMK from PMKSA incase of caching 2023-01-09 09:58:54 +05:30
Shyamal Khachane
ce6bcb3868 esp_wifi: Fix open auth issue after commit message exchange 2023-01-09 09:58:54 +05:30
Shreyas Sheth
c78324e407 wpa_supplicant: set cipher key_len for AES 128 CMAC 2023-01-06 14:59:03 +05:30
Jiang Jiang Jian
aa8a00c4f0 Merge branch 'fix/long_assoc_comeback_time_v4.3' into 'release/v4.3'
esp_wifi: reject AP when assoc comeback time given is greater than 5 seconds (Backport v4.3)

See merge request espressif/esp-idf!21837
2023-01-06 12:01:51 +08:00
Jin Cheng
9e501aad7f Fixed crash caused by accessing nullptr in btm_acl_disconnected 2023-01-04 11:44:50 +08:00
Sarvesh Bodakhe
b85e0c0daa esp_wifi: Update wifi libs
Update wifi libs with below changes -
1. reject AP when assoc comeback time given is greater than 5 seconds
2022-12-29 15:39:49 +05:30
Jiang Jiang Jian
c3d47417fe Merge branch 'bugfix/fix_c3_ble_temperature_performance_v4.3' into 'release/v4.3'
Fixed bluetooth disconnection caused by HW temperature rise or fall on ESP32C3(backport v4.3)

See merge request espressif/esp-idf!21746
2022-12-29 00:38:14 +08:00
Aditya Patwardhan
58111664f8 Merge branch 'bugfix/esp_tls_timeout_v4.3' into 'release/v4.3'
esp_tls: Fix issue when timeout is not explicitly given in esp_tls_cfg_t (v4.3)

See merge request espressif/esp-idf!21745
2022-12-28 15:05:13 +08:00
zwj
1f05925676 update phy and bb lib for temperature performance 2022-12-27 20:57:04 +08:00
Shyamal Khachane
aa78c85a05 wpa_supplicant: Clear current pmksa before generating RSN IE
Also update wifi libs with below changes -
  - Fix reason codes for Invalid PMKID
  - Fix handling of Assoc Resp status codes for Station
2022-12-23 16:56:20 +05:30
gauri patankar
c1075e32e0 esp_wifi:Update wifi libs
1. Avoid ftm initiator mode on softap
2. Fix home channel issue in ftm for apsta mode
3. Fix int overflow for T1-T4 counter variable
2022-12-22 15:52:47 +05:30
Laukik Hase
dbedcc264d
esp_tls: Fix issue when timeout is not explicitly given in esp_tls_cfg_t
- If internet connectivity weakened or disappeared suddenly while we were
  in the TLS handshake stage, the app got stuck at that point indefinitely.
- This was because when timeout was not explicitly specified in esp_tls_cfg_t,
  the default timeout was set at the wrong place. This causes the sockets to be
  setup with zero timeout, hence the indefinite wait.
2022-12-21 14:59:58 +05:30
Jiang Jiang Jian
8cd8ec019c Merge branch 'bugfix/fix_ble_some_bugs_20221219_v4.3' into 'release/v4.3'
backport some BLE bugs 20221219 (backport v4.3)

See merge request espressif/esp-idf!21716
2022-12-21 15:02:35 +08:00
Jiang Jiang Jian
0cf1971b3b Merge branch 'bugfix/fix_some_ble_bugs_by_cjh_v4.3' into 'release/v4.3'
Fixed some BLE bugs (backport v4.3)

See merge request espressif/esp-idf!21692
2022-12-21 11:27:50 +08:00
Jiang Jiang Jian
0528ace322 Merge branch 'bugfix/flush_pmksa_entry_after_disconnect_v4.3' into 'release/v4.3'
Fix PMK caching related regression (Backport v4.3)

See merge request espressif/esp-idf!21694
2022-12-20 16:28:31 +08:00
zwj
5c4a30d08b Update bt lib for ESP32
- Add config to set duplicate scan list refresh period
- overwrite the oldest device infor if the list is full
- Fixed duplicate scan period is not accurate
2022-12-20 15:58:37 +08:00
zhiweijian
3467e9db8b bluedroid host supports the maximum number of connections to 9 2022-12-20 15:03:30 +08:00
zwj
ad0f1bb807 Update bt lib for ESP32-C3 and ESP32-S3
- Add config to set duplicate scan list refresh period
- overwrite the oldest device infor if the list is full
- Fixed duplicate scan period is not accurate
- Fixed some memory was not released after bluetooth controller initialization failed
- Fixed privacy errorr for directed advertising
- Fixed multiple periodic advertising sync failed in air
- Fixed lld_con.c line 3048 assert
- Fixed crash sometimes when connected as a slave by the 8th device
2022-12-20 15:02:22 +08:00
chenjianhua
df29143371 update bt-lib for ESP32
1 change default TX power to 9 dBm
2 fixed disconnect reason 0x1f (unspecified error)
3 fixed connection timeout due to terminate ind has not been acknowledged
2022-12-20 12:08:06 +08:00
zwj
3425d4df52 Fixed some memory was not released after bluetooth controller initialization failed on ESP32 2022-12-20 12:06:54 +08:00
Shyamal Khachane
37ce55cd3f wpa_supplicant: Fix PMK caching related regression
Fixed regression caused by commit c171f0f3
2022-12-19 19:11:37 +05:30
chenjianhua
8e4701275c bluedroid: fix ble connection update with same params 2022-12-19 19:32:41 +08:00
chenjianhua
65b3d93f79 bluedroid: fix encrypt keysize of GATT characteristic permission 2022-12-19 19:32:00 +08:00
chenjianhua
262387025b bluedroid: correct the length of att read by type pdu 2022-12-19 19:31:49 +08:00
xiongweichao
f05fcfc752 bt: Fixed repeated register of vfs_id causing memory leaks 2022-12-19 12:17:14 +08:00
xiongweichao
110bdea520 Assert when malloc user_data fail 2022-12-19 12:17:14 +08:00
xiongweichao
efaa43d01b Fixed memory leak when SPP initialization failed 2022-12-19 12:17:14 +08:00
Shreyas Sheth
c171f0f39b wpa_supplicant:BDSA related patch updates 2022-12-16 16:14:06 +05:30
Jiang Jiang Jian
ec25f91a9d Merge branch 'feature/backport_blufi_coexist_phy_init_flag_v4.3' into 'release/v4.3'
esp_wifi: backport coexist fix, connectionless ps fix, blufi feature

See merge request espressif/esp-idf!21609
2022-12-16 17:57:49 +08:00
liuning
a02a385ee2 esp_wifi: update lib 2022-12-16 14:20:17 +08:00
liuning
ce2deab1a4 phy: only set phy_init_flag at power domain off, when all modems deinit 2022-12-16 14:20:17 +08:00
liuning
312da39eb9 esp_wifi: fix some connectionless related issue 2022-12-16 14:20:17 +08:00
Kapil Gupta
6678e3fb8b esp_wifi: Add changes to skip SAE handshake during WPS connection 2022-12-15 12:35:26 +00:00
Kapil Gupta
9dfaf20508 esp_wifi: Flush PMK caching if bss akm has changed 2022-12-15 12:35:26 +00:00
Kapil Gupta
7c5b13f611 Correct SSID copy length during WPS scan 2022-12-15 12:35:26 +00:00
Jiang Jiang Jian
6439222c31 Merge branch 'Bufix/backport_some_lwip_bugs_for_4.3_1214' into 'release/v4.3'
Lwip:Backport some lwip bugs to 4.3

See merge request espressif/esp-idf!21594
2022-12-15 13:55:20 +08:00
liuning
626b87871d blufi: update version to 1.3
record connecting status, got ip status, maximum retry, connection end info (reason code, rssi) and provide greater information to phone
2022-12-14 19:23:08 +08:00
zhangyanjiao
ca17dc4f2d esp_wifi: report rssi info in wifi event 2022-12-14 19:21:13 +08:00
morris
0319c702cf Merge branch 'feature/_spi_slave_reset_trans_queue_api_v4.3' into 'release/v4.3'
spi: limit esp32 dma workaround only on esp32(v4.3)

See merge request espressif/esp-idf!21384
2022-12-14 17:43:27 +08:00
xueyunfei
6abb3eb0b4 Lwip:Backport some lwip bugs to 4.3
* Update submodule: git log --oneline 76303df2386902e0d7873be4217f1d9d1b50f982..6fa02bd30daa656f896c7a36248253fb3b97660d

Detailed description of the changes:
  - dhcp: reduce the DHCP Request timeout(esp-lwip@6fa02bd3)
  - dhcp: optimization fine timer when dhcp start(esp-lwip@79182163)
  - ip6 timer: optimization lwip ip6 reassembly timer (esp-lwip@c943fc5a)
  - ip4 timer: optimization lwip ip4 reassembly timer (esp-lwip@17f41c9f)
  - dns timer: optimization lwip dns timer (esp-lwip@7f5ab42c)
  - napt: Fix clean compilation  (espressif/esp-lwip@6132c975)
  - Lwip:add TCP Fin2 timeout configuration (espressif/esp-lwip@15b4400e)
  - napt: Fix IP forwarding when forward netif enable NAPT (espressif/esp-lwip@c950063f)
  - napt/stats: Move some napt counters to stats module (espressif/esp-lwip@475d658a)
  - ip_napt_maint: Fix timestamp overflow handling (espressif/esp-lwip@2e904508)
  - napt: Fixes and improvements (espressif/esp-lwip@fb1f3552)
2022-12-14 14:56:06 +08:00
Jiang Jiang Jian
ca6553ad9b Merge branch 'bugfix/multiple_wifi_fixes_v4.3' into 'release/v4.3'
esp_wifi: backport some wifi bug fixes to v4.3

See merge request espressif/esp-idf!21467
2022-12-14 13:55:08 +08:00
Jiang Jiang Jian
0ee643387b Merge branch 'feature/nimble_support_ble_max_conn_num_v4.3' into 'release/v4.3'
Nimble:  Support maximum number of connections to 9 on ESP32-C3 and ESP32-S3 (v4.3)

See merge request espressif/esp-idf!21552
2022-12-14 10:43:24 +08:00
jack
fc1e91f53c esp_wifi: update wifi lib
1.wifi: fixed sniffer mode can not capture control packet when station is enabled
2.Fixed WAPI issue on GTK compability and reference to broadcast arp pkts.
3.Fixed TX fragment issue that PN code is less than MSDU after PN code add two for TX fragment.
4.Added station connect retry count to make it easier to connect to the except AP
5.Fixed some issues on Soft-AP power save.
6.Fixed SoftAP memory leak after wifi init and deinit
7.Fixed sta get ap info does not return connected ssid issue.
8.Fixed SoftAP disconnection happened even when receive PS-Poll.
2022-12-13 16:19:41 +05:30
Rahul Tank
4e366665ae Nimble: Update documentation to include distinction between upstream
mesh example and ESP-BLE-MESH
2022-12-13 12:56:29 +05:30
morris
81ee095b16 Merge branch 'bugfix/fix_slave_gpio_cs_mixed_with_iomux_bus_v4.3' into 'release/v4.3'
spi_slave: fix slave can't use iomux bus mixed with gpio cs_pin (v4.3)

See merge request espressif/esp-idf!21376
2022-12-12 15:49:09 +08:00
Jiang Jiang Jian
19310eea60 Merge branch 'bugfix/correct_the_default_SR_mode_v4.3' into 'release/v4.3'
bugfix/correct the SR_mode selection when konw nothing about Peripheral's SR_mode (v4.3)

See merge request espressif/esp-idf!21521
2022-12-12 14:57:27 +08:00
Rahul Tank
b07ca316d0 Nimble: Support maximum number of connections to 9 on ESP32-C3 and ESP32-S3 2022-12-09 19:13:56 +05:30
jincheng
31b6acc88a Added reporting for ACL link related events to application 2022-12-09 11:15:56 +08:00
Jin Cheng
bfe007388f correct the SR_mode selection when konw nothing about Peripheral 2022-12-09 10:37:42 +08:00
Jiang Jiang Jian
df901e0fe8 Merge branch 'contrib/github_pr_9529_v4.3' into 'release/v4.3'
component_bt: Fixed memory leak due to not freeing memory if posting a message to a thread fails(v4.3)

See merge request espressif/esp-idf!21473
2022-12-08 11:44:55 +08:00
Wang Meng Yang
05c497e9c2 Merge branch 'bugfix/reduce_BTU_TASK_stack_consumption_v4.3' into 'release/v4.3'
Reduce the stack consumption of BTU_TASK (backport v4.3)

See merge request espressif/esp-idf!21436
2022-12-07 11:29:56 +08:00
morris
8b7ae11828 Merge branch 'bugfix/i2c_func_iram_v4.3' into 'release/v4.3'
I2C: put some interrupt used functions into IRAM(backport v4.3)

See merge request espressif/esp-idf!21422
2022-12-07 10:51:39 +08:00
xiongweichao
84e400cd8c bt: Fixed incorrect parameters in switching to BTC context 2022-12-07 10:22:41 +08:00
xiongweichao
dad8773c07 bt:Modify the member variable *arg in struct btc_msg to arg[0] 2022-12-07 10:22:36 +08:00
xiongweichao
433767f97a bt: Fixed memory leak due to not freeing memory if posting a message to a thread fails 2022-12-07 10:22:29 +08:00
alex.li
e7a2559640 esp_wifi: fix wapi gtk id compability issue and adapt tx frag pn sequently. 2022-12-06 17:28:09 +08:00
Kapil Gupta
10b0b768b7 esp_wifi: Add config option for AP retry count
Provide a config option for station to retry with the AP
if connection fails first time.
2022-12-06 17:28:09 +08:00
Jiang Jiang Jian
35f9b6ad58 Merge branch 'bugfix/Fix_exceptional_list_params_check_v4.3' into 'release/v4.3'
ble_mesh: stack: Fix exceptional list parameters check issue(v4.3)

See merge request espressif/esp-idf!21443
2022-12-06 14:44:25 +08:00
Wang Meng Yang
722291e404 Merge branch 'bugfix/reattempt_crash_v4.3' into 'release/v4.3'
NimBLE: Fixed going for reattempt connection code (v4.3)

See merge request espressif/esp-idf!21177
2022-12-06 14:02:23 +08:00
wangjialiang
0f95a31589 ble_mesh: stack: Fix exceptional list parameters check issue 2022-12-05 20:26:11 +08:00
Cao Sen Miao
aac5297f8a I2C: put some interrupt used functions into IRAM 2022-12-05 18:05:28 +08:00
zwj
8ce5d113ca Reduce the stack consumption of BTU_TASK 2022-12-05 17:29:40 +08:00
isha.pardikar@espressif.com
7b51ebe7a8 NimBLE: Fixed going for reattempt connection code 2022-12-05 14:33:40 +05:30
Armando
9061efd3d1 spi: limit esp32 dma workaround only on esp32 2022-12-01 21:00:35 +08:00
jingli
f2e92f564e bt: fix bt sleep flow hangs in btdm_sleep_clock_sync
Bluetooth low power related logic and regs have separate power domain from MAC and BB,
and do not power down during light sleep. If reset when power up MAC and BB in sleep
flow, it may destroy the state of bt low power part.
2022-12-01 20:54:45 +08:00
wanlei
a6ea6716ce spi_slave: fix slave can't use iomux bus mixed with gpio cs_pin 2022-12-01 20:21:11 +08:00
Jiang Jiang Jian
c0ba33a99d Merge branch 'bugfix/check_ies_in_match_security_v4.3' into 'release/v4.3'
Adding check for ies in match security (Backport v4.3)

See merge request espressif/esp-idf!21312
2022-12-01 10:46:57 +08:00
xiongweichao
9b2b5d1651 Fixed a2dp failing to connect again after disconnect 2022-11-30 19:15:36 +08:00
Jiang Jiang Jian
6b48dd30e6 Merge branch 'bugfix/esp_periph_uart_clk_gate_issue_v4.3' into 'release/v4.3'
esp_system: use ESP_CONSOLE_UART_NUM instead of CONSOLE_UART_NUM (backport to v4.3)

See merge request espressif/esp-idf!21284
2022-11-30 17:30:42 +08:00
Jiang Jiang Jian
1d000363c6 Merge branch 'bugfix/disable_prov_encryption_v4.3' into 'release/v4.3'
Wifi Prov: Disabled the default support for BLE Encrpytion on characteristics read /write (v4.3)

See merge request espressif/esp-idf!21265
2022-11-30 15:59:06 +08:00
gauri patankar
66a8eb9ff9 Adding check for ies in match security 2022-11-30 11:57:26 +05:30
Aditya Patwardhan
ee7953dc2a Merge branch 'feature/update_expat_2_5_0_v4.3' into 'release/v4.3'
expat: Upgrade expat to release v2.5.0

See merge request espressif/esp-idf!21295
2022-11-30 14:03:18 +08:00
Harshit Malpani
6ff2df0046
expat: Upgrade expat to release v2.5.0 2022-11-28 13:57:22 +05:30
gauri patankar
4f8a869392 Add changes to prevent security params overwritten in full scan (backport v4.3) 2022-11-28 12:50:54 +05:30
jiangguangming
5888f9201f esp_system: use ESP_CONSOLE_UART_NUM instead of CONSOLE_UART_NUM 2022-11-28 10:37:39 +08:00
Jiang Jiang Jian
3685ed2829 Merge branch 'bugfix/fix_connect_and_mesh_issues_v4.3' into 'release/v4.3'
esp_wifi: fix connect issue and mesh issue (backport v4.3)

See merge request espressif/esp-idf!21204
2022-11-28 10:19:51 +08:00
Rahul Tank
6040bba236 Wifi Prov: Disabled the default support for BLE Encrpytion on characteristics read /write
By default, disabled the BLE Encrpyption requirement for provisioning characteristic.
With this flag enabled, when remote attempts to read and if the ACL link is not encrypted,
ESP device will return Insufficient Authentication. It is remote device responsibility to go
for link encryption which may result in pairing.

Some devices do not proceed for any pairing and just show failure pop-up. Also, user needs
to remove bonding on remote phone manually and then try again. This is causing bad user experience.

End user can enable it as per their use case.
2022-11-25 14:21:13 +05:30
Jin Cheng
79b4d8fe4f optimized a2dp_sink audio datapath
1. removed audio cache in BTC layer of Bluedroid
2. added flow control for audio data in application layer

Closes https://github.com/espressif/esp-idf/issues/9622
2022-11-24 13:13:40 +08:00
Jiang Jiang Jian
81d598b46f Merge branch 'bugfix/fix_hfp_clcc_parser_bug_4.3' into 'release/v4.3'
Bugfix/Fix HFP client parse CLCC command response bug[backport 4.3]

See merge request espressif/esp-idf!21158
2022-11-24 11:12:15 +08:00
Jiang Jiang Jian
a74a732c10 Merge branch 'bugfix/fixing_memory_leak_wps_scan' into 'release/v4.3'
Fixed a memory leak issue created when parsing scan results

See merge request espressif/esp-idf!20740
2022-11-24 10:39:10 +08:00
muhaidong
0ed631f47a esp_wifi: Modify wifi scan return value.
1. Modify wifi scan return value same to docs.
2. Change some logs' log level wo avoid misunderstanding.
3. Fix connect fail return wrong error code issue
2022-11-23 19:10:13 +08:00
zhangyanjiao
7cf171cb1f update doc for set channel 2022-11-23 19:09:49 +08:00
zhangyanjiao
92eb91f985 update wifi reason code 2022-11-23 19:09:03 +08:00
Jiang Jiang Jian
2e0da2773b Merge branch 'bugfix/change_default_tx_power_on_c3_v4.3' into 'release/v4.3'
Change BLE default TX power on ESP32C3(backport v4.3)

See merge request espressif/esp-idf!21169
2022-11-23 14:28:30 +08:00
jgujarathi
d5b9fbac44 (wpa_supplicant) : Fixed a memory leak issue created when parsing scan results. 2022-11-23 10:07:01 +05:30
Jiang Jiang Jian
d732a84bfd Merge branch 'bugfix/wpa_enterprise_reauth_v4.3' into 'release/v4.3'
esp_wifi: Fix WiFi Enterprise Reauthentication issue (v4.3)

See merge request espressif/esp-idf!21073
2022-11-23 10:42:55 +08:00
zhiweijian
92c8189388 support BLE memory release on ESP32C3 and ESP32S3 2022-11-21 12:21:47 +08:00
zhiweijian
30f2cc87ce Update bt lib for ESP32C3
- Added config to disable scan backoff
- Fixed llm_scan.c assert at line 1485 during controller deinit if duplicate scan is not stopped
- Call pll track in controller task
2022-11-21 12:04:35 +08:00
zwj
098465ff74 Fixed errors reported by CI clang_tidy_check 2022-11-21 11:11:52 +08:00
zwj
da42e4a234 Fixed sometimes BTU task overflow when doing read and write performance test 2022-11-21 11:11:40 +08:00
zhiweijian
14f396c367 change default tx power from 3dBm to 9dBm 2022-11-21 11:11:17 +08:00
wuzhenghui
378fa313ec bugfix: fix redefined _iram_end 2022-11-18 19:50:23 +08:00
liqigan
60875836bd fix HFP client parse CLCC command response bug 2022-11-18 19:44:17 +08:00
jingli
b6896055a2 hal/gpio_ll: fix digital gpio can not enable hold during deep sleep when force_unhold set(32/s2/s3) 2022-11-18 03:00:01 +00:00
jingli
58e9ce6fe3 hal/gpio_ll: fix digital gpio can not disable hold during deep sleep 2022-11-18 03:00:01 +00:00
jingli
24eea75f9c esp_hw_support/sleep: fix current leakage when hold digital io during deep sleep 2022-11-18 03:00:01 +00:00
morris
3bbb109eb2 Merge branch 'feature/remove_psram_cs_clk_pin_settings_config_s2_s3_v4.3' into 'release/v4.3'
psram: remove CS/CLK pin settings in kconfig on ESP32S2 (v4.3)

See merge request espressif/esp-idf!21048
2022-11-14 17:17:13 +08:00
Shreyas Sheth
7e8cca6c2f esp_wifi: Bugfix WPA Enterprise Reauthentication issue 2022-11-14 11:12:58 +05:30
Jin Cheng
60e281805c fixed the issue iOS devices cannot initiate connection
to ESP32 while there is a BLE connection to this ESP32

Closes https://github.com/espressif/esp-idf/issues/6557
2022-11-14 09:50:22 +08:00
Michael (XIAO Xufeng)
af61c51385 Merge branch 'test/rtc_8m_d256_v4.3' into 'release/v4.3'
rtc: fixed 8MD256 can't be used as RTC slow src on ESP32 (v4.3)

See merge request espressif/esp-idf!18106
2022-11-12 00:45:11 +08:00
Armando
522cf49d33 psram: remove CS/CLK pin settings in kconfig on ESP32S2 2022-11-11 18:15:54 +08:00
morris
bfbf1139ae Merge branch 'bugfix/fix_modbus_rs485_rts_en_fail_v43' into 'release/v4.3'
Bugfix/fix modbus rs485 rts en fail (backport v4.3)

See merge request espressif/esp-idf!16257
2022-11-09 15:46:51 +08:00
Song Ruo Jing
b8e62ce4b2 uart: Fix unwanted processing of TX_DONE interrupt immediately after calling uart_wait_tx_done()
In previous transmission(s), the TX_DONE interrupt raw bit may be raised, but never been cleared.
TX_DONE interrrupt status bit should be cleared before enabling it to check the new transmission.
2022-11-09 02:31:15 +00:00
aleks
a6e524418d freemodbus: fix uart_wait_tx_done() reenable tx_done interrupt 2022-11-09 02:31:15 +00:00
aleks
bc1f50dc0f freemodbus: fix rts enable fail when transmit frame 2022-11-09 02:31:15 +00:00
aleks
baa0aad20e freemodbus: fix modbus rs485 rts enable fail v42 2022-11-09 02:31:15 +00:00
liuning
dbe59eff86 esp_wifi: add protection for mac reset (backport 4.3) 2022-11-08 14:04:52 +08:00
Jiang Jiang Jian
635a9c5efb Merge branch 'bugfix/mqtt_enqueue4_3' into 'release/v4.3'
[mqtt] Fix esp_mqtt_client_enqueue for len=0 (v4.3)

See merge request espressif/esp-idf!20303
2022-11-08 11:08:00 +08:00
Jiang Jiang Jian
ffe6f240cf Merge branch 'bugfix/time_jump_after_reboot_v4.3' into 'release/v4.3'
esp_hw_support: Fix time jump after reboot (v4.3)

See merge request espressif/esp-idf!20909
2022-11-08 11:07:51 +08:00
Jiang Jiang Jian
714cf794f2 Merge branch 'bugfix/keep_rtc8m_in_lightsleep_v4.3' into 'release/v4.3'
pm: fixed RTC8M domain power down issue when used as RTC source (v4.3)

See merge request espressif/esp-idf!18080
2022-11-08 11:04:50 +08:00
wangjialiang
215e1262ba ble_mesh: stack: Fix can't trans optional info to group address 2022-11-07 15:48:56 +08:00
jingli
81b98881ac esp_hw_support/sleep: fix cannot pd cpu and rc fast at the same time during light sleep
Since cpu retention dma use rc fast as clk source, so rc_fast_digi
will be enabled when we config to pd cpu. And cpu retention does not
need rc fast keep on during light sleep. So, if we use rc_fast_digi
to determine whether rc fast can be powered down, then cpu and and
rc fast cannot pd at the same time.
2022-11-06 01:34:18 +08:00
Michael (XIAO Xufeng)
7931c033ed pm: fixed RTC8M domain power issues
introduced in e44ead5356

1. The int8M power domain config by default is PD. While LEDC is using
RTC8M as clock source, this power domain will be kept on.

But when 8MD256 is used as RTC clock source, the power domain should
also be kept on.

On ESP32, there was protection for it, but broken by commit
e44ead5356. Currently the power domain
will be forced on when LEDC is using RTC8M as clock source &&
!int8m_pd_en (user enable ESP_PDP_DOMAIN_RTC8M in lightsleep). Otherwise
the power domain will be powered off, regardless of RTC clock source.

In other words, int8M domain will be forced off (even when 8MD256
used as RTC clock source) if LEDC not using RTC8M as clock source, user
doesn't enable ESP_PDP_DOMAIN_RTC8M, or in deep sleep.

On later chips, there's no such protection, so 8MD256 could't be used as
RTC clock source in sleep modes.

This commit adds protection of 8MD256 clock to other chips. Fixes the
incorrect protection logic overriding on ESP32. Now the power domain
will be determiend by the logic below (order by priority):

    1. When RTC clock source uses 8MD256, power up
    2. When LEDC uses RTC8M clock source, power up
    3. In deepsleep, power down
    4. Otherwise determined by user config of ESP_PDP_DOMAIN_RTC8M,
       power down by default. (This is preferred to have highest
       priority, but it's kept as is because of current code structure.)

2. Before, after the macro `RTC_SLEEP_CONFIG_DEFAULT` decides dbias, the
protection above may force the int8m PU. This may cause the inconsistent
of dbias and the int8m PU status.

This commit lifts the logic of pd int8m/xtal fpu logic to upper layer
(sleep_modes.c).

Related: https://github.com/espressif/esp-idf/issues/8007, https://github.com/espressif/esp-idf/pull/8089

temp
2022-11-05 20:02:53 +08:00
Jiang Jiang Jian
abb7962161 Merge branch 'bugfix/set_ap_rsnxe_while_connect_v4.3' into 'release/v4.3'
esp_wifi:Set AP rsnxe while connecting to a AP

See merge request espressif/esp-idf!20482
2022-11-04 16:38:16 +08:00
Michael (XIAO Xufeng)
696de2e7ac pm: add test for RTC using 8MD256 as clock source 2022-11-04 12:37:45 +08:00
Michael (XIAO Xufeng)
b56b459960 rtc: fixed 8MD256 can't be used as RTC slow src on ESP32
Sync configuration from other chips

Closes: https://github.com/espressif/esp-idf/issues/8007, https://github.com/espressif/esp-idf/pull/8089
2022-11-04 12:37:45 +08:00
morris
164d9bb782 Merge branch 'bugfix/calib_i2c_clk_v4.3' into 'release/v4.3'
I2C: Make I2C clock frequency accurate(backport v4.3)

See merge request espressif/esp-idf!19070
2022-11-03 10:04:31 +08:00
KonstantinKondrashov
2c3f30378f esp_hw_support: Fix time jump after reboot
Closes https://github.com/espressif/esp-idf/issues/9448
2022-11-02 19:38:26 +08:00
Shreyas Sheth
dc23667db8 esp_wifi:Set AP rsnxe while connecting to a AP 2022-11-02 15:25:31 +05:30
Cao Sen Miao
32dca66fb6 I2C: Make I2C clock frequency accurate 2022-11-01 15:48:26 +08:00
Nachiket Kukade
aabfb142bc esp_wifi: Update wifi libs
Fix scan causing bss overwrite in connect process
2022-11-01 09:43:43 +05:30
Jiang Jiang Jian
1d5efaddac Merge branch 'bugfix/fix_sta_scan_when_already_connected_v4.3' into 'release/v4.3'
esp-wifi: Restores station status to connected when no other AP is found for roam

See merge request espressif/esp-idf!20343
2022-11-01 11:03:01 +08:00
Jiang Jiang Jian
9e6d5dce34 Merge branch 'bugfix/use_nonblocking_coex_callback_v4.3' into 'release/v4.3'
bluetooth: use non-blocking coexistence callback functions so that Wi-Fi task is not blocked by Bluetooth(backport v4.3)

See merge request espressif/esp-idf!20780
2022-11-01 10:48:38 +08:00
morris
9a9f503c73 Merge branch 'bugfix/spi2_add_device_cs_more_than_3_v4.3' into 'release/v4.3'
spi_master:fix error when use `spi_bus_add_device` more than 3 device(v4.3)

See merge request espressif/esp-idf!20127
2022-11-01 10:18:24 +08:00
Jiang Jiang Jian
6225c718c3 Merge branch 'bugfix/fix_xtal_related_rtc_params_for_esp32_backport_v4.3' into 'release/v4.3'
esp32/rtc: fix xtal unstable in some cases when sleep(backport v4.3)

See merge request espressif/esp-idf!20804
2022-10-31 19:52:04 +08:00
Jiang Jiang Jian
167a9896a2 Merge branch 'bugfix/fix_part_of_modem_not_reset_when_power_on_backport_v4.3' into 'release/v4.3'
Coexistence: fix part of modem module not reset when power up(backport v4.3)

See merge request espressif/esp-idf!20813
2022-10-31 19:51:50 +08:00
Wang Meng Yang
4fecbc30fa Merge branch 'bugfix/spp_vfs_mode_send_data_fail_v4.3' into 'release/v4.3'
bt: Fixed SPP VFS mode not being able to send data(v4.3)

See merge request espressif/esp-idf!20802
2022-10-27 10:50:11 +08:00
jgujarathi
c7edfd4ef0 esp-wifi: Restores station status to connected when no other AP is found for roam 2022-10-26 19:03:27 +05:30
jingli
91b147c9da wifi/bt: fix part of modem module not reset when power up 2022-10-26 20:47:10 +08:00
wangmengyang
de2e183c9a bt: use non-blocking coexistence callback functions so that Wi-Fi task is not blocked by Bluetooth for ESP32 2022-10-26 19:13:16 +08:00
Wang Meng Yang
067d5fb28d Merge branch 'bugfix/handle_issue_of_malloc_fail_v4.3' into 'release/v4.3'
bugfix/avoid unexpected free when malloc failed (v4.3)

See merge request espressif/esp-idf!20726
2022-10-26 18:57:28 +08:00
jingli
d8141bdf51 esp_hw_support/sleep: fix light sleep wakeup flag
light sleep wakeup flag is true to indicate the most recent successful wakeup from light sleep,
which means the most recent light sleep occurred successfully and then wakes up by wakeup source
2022-10-26 17:07:07 +08:00
jingli
b6491464e1 esp32/rtc: fix xtal unstable in some cases when sleep
1. add xtal buf wait to fix high temperature restart issue
2. add min sleep value to fix xtal stop due to too short sleep time issue
2022-10-26 17:05:07 +08:00
xiongweichao
45d4780760 bt: Fixed SPP VFS mode not being able to send data 2022-10-26 16:27:49 +08:00
Jiang Jiang Jian
a2086ca355 Merge branch 'bugfix/fix_esp32_esp32c3_some_bugs_v4.3' into 'release/v4.3'
Fixed BLE lld_per_adv.c line 401 assert on ESP32C3 (backport v4.3)

See merge request espressif/esp-idf!20759
2022-10-26 11:07:37 +08:00
Jiang Jiang Jian
69ae164794 Merge branch 'bugfix/update_ctrl_init_config_macro_v4.3' into 'release/v4.3'
Bugfix/update ctrl init config macro (v4.3)

See merge request espressif/esp-idf!20713
2022-10-25 17:41:53 +08:00
zhiweijian
2dfdea8b50 update ble tx power level mapping 2022-10-24 20:10:48 +08:00
zhiweijian
8005e6f0d5 Fixed BLE lld_per_adv.c line 401 assert on esp32c3 2022-10-24 19:51:34 +08:00
zwj
858b869bb6 Fixed ESP32 BLE assert(32 0) 2022-10-24 19:36:58 +08:00
zwj
38945f54e1 allow bluedroid host to report adv_ind separately 2022-10-24 19:36:47 +08:00
Jiang Jiang Jian
d96bb082ba Merge branch 'bugfix/esp_spp_write_len_0_v4.3' into 'release/v4.3'
bt: Fixed esp_spp_write() crash when len is 0 (v4.3)

See merge request espressif/esp-idf!20707
2022-10-24 12:31:37 +08:00
Jiang Jiang Jian
1adb0b6b94 Merge branch 'bugfix/fix_some_wifi_bugs_1019_v4.3' into 'release/v4.3'
esp_wifi: fix deinit return wrong value(Backport v4.3)

See merge request espressif/esp-idf!20733
2022-10-24 11:21:39 +08:00
Li Shuai
54d59fae28 sleep: beacon loss and noise check timer optimize for wifi power save
esp_phy: optimize phy calibration for C3
2022-10-21 21:43:24 +08:00
tgotic
416f9b0cea [bt] fix if allocation fails
If osi_malloc fails for work_queues or osi_work_queue_create fails, osi_work_queue_delete in _err may release unallocated memory.
2022-10-21 14:46:12 +08:00
Jiang Jiang Jian
dd62e3bb9b Merge branch 'bugfix/close_stack_callback_during_ble_stop_v4.3' into 'release/v4.3'
Nimble: Added check to deregister stack callback with controller during stack deinit(v4.3)

See merge request espressif/esp-idf!20605
2022-10-21 14:21:41 +08:00
Evan Neidler
850efb4bbe Update #define BT_CONTROLLER_INIT_CONFIG_DEFAULT().
Corrects header names in string from "bt.h" to "esp_bt.h".
2022-10-21 12:03:39 +08:00
xiongweichao
58a7082114 bt: Fixed esp_spp_write() crash when len is 0
Closes https://github.com/espressif/esp-idf/issues/9977
2022-10-21 11:21:51 +08:00
Jiang Jiang Jian
844624ead2 Merge branch 'bugfix/revert_commit_da44fc9c_v4.3' into 'release/v4.3'
Revert "fixed the issue iOS devices cannot initiate connection" (v4.3)

See merge request espressif/esp-idf!20667
2022-10-20 19:18:28 +08:00
Jiang Jiang Jian
d2cc0f9f77 Merge branch 'bugfix/add_security_patches_v4.3' into 'release/v4.3'
Adding security patch for SAE side channel attacks (Backport v4.3)

See merge request espressif/esp-idf!20650
2022-10-20 19:17:36 +08:00
muhaidong
bfdccbd7cb esp_wifi: fix deinit return wrong value
1. Deinit does not return ESP_ERR_WIFI_NOT_INIT if the wifi driver is no longer initialized.
2. Fix get wrong channel value use esp_wifi_get_config.
3. Fix bug of missing unlock when wifi stop.
4. Fix annotation error of api esp_wifi_connect.
2022-10-20 11:41:07 +08:00
Zim Kalinowski
96ef8f42be Merge branch 'bugfix/clobbering_freertos_base_priority_v4.3' into 'release/v4.3'
spi_flash: fix issue linked with raising of task priority while priority is already raised (v4.3)

See merge request espressif/esp-idf!20546
2022-10-19 18:02:30 +08:00
Jiang Jiang Jian
9040964321 Merge branch 'bugfix/fix_esp_hid_auth_fail_crash_v4.3' into 'release/v4.3'
Fix esp hid crash when auth failed (backport v4.3)

See merge request espressif/esp-idf!20613
2022-10-19 11:13:00 +08:00
Jiang Jiang Jian
1ec7a0cbf8 Merge branch 'feature/Add_IVI_recovery_option_v4.3' into 'release/v4.3'
ble_mesh: stack: Add IV index recovery option when device missed the whole IV update(v4.3)

See merge request espressif/esp-idf!20643
2022-10-19 11:12:11 +08:00
Jiang Jiang Jian
f1beed4911 Merge branch 'bugfix/fix_fast_interval_prov_adv_v4.3' into 'release/v4.3'
ble_mesh: stack: Fix send fast interval prov_adv failed(v4.3)

See merge request espressif/esp-idf!20639
2022-10-19 11:11:45 +08:00
morris
9966753e46 Merge branch 'bugfix/2nd_bootloader_uart1_baudrate_issues_v4.3' into 'release/v4.3'
esp_rom: fix 2nd bootloader custom uart1 baudrate issue (backport to v4.3)

See merge request espressif/esp-idf!20655
2022-10-19 02:09:51 +08:00
Jin Cheng
b5996dd051 Revert "fixed the issue iOS devices cannot initiate connection"
This reverts commit da44fc9cbe.
2022-10-18 19:45:00 +08:00
morris
83dc965b2f Merge branch 'bugfix/fix_rtc8m_calibration_fail_after_cpu_core_reset_v4.3' into 'release/v4.3'
rtc_clk: Fix rtc8m calibration failure after cpu/core reset (backport v4.3)

See merge request espressif/esp-idf!20554
2022-10-18 18:22:01 +08:00
Rahul Tank
7d3207f70b Nimble: Added check to deregister stack callback with controller during stack deinit(v4.3) 2022-10-18 12:19:20 +05:30
jiangguangming
45e6ae724d esp_rom: fix 2nd bootloader custom uart1 baudrate issue 2022-10-18 13:51:20 +08:00
Jiang Jiang Jian
ed9fb4db6f Merge branch 'bugfix/fix_c3_dig_dibas_limit_bug_to_v4.3' into 'release/v4.3'
C3:  Fix system not stable bug when dbias storing in efuse is bigger than 27 (v4.3)

See merge request espressif/esp-idf!20497
2022-10-18 12:38:37 +08:00
Jiang Jiang Jian
8b8b69a4c3 Merge branch 'bugfix/fix_ignore_rx_sub_ampdu_int_issue_v4.3' into 'release/v4.3'
esp_wifi: fix ignore rx sub ampdu interrupt issue(Backport v4.3)

See merge request espressif/esp-idf!20614
2022-10-17 22:09:12 +08:00
gauri patankar
929a1f8549 wpa_supplicant: Update security patches from upstream
1. Adding security patch for SAE side channel attacks
2. Adding confirm message validation in error cases
3. Adding y coordinate for PWE in SAE
2022-10-17 18:03:33 +05:30
gauri patankar
a01a64f02c wpa_supplicant: Move SAE modules into dragonfly files 2022-10-17 18:01:24 +05:30
Jiang Jiang Jian
ed6f966009 Merge branch 'contrib/github_pr_9529_mr_v4.3' into 'release/v4.3'
bt:No need to use local copy of btc_msg_t in btc_transfer_context, create it on heap and pass to osi_thread_post()(v4.3)

See merge request espressif/esp-idf!19693
2022-10-17 18:04:57 +08:00
Jiang Jiang Jian
c482cf16d4 Merge branch 'backport/cjh_v4.3' into 'release/v4.3'
Fixed some BLE bugs on bluedroid (backport v4.3)

See merge request espressif/esp-idf!20507
2022-10-17 17:05:00 +08:00
wangjialiang
b8e9a77463 ble_mesh: stack: Add IV index recovery option when device missed the whole IV update 2022-10-17 16:54:16 +08:00
wangjialiang
cac449f57a ble_mesh: stack: Fix send fast interval prov_adv failed when PB-ADV and PB-GATT enable simultaneously 2022-10-17 16:39:59 +08:00
Jiang Jiang Jian
bf00ddb62c Merge branch 'bugfix/fix_esprv_intc_int_set_type_err_parameter_backportv4.3' into 'release/v4.3'
bugfix: esprv_intc_int_set_type should not use bitmap parameter(backport v4.3)

See merge request espressif/esp-idf!20608
2022-10-17 14:39:31 +08:00
Mahavir Jain
d4789383a4 Merge branch 'bugfix/fix_mbedlts_ds_memory_leak_v4.3' into 'release/v4.3'
esp-tls: Fix memory leak in mbedtls ds peripheral when MBEDTLS_THREADING_C enabled (backport v4.3)

See merge request espressif/esp-idf!20595
2022-10-17 12:41:03 +08:00
KonstantinKondrashov
e8bf8ce14d freertos: Adds new APIs to set/get and restore base priority
Closes https://github.com/espressif/esp-idf/issues/7580
2022-10-14 19:04:44 +08:00
muhaidong
56933d09ea esp_wifi: fix ignore rx sub ampdu interrupt issue 2022-10-14 16:08:24 +08:00
chenjianhua
b3bd5cbf77 fix esp hid crash when auth failed 2022-10-14 16:02:58 +08:00
wuzhenghui
4934d700c9 bugfix: esprv_intc_int_set_type should not use bitmap parameter 2022-10-14 15:27:19 +08:00
yuanjianmin
4848e11ac6 esp-tls: Fix memory leak in mbedtls ds peripheral when MBEDTLS_THREADING_C enabled 2022-10-13 19:41:19 +08:00
zhangyanjiao
14ce174215 esp_wifi: fix connect fail when enable SPIRAM and ESPNOW send 2022-10-13 17:05:17 +08:00
Song Ruo Jing
c0be4cb2ba rtc_clk: Fix rtc8m calibration failure after cpu/core reset
Explicitly guarantee 8md256 clk is enabled before calibration
2022-10-12 12:41:50 +08:00
xiongweichao
9f5ff9fddf Fixed deadlock due to wrong parameter when calling btc_transfer_context() after calling esp_bluedroid_disable()
Closes https://github.com/espressif/esp-idf/issues/9672
2022-10-10 09:31:47 +00:00
tgotic
5d3af603a6 update code to use osi_free() 2022-10-10 09:31:47 +00:00
tgotic
01ac97732d local copy of btc_msg_t
No need to use local copy of btc_msg_t in btc_transfer_context, create it on heap and pass to osi_thread_post().
2022-10-10 09:31:47 +00:00
chenjianhua
ed24da98eb bluedroid: configurable max gattc cache characteristic count 2022-10-09 15:31:11 +08:00
chenjianhua
b904278330 fix ble adv tx power map 2022-10-09 15:28:39 +08:00
chenjianhua
7a324e2984 bluedroid: fix ble rpa generate and update by host 2022-10-09 15:28:39 +08:00
chenjianhua
0446de4429 Revert "component/bt: add local irk to controller"
This reverts commit 032f6d34d1.
2022-10-09 15:28:39 +08:00
chenjianhua
fb20a1be8e Revert "Fixed ESP32 BLE can't resolve the peer address when enable white list"
This reverts commit 192aa18c31.
2022-10-09 15:28:39 +08:00
chenjianhua
e5a195fc2c Bluedroid: Configurable option to modify max gatt service attributes count 2022-10-09 15:28:39 +08:00
cje
5e5b8c16cb fix C3 system not stable bug when dbias storing in efuse is bigger than 27 2022-10-08 11:48:47 +08:00
Euripedes Rocha
ec3381f043 [mqtt] Fix esp_mqtt_client_enqueue for len=0
27eb4726067465c5c67d4ecdca5ddccd26f02580..60983d1dd54196b1e3f399c6f928d77256ec742a

Detailed description of the changes:
* [Backport] mqtt_client: fix esp_mqtt_client_enqueue for len=0
  - See merge request espressif/esp-mqtt!144
  - mqtt_client: fix esp_mqtt_client_enqueue for len=0
    (espressif/esp-mqtt@e918742)
2022-10-04 05:14:13 +00:00
Jiang Jiang Jian
9e863ecdb8 Merge branch 'bugfix/fix_some_ble_bugs_on_esp32c3_v4.3' into 'release/v4.3'
Fixed some BLE controller bugs on ESP32-C3 (backport v4.3)

See merge request espressif/esp-idf!19990
2022-09-29 13:59:20 +08:00
Jiang Jiang Jian
07bffab8d4 Merge branch 'feature/sink_support_mono_v4.3' into 'release/v4.3'
bt: Fixed sink not being able to output mono audio because it can only decode dual channel audio data(v4.3)

See merge request espressif/esp-idf!20079
2022-09-29 11:40:01 +08:00
Jiang Jiang Jian
a5e5ab7b1b Merge branch 'bugfix/acl_buf_ocf_and_conn_fail_v4.3' into 'release/v4.3'
bugfix/fixed the exhaustion of ACL buffer and duplicated connection requests (v4.3)

See merge request espressif/esp-idf!20385
2022-09-29 11:37:57 +08:00
Jin Cheng
f2000d8925 fixed the issue iOS devices cannot initiate connection
to ESP32 while there is a BLE connection to this ESP32

Closes https://github.com/espressif/esp-idf/issues/6557
2022-09-28 16:12:11 +08:00
morris
c930046693 Merge branch 'doc/usj_sw_reset_alive_bbpll_doc_v4.3' into 'release/v4.3'
usb_serial_jtag: fixed the docs that we can use usj in sleep modes (v4.3)

See merge request espressif/esp-idf!20294
2022-09-28 11:50:08 +08:00
Jin Cheng
9a953f7740 fixed the exhaustion of ACL buffer
fixed the duplication of connection request from the same device
2022-09-28 10:16:24 +08:00
zwj
f635a2f2a1 fix calling esp_ble_get_cur_sendable_packets_num() sometimes crashes when bluetooth is disconnecting 2022-09-27 21:38:11 +08:00
zwj
157acb3086 Fixed extend adv tx power range error 2022-09-27 21:37:04 +08:00
cjin
ebb23ff4fe fix err using rpa for confirmation calculation 2022-09-27 21:35:49 +08:00
cjin
78a08e9ca7 fix on data len change cmd malfunction 2022-09-27 21:35:33 +08:00
zwj
d826f8ae34 Update ESP32-C3 BLE lib
- Fixed the usage of PLL track related baseband IRQs
- Fixed connect failed due to error sync found signal
- Fixed BLE disconnect failed due to terminate_ind have sent but no ACK is received
- Added ADV mode error check in ADV rx isr handler function
- Fixed BLE RAL_UNDERRUN and TX_CRYPT_ERR assert
- Disable scan continue
- Fixed scan forever if scan continue is disable
- Fixed BLE disconnection issue when channel map update failed due to bad channels
2022-09-27 20:55:19 +08:00
zwj
05c8753eaa Fixed extend adv set remove failed 2022-09-27 20:55:19 +08:00
Yuan Jian Min
3a92e82e97 esp-tls: socket will be set to -1 and will not be closed 2022-09-26 19:25:27 +08:00
Jiang Jiang Jian
aefd3db87d Merge branch 'bugfix/fix_set_country_code_before_wifi_start_issue_v4.3' into 'release/v4.3'
Bugfix/fix set country code before wifi start issue v4.3(Backport v4.3)

See merge request espressif/esp-idf!20106
2022-09-23 17:56:12 +08:00
Mahavir Jain
8034c03106 Merge branch 'update_expat_R_2_4_8_v4.3' into 'release/v4.3'
expat: Update expat library to R_2_4_8 release (v4.3)

See merge request espressif/esp-idf!20284
2022-09-22 21:25:47 +08:00
Michael (XIAO Xufeng)
e28bb4b9c4 usb_serial_jtag: fixed the docs that we can use usj in sleep modes
Related to: https://github.com/espressif/esp-idf/issues/8507, https://github.com/espressif/esp-idf/issues/8884
2022-09-22 17:39:15 +08:00
Island
eb922b57a3 Merge branch 'bugfix/relay_friend_cred_message_v4.3' into 'release/v4.3'
ble_mesh: stack: Fix friend relay lpn message when relay disable(v4.3)

See merge request espressif/esp-idf!20205
2022-09-22 14:17:40 +08:00
Jiang Jiang Jian
8ed3ec79cf Merge branch 'bugfix/fix_xtal32k_error_detect_backport_v4.3' into 'release/v4.3'
esp_hw_support/clk_cali: fix xtal32k error detect(backport v4.3)

See merge request espressif/esp-idf!20277
2022-09-22 14:04:44 +08:00
morris
1ecf62bf14 Merge branch 'bugfix/fix_spi_bus_lock_concurrency_issue_v4.3' into 'release/v4.3'
spi_bus_lock: fix a concurrency issue (v4.3)

See merge request espressif/esp-idf!20139
2022-09-22 13:34:00 +08:00
Harshit Malpani
f310113c91
expat: Update expat library to R_2_4_8 release
Detailed changelog: https://github.com/libexpat/libexpat/blob/R_2_4_8/expat/Changes
2022-09-22 10:04:59 +05:30
jingli
b85e5627d3 esp_hw_support/clk_cali: remove redundant check for cali value 2022-09-21 16:30:17 +08:00
jingli
07d69b7cae esp_hw_support/clk_cali: fix xtal32k error detect 2022-09-21 16:29:36 +08:00
morris
179d12db47 Merge branch 'bugfix/fix_ledc_timer_update_usage_v4.3' into 'release/v4.3'
ledc: Fix the usage of ledc_ls_timer_update and ledc_timer_rst (backport v4.3)

See merge request espressif/esp-idf!20243
2022-09-21 15:00:37 +08:00
Michael (XIAO Xufeng)
02c45b6e52 Merge branch 'bugfix/spi_hd_quad_issue_4.3' into 'release/v4.3'
SPI : fix wrong dummy cycle on quad mode and put get-command function in spi_ll.h(backport v4.3)

See merge request espressif/esp-idf!19836
2022-09-21 12:10:23 +08:00
wangjialiang
e54506ceaa ble_mesh: stack: Fix friend relay lpn message when relay disable. 2022-09-21 03:36:36 +00:00
Island
894b1ad79d Merge branch 'bugfix/lpn_not_recv_message_to_all_node_4.3' into 'release/v4.3'
ble_mesh: stack: Add option for lpn auto sub all-nodes(v4.3)

See merge request espressif/esp-idf!20263
2022-09-21 11:31:39 +08:00
wangjialiang
7e2ebcde7a ble_mesh: stack: Add option for lpn auto sub all-nodes. 2022-09-20 20:31:37 +08:00
Song Ruo Jing
4cd54d6e32 ledc: Fix the usage of ledc_ls_timer_update and ledc_timer_rst
ledc_ls_timer_update is required only when CLK_DIV and DUTY_RES bits are changed.
Calling ledc_timer_rst while re-configure PWM frequency through ledc_set_freq can cause glitch in the signal
2022-09-20 12:04:13 +08:00
Michael (XIAO Xufeng)
5666813ce0 Merge branch 'bugfix/driver_rs485_fix_test_sync_issues_v43' into 'release/v4.3'
driver: uart rs485 fix test sync issues and fail threshold (backport v4.3)

See merge request espressif/esp-idf!19611
2022-09-19 16:16:01 +08:00
Alex Lisitsyn
ec7bab9b19 driver: uart rs485 fix test sync issues and fail threshold (backport v4.3) 2022-09-19 16:16:00 +08:00
xueyunfei
f1b8861f2b esp_wifi:add clear ap list interface 2022-09-19 15:52:06 +08:00