Skip to content
Commit c574d6de authored by Johan Hedberg's avatar Johan Hedberg Committed by Anas Nashif
Browse files

Bluetooth: Fix cmd_status handling for status == 0



For commands that generate an intermediate zero status (e.g.
HCI_LE_Create_Connection) we should allow for successful
bt_cmd_send_sync() completion at this point. Since the code treats a
NULL return buffer as failure we must provide an actual buffer to
indicate success. There's not really any useful information in the buf
for a cmd_status but passing it to the caller lets us notify of the
successful completion.

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