Skip to content

Commit f6685a9

Browse files
arkqVudentz
authored andcommitted
Bluetooth: hci_event: Fix connection regression between LE and non-LE adapters
Due to a typo during defining HCI errors it is not possible to connect LE-capable device with BR/EDR only adapter. The connection is terminated by the LE adapter because the invalid LL params error code is treated as unsupported remote feature. Fixes: 79c0868 ("Bluetooth: hci_event: Use HCI error defines instead of magic values") Signed-off-by: Arkadiusz Bokowy <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 72d061e commit f6685a9

File tree

1 file changed

+1
-1
lines changed
  • include/net/bluetooth

1 file changed

+1
-1
lines changed

include/net/bluetooth/hci.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ enum {
683683
#define HCI_ERROR_REMOTE_POWER_OFF 0x15
684684
#define HCI_ERROR_LOCAL_HOST_TERM 0x16
685685
#define HCI_ERROR_PAIRING_NOT_ALLOWED 0x18
686-
#define HCI_ERROR_UNSUPPORTED_REMOTE_FEATURE 0x1e
686+
#define HCI_ERROR_UNSUPPORTED_REMOTE_FEATURE 0x1a
687687
#define HCI_ERROR_INVALID_LL_PARAMS 0x1e
688688
#define HCI_ERROR_UNSPECIFIED 0x1f
689689
#define HCI_ERROR_ADVERTISING_TIMEOUT 0x3c

0 commit comments

Comments
 (0)