Bluetooth: Refactor l2cap into two protocols l2cap and bluetooth

This commits splits the address handling into bluetooth protocol and
does the rest in l2cap. This is to allow for a different struct for sco
and l2cap.

Change-Id: I4c577691118613cd3be75eb7ef191fd2f07d742d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/11181
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
vighnesh-sawant
2026-07-15 21:21:12 +00:00
committed by waddlesplash
parent 91994efedd
commit 94deadca17
21 changed files with 555 additions and 393 deletions
+18
View File
@@ -0,0 +1,18 @@
/*
* Copyright 2007 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef _BTSCO_H_
#define _BTSCO_H_
#include <bluetooth/bluetooth.h>
struct sockaddr_sco {
uint8 sco_len; /* total length */
uint8 sco_family; /* address family */
bdaddr_t sco_bdaddr; /* address */
};
#endif // _BTSCO_H_
+1
View File
@@ -6,6 +6,7 @@
#define _BTMODULES_H
#define NET_BLUETOOTH_CORE_NAME "network/protocols/bluetooth/v1"
#define NET_BLUETOOTH_L2CAP_NAME "network/protocols/l2cap/v1"
#endif // _BCOREDATA_H