wireless/bluetooth: Adds most of the logic to get the Tx path working. Still missing the logic to recover the Bluetooth connection structure given the destination address in the socket address.

This commit is contained in:
Gregory Nutt
2018-04-01 14:00:40 -06:00
parent 29a4a80f8c
commit 7e05d5e9c7
10 changed files with 52 additions and 52 deletions
+1 -1
View File
@@ -52,7 +52,7 @@
#warning REVISIT
#define BLUETOOTH_HDRLEN 0
#define BLUETOOTH_HDRLEN 8 /* Size of L2CAP header */
#define BLUETOOTH_ADDRSIZE 6
#define BLUETOOTH_ADDRCOPY(d,s) memcpy((d),(s),BLUETOOTH_ADDRSIZE)
#define BLUETOOTH_ADDRCMP(a,b) (memcmp((a),(b),BLUETOOTH_ADDRSIZE) == 0)
+7
View File
@@ -103,6 +103,8 @@ struct bt_buf_acl_data_s
uint16_t handle;
};
struct iob_s; /* Forward reference */
struct bt_buf_s
{
FAR struct bt_buf_s *flink;
@@ -147,6 +149,8 @@ struct bt_buf_s
*
* Input Parameters:
* type - Buffer type.
* iob - The raw I/O buffer. If NULL, then bt_buf_alloc will
* allocate.
* reserve_head - How much headroom to reserve.
*
* Returned Value:
@@ -156,7 +160,10 @@ struct bt_buf_s
*
****************************************************************************/
struct iob_s; /* Forward reference */
FAR struct bt_buf_s *bt_buf_alloc(enum bt_buf_type_e type,
FAR struct iob_s *iob,
size_t reserve_head);
/****************************************************************************