Skip to content
Commit b530b261 authored by Johan Hedberg's avatar Johan Hedberg Committed by Dan Kalowsky
Browse files

Bluetooth: Host: Introduce bt_hci_cmd_alloc()



Introduce a new bt_hci_cmd_alloc() API which only allocates a command
buffer and reserves sufficient headroom for H:4 and command headers, but
doesn't actually encode any of those headers into the buffer. Additionally,
modify bt_hci_cmd_send() and bt_hci_cmd_send_sync() so that they handle
such buffers and perform the header encoding correctly. To avoid
duplication, bt_hci_cmd_send_sync() now builds upon (i.e. calls internally)
the bt_hci_cmd_send() API.

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@silabs.com>
parent 892ac07a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment