Skip to content

Commit 248cae4

Browse files
authored
patch(ble): Add patch to fix WiFiProvisiong on ESP32C6 (espressif#197)
* patch(ble): Add patch to fix WiFiProvisiong on ESP32C6 * fix(): Diff formatting * fix(): Fix patches dir when IDF is not inside lib_builder
1 parent a685764 commit 248cae4

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed
Lines changed: 12 additions & 0 deletions
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/config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ AR_COMPS="$AR_ROOT/components"
4545
AR_MANAGED_COMPS="$AR_ROOT/managed_components"
4646
AR_OUT="$AR_ROOT/out"
4747
AR_TOOLS="$AR_OUT/tools"
48+
AR_PATCHES="$AR_ROOT/patches"
4849
AR_PLATFORM_TXT="$AR_OUT/platform.txt"
4950
AR_GEN_PART_PY="$AR_TOOLS/gen_esp32part.py"
5051
AR_SDK="$AR_TOOLS/esp32-arduino-libs/$IDF_TARGET"

tools/install-esp-idf.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ if [ ! -x $idf_was_installed ] || [ ! -x $commit_predefined ]; then
3737

3838
# Temporarily patch the ESP32-S2 I2C LL driver to keep the clock source
3939
cd $IDF_PATH
40-
patch -p1 -N -i ../patches/esp32s2_i2c_ll_master_init.diff
41-
patch -p1 -N -i ../patches/mmu_map.diff
42-
patch -p1 -N -i ../patches/lwip_max_tcp_pcb.diff
40+
patch -p1 -N -i $AR_PATCHES/esp32s2_i2c_ll_master_init.diff
41+
patch -p1 -N -i $AR_PATCHES/mmu_map.diff
42+
patch -p1 -N -i $AR_PATCHES/lwip_max_tcp_pcb.diff
43+
patch -p1 -N -i $AR_PATCHES/esp32c6_provisioning_bluedroid.diff
4344
cd -
4445
fi
4546

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy