diff mbox series

[BlueZ] Fix data type in bt_hci_send_data

Message ID 72fe471.4f65.19583bc77c9.Coremail.kx960506@163.com (mailing list archive)
State New
Headers show
Series [BlueZ] Fix data type in bt_hci_send_data | expand

Checks

Context Check Description
tedd_an/pre-ci_am fail error: corrupt patch at line 14 hint: Use 'git am --show-current-patch' to see the failed patch

Commit Message

michael_kong March 11, 2025, 5:45 a.m. UTC
The data type in bt_hci_send_data shall be ACL, SCO or ISO. This fixes cannot send ISO data in client/hci menu.


---
 src/shared/hci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


-- 
2.25.1

Comments

bluez.test.bot@gmail.com March 11, 2025, 6:23 a.m. UTC | #1
This is an automated email and please do not reply to this email.

Dear Submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.

----- Output -----

error: corrupt patch at line 14
hint: Use 'git am --show-current-patch' to see the failed patch

Please resolve the issue and submit the patches again.


---
Regards,
Linux Bluetooth
michael_kong March 11, 2025, 7:15 a.m. UTC | #2
From 44412287c2a00792d4c0fc2c36ee2514d7a3a71f Mon Sep 17 00:00:00 2001
From: michael_kong <michael_kong@realsil.com.cn>
Date: Tue, 11 Mar 2025 11:05:13 +0800
Subject: [PATCH] share/hci: Fix data type in bt_hci_send_data


The data type in bt_hci_send_data shall be ACL, SCO or ISO.
---
 src/shared/hci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


diff --git a/src/shared/hci.c b/src/shared/hci.c
index 07fdffc82..575254c09 100644
--- a/src/shared/hci.c
+++ b/src/shared/hci.c
@@ -620,7 +620,7 @@ bool bt_hci_send_data(struct bt_hci *hci, uint8_t type, uint16_t handle,
 	switch (type) {
 	case BT_H4_ACL_PKT:
 	case BT_H4_SCO_PKT:
-	case BT_H4_EVT_PKT:
+	case BT_H4_ISO_PKT:
 		break;
 	default:
 		return false;
-- 
2.25.1
diff mbox series

Patch

diff --git a/src/shared/hci.c b/src/shared/hci.c
index 07fdffc82..575254c09 100644
--- a/src/shared/hci.c
+++ b/src/shared/hci.c
@@ -620,7 +620,7 @@  bool bt_hci_send_data(struct bt_hci *hci, uint8_t type, uint16_t handle,
 	switch (type) {
 	case BT_H4_ACL_PKT:
 	case BT_H4_SCO_PKT:
-	case BT_H4_EVT_PKT:
+	case BT_H4_ISO_PKT:
 		break;
 	default:
 		return false;