Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 971f76c

Browse files
committedJul 31, 2024·
patch(ble): Add patch to fix WiFiProvisiong on ESP32C6
1 parent a685764 commit 971f76c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/components/protocomm/src/simple_ble/simple_ble.c b/components/protocomm/src/simple_ble/simple_ble.c
2+
index 8a4ae0f3d9..cd6421c6e5 100644
3+
--- a/components/protocomm/src/simple_ble/simple_ble.c
4+
+++ b/components/protocomm/src/simple_ble/simple_ble.c
5+
@@ -225,7 +225,7 @@ esp_err_t simple_ble_start(simple_ble_cfg_t *cfg)
6+
#ifdef CONFIG_BTDM_CTRL_MODE_BTDM
7+
ret = esp_bt_controller_enable(ESP_BT_MODE_BTDM);
8+
-#elif defined CONFIG_BTDM_CTRL_MODE_BLE_ONLY || CONFIG_BT_CTRL_MODE_EFF
9+
+#elif defined CONFIG_BTDM_CTRL_MODE_BLE_ONLY || CONFIG_BT_CTRL_MODE_EFF || CONFIG_IDF_TARGET_ESP32C6
10+
ret = esp_bt_controller_enable(ESP_BT_MODE_BLE);
11+
#else
12+
ESP_LOGE(TAG, "Configuration mismatch. Select BLE Only or BTDM mode from menuconfig");

‎tools/install-esp-idf.sh

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ if [ ! -x $idf_was_installed ] || [ ! -x $commit_predefined ]; then
4040
patch -p1 -N -i ../patches/esp32s2_i2c_ll_master_init.diff
4141
patch -p1 -N -i ../patches/mmu_map.diff
4242
patch -p1 -N -i ../patches/lwip_max_tcp_pcb.diff
43+
patch -p1 -N -i ../patches/esp32c6_provisioning_bluedroid.diff
4344
cd -
4445
fi
4546

0 commit comments

Comments
 (0)
Please sign in to comment.