Commit a86ddbff authored by Luiz Augusto von Dentz's avatar Luiz Augusto von Dentz
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);