linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH BlueZ] Fix data type in bt_hci_send_data
@ 2025-03-11  5:45 Michael Kong
  2025-03-11  6:23 ` [BlueZ] " bluez.test.bot
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Kong @ 2025-03-11  5:45 UTC (permalink / raw)
  To: linux-bluetooth


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(-)


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




^ permalink raw reply related	[flat|nested] 4+ messages in thread
* [PATCH BlueZ] Fix data type in bt_hci_send_data
@ 2025-03-11  1:54 Michael Kong(孔鑫)
  2025-03-11  2:42 ` [BlueZ] " bluez.test.bot
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Kong(孔鑫) @ 2025-03-11  1:54 UTC (permalink / raw)
  To: linux-bluetooth@vger.kernel.org

The data type in bt_hci_send_data shall be ACL, SCO or ISO. This fix cannot send ISO data in client/hci menu.

---
 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


Best regards,
Michael_kong@realsil.com.cn

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-11  7:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-11  5:45 [PATCH BlueZ] Fix data type in bt_hci_send_data Michael Kong
2025-03-11  6:23 ` [BlueZ] " bluez.test.bot
2025-03-11  7:15   ` Michael Kong
  -- strict thread matches above, loose matches on Subject: below --
2025-03-11  1:54 [PATCH BlueZ] " Michael Kong(孔鑫)
2025-03-11  2:42 ` [BlueZ] " bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).