Bluetooth: Use bt_status to convert from errno

If a command cannot be sent or there is a internal error an errno maybe
set instead of a command status.
Signed-off-by: default avatarLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
parent ca2045e0
......@@ -950,7 +950,7 @@ static void create_le_conn_complete(struct hci_dev *hdev, void *data, int err)
if (conn != hci_lookup_le_connect(hdev))
goto done;
hci_conn_failed(conn, err);
hci_conn_failed(conn, bt_status(err));
done:
hci_dev_unlock(hdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment