[PATCH 1/3] Bluetooth: btqcomipc: keep the dot in split firmware segment names
From: Andrei-Alexandru Bleortu
Date: Sun Oct 11 2026 - 18:10:36 EST
The segment files of a split image are named <stem>.bNN, as
qcom_mdt_loader expects, but the stem excludes the dot, so the driver
asked for qca/bt_fw_patchb02 instead of qca/bt_fw_patch.b02 and failed
to load any firmware split across segment files.
Assisted-by: LLM
Signed-off-by: Andrei-Alexandru Bleortu <me@xxxxxxxxxxxx>
---
drivers/bluetooth/btqcomipc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bluetooth/btqcomipc.c b/drivers/bluetooth/btqcomipc.c
index 9e56d1c8e..21dd3e812 100644
--- a/drivers/bluetooth/btqcomipc.c
+++ b/drivers/bluetooth/btqcomipc.c
@@ -847,7 +847,7 @@ static int btcomqipc_firmware_load(struct qcom_btss *desc)
/* Check if firmware is split across multiple segment files */
if (phdr->p_offset > fw->size ||
phdr->p_filesz > fw->size - phdr->p_offset) {
- seg_name = kasprintf(GFP_KERNEL, "%.*sb%02d",
+ seg_name = kasprintf(GFP_KERNEL, "%.*s.b%02d",
(int)stem_len, desc->firmware, i);
if (!seg_name) {
ret = -ENOMEM;