Darian Leung
6358f93a51
freertos: Fix event group task list race condition
...
FreeRTOS synchronization primitives (e.g., queues, eventgroups) use various event lists (i.e., task lists) to track what
tasks are blocked on a current primitive. Usually these event lists are accessed via one of the event lists functions
(such as vTask[PlaceOn|RemoveFrom]UnorderedEventList()), which in turn ensure that the global task list spinlock
(xTaskQueueMutex) is taken when accessing these lists.
However, some functions in event_groups.c manually traverse their event lists. Thus if a tick interrupt occurs on
another core during traversal and that tick interrupt unblocks a task on the event list being traversed, the event list
will be corrupted.
This commit modifies the following event_groups.c functions so that they take the global task list lock before
traversing their event list.
- xEventGroupSetBits()
- vEventGroupDelete()
2022-09-19 15:14:24 +08:00
Island
0bb4b995be
Merge branch 'bugfix/adapt_new_btc_v4.1' into 'release/v4.1'
...
ble_mesh: stack: Corrected parameter size when the btc_transfer_context is used (v4.1)
See merge request espressif/esp-idf!20169
2022-09-18 14:36:02 +08:00
wangjialiang
6160cedbdc
ble_mesh: stack: added the judgment that the parameter is NULL but the parameter len is not zero to avoid btc_transfer_context failed
2022-09-15 17:03:22 +08:00
Jiang Jiang Jian
b4878a0f09
Merge branch 'bugfix/stack_init_changes_v4.1' into 'release/v4.1'
...
Nimble: Check stack initialization status before executing stack command (v4.1)
See merge request espressif/esp-idf!19946
2022-09-14 16:13:32 +08:00
Jiang Jiang Jian
61bd396b39
Merge branch 'feature/sink_support_mono_v4.1' into 'release/v4.1'
...
bt: Fixed sink not being able to output mono audio because it can only decode dual channel audio data(v4.1)
See merge request espressif/esp-idf!20081
2022-09-14 16:12:39 +08:00
xiongweichao
c2411837d1
bt:Fixed sink not being able to output mono audio because it can only decode dual channel audio data
2022-09-09 17:49:00 +08:00
Wang Meng Yang
771e1cb020
Merge branch 'bugfix/remove_bt_dft_init_semicolon_v41' into 'release/v4.1'
...
bt: Remove trailing semicolon from bt dft initializer(v4.1)
See merge request espressif/esp-idf!19918
2022-09-07 12:00:48 +08:00
Wang Meng Yang
0441c575a8
Merge branch 'bugfix/deadlock_after_call_esp_bluedroid_disable_v4.1' into 'release/v4.1'
...
bt:Fixed deadlock due to wrong parameter when calling btc_transfer_context() after calling esp_bluedroid_disable()(v4.1)
See merge request espressif/esp-idf!19955
2022-09-07 11:56:12 +08:00
Rahul Tank
0c7f0058f2
Nimble: Check stack initialization status before executing stack command
2022-09-06 10:15:42 +05:30
xiongweichao
2df7bcbe0f
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-09-05 14:31:10 +08:00
Pedro
62f89a3303
Remove trailing semicolon from bt dft initializer
...
Similar to espressif#6554
2022-09-02 11:16:52 +08:00
Island
94dddbd985
Merge branch 'bugfix/vendor_model_send_message_no_memory_forv4.1' into 'release/v4.1'
...
ble_mesh:example: free the memory of malloc (v4.1)
See merge request espressif/esp-idf!19188
2022-08-25 14:14:25 +08:00
Wang Meng Yang
7332be209c
Merge branch 'bugfix/hfp_examples_not_work_with_default_sdkconfig_v4.1' into 'release/v4.1'
...
bugfix/set default number of sco connection to 1 (v4.1)
See merge request espressif/esp-idf!19588
2022-08-25 10:47:10 +08:00
Wang Meng Yang
465bd86073
Merge branch 'contrib/github_pr_9529_mr_v4.1' into 'release/v4.1'
...
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.1)
See merge request espressif/esp-idf!19695
2022-08-25 10:45:46 +08:00
Island
bd549729d2
Merge branch 'bugfix/ble_mesh_console_support_nimble_host_for_v4.1' into 'release/v4.1'
...
ble_mesh:ble mesh console support nimble(v4.1)
See merge request espressif/esp-idf!19607
2022-08-24 10:27:57 +08:00
Fu Hanxi
d602bf0416
Merge branch 'feat/make_property_idf_component_manager_root_level_v4.1' into 'release/v4.1'
...
Feat/make property idf component manager root level (v4.1)
See merge request espressif/esp-idf!19085
2022-08-23 13:16:29 +08:00
tgotic
ccb8b03ca5
update code to use osi_free()
2022-08-22 16:10:25 +08:00
tgotic
71c8b2ba80
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-08-22 16:10:25 +08:00
Yuan Hong Hui
614950cf4a
ble_mesh:ble mesh console support nimble
2022-08-17 14:42:52 +08:00
jincheng
190b864206
Fixed the failure of 'connect audio' operation in HFP examples with default SDK configuration
...
Due to the lack of synchronized connections, the hf_client can not create audio_connection to
hf_ag. Set default number of synchronized connection to 1.
Closes https://github.com/espressif/esp-idf/issues/9537
2022-08-17 10:15:54 +08:00
Roland Dobai
7c0f5e658e
Merge branch 'feature/oocd_ver_upgrade_v4.1' into 'release/v4.1'
...
tools: Updates OpenOCD version to 'v0.11.0-esp32-20220706' (v4.1)
See merge request espressif/esp-idf!19493
2022-08-17 01:57:40 +08:00
Jiang Jiang Jian
e072b09196
Merge branch 'bugfix/fix_bluedroid_host_memory_overflow_v4.1' into 'release/v4.1'
...
Fixed bluedroid host memory overflow for v4.1
See merge request espressif/esp-idf!18906
2022-08-16 17:48:11 +08:00
Alexey Gerenkov
af87ee2888
test/examples: Fixes expected GDB message upon thread hit breakpoint
2022-08-16 11:33:20 +03:00
Alexey Gerenkov
0f39eaa4ad
tools: Updates OpenOCD version to 'v0.11.0-esp32-20220706'
2022-08-12 14:14:53 +03:00
Island
0af44e73a4
Merge branch 'bugfix/mesh_bqb_test_issues_v4.1' into 'release/v4.1'
...
ble_mesh: stack: Fix mesh v1.0 BQB test issues(v4.1)
See merge request espressif/esp-idf!19505
2022-08-11 20:09:45 +08:00
wangjialiang
e446ee2ea2
ble_mesh: stack: Fix kr from non-primary subnet shouldn't ignore
...
For case MESH/NODE/KR/BV-02-C
2022-08-11 14:19:20 +08:00
wangjialiang
6b3c88873e
ble_mesh: stack: Add a check if the appkey is bound to the model.
...
For case MESH/NODE/CFG/MP/BI-03-C
2022-08-11 14:19:15 +08:00
wangjialiang
a53ebdf8a3
ble_mesh: stack: the count_log field should be set to 0 when HBS is sent.
...
For MESH/NODE/CFG/HBS/BV-02-C
2022-08-11 14:19:09 +08:00
wangjialiang
8a1325dab8
ble_mesh: stack: The Heartbeat Publication Period Log value can set to 0x11, range: [0, 0x11]
2022-08-11 14:19:04 +08:00
wangjialiang
d3f6770665
ble_mesh: stack: The value of expect_ack_for will be rewrited after send_pub_key().
...
For case MESH/PVNR/PROV/BV-04-C
2022-08-11 14:18:58 +08:00
wangjialiang
0a39d9e154
ble_mesh: stack: Fix ignore connectable PB-ADV PDU containing a Link Open message.
...
For case MESH/NODE/PBADV/BI-04-C
2022-08-11 14:18:54 +08:00
wangjialiang
9f073021da
ble_mesh: stack: Fix PB-GATT not check invalid link flag
...
For case MESH/NODE/PROV/BI-03-C
2022-08-11 14:18:48 +08:00
wangjialiang
96ecfa677e
ble_mesh: stack: Fix invalid provisioning pdu type check
...
For case MESH/NODE/PROV/BI-15-C
2022-08-11 14:18:43 +08:00
Island
b91556fbcf
Merge branch 'bugfix/friend_and_lpn_issues_v4.1' into 'release/v4.1'
...
ble_mesh: stack: Fix friend and lpn issues(v4.1)
See merge request espressif/esp-idf!19478
2022-08-10 13:50:24 +08:00
wangjialiang
3fa1f36fbc
ble_mesh: stack: Fix add continuously secure update into friend queue.
...
For MESH/NODE/FRND/FN/BV-20-C
2022-08-09 21:51:39 +08:00
wangjialiang
d024b4aafa
ble_mesh: stack: Fix friend relay lpn message when relay feature is disable
...
For MESH/NODE/FRND/FN/BV-23-C
2022-08-09 21:51:31 +08:00
Island
5cd0893407
Merge branch 'bugfix/restore_missing_ble_mesh_videos_v4.1' into 'release/v4.1'
...
ble_mesh: doc: Restore missing ble mesh videos(v4.1)
See merge request espressif/esp-idf!19406
2022-08-08 17:12:13 +08:00
wangjialiang
280f577a64
ble_mesh: doc: Restore missing ble mesh videos
2022-08-05 13:59:14 +08:00
Jiang Jiang Jian
377a5d78db
Merge branch 'bugfix/espnow_recv_unencrypted_packets_issue_v4.1' into 'release/v4.1'
...
esp_wifi: fix espnow recv unencrypted packets issue (backport v4.1)
See merge request espressif/esp-idf!19386
2022-08-05 12:11:07 +08:00
Jiang Jiang Jian
da82c4f804
Merge branch 'bugfix/wlan_fixes_backports_v4.1' into 'release/v4.1'
...
esp_wifi: Fix some wlan issues(backport v4.1)
See merge request espressif/esp-idf!19363
2022-08-04 21:45:17 +08:00
zhangyanjiao
9c6d54b9f6
esp_wifi: fix espnow recv unencrypted packets issue
2022-08-04 15:10:22 +08:00
Jiang Jiang Jian
fcd4b930ee
Merge branch 'bugfix/backport_wifi_bugs_to_4.1_0803' into 'release/v4.1'
...
esp wifi:bugfix for backport wifi bugs to 4.1
See merge request espressif/esp-idf!19360
2022-08-04 10:55:49 +08:00
Kapil Gupta
941d79baa2
wpa_supplicant: Unicast key renew in TKIP mic failure
...
Currently we always request group key renew for during
TKIP mic failure. Add support for unicast/multicast
key renew as per packet.
2022-08-03 14:52:43 +05:30
Kapil Gupta
78f88c1e01
esp_wifi: Changes to not use pmkid caching when SSID is changed
2022-08-03 14:52:13 +05:30
Kapil Gupta
a5e418b4b6
wpa_supplicant: Fix issues reported by coverity
2022-08-03 14:51:53 +05:30
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
Jiang Jiang Jian
581880db04
Merge branch 'bugfix/fix_write_to_null_pointer_if_malloc_failed_issue_v4.1' into 'release/v4.1'
...
fix write to null pointer if malloc failed(Backport v4.1)
See merge request espressif/esp-idf!19349
2022-08-03 11:00:33 +08:00
Jiang Jiang Jian
f1d5b56d34
Merge branch 'bugfix/set_ipv6_dns_error_v4.1' into 'release/v4.1'
...
lw ip: Fixed that ipv6 dns cannot work (v4.1)
See merge request espressif/esp-idf!19065
2022-08-02 20:21:52 +08:00
Oleg Savchenko
53351fc7f4
fix write to null pointer if malloc failed
2022-08-02 20:20:14 +08:00