Skip to content
Commit c1ae16ad authored by Johan Hedberg's avatar Johan Hedberg
Browse files

Bluetooth: Use bt_hci_cmd_send_sync in set_ad to catch errors



Using send_sync lets us return an immediate error to the application
if the HCI command fails. This also reduces the pressure on available
buffers since we don't allocate multiple command buffers before
starting to process the command queue.

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