diff options
author | David S. Miller <davem@davemloft.net> | 2018-02-15 15:43:49 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-15 15:43:49 -0500 |
commit | 35ed663f5f4f70dd750ea3e0166c5b90db9feea3 (patch) | |
tree | 2cc217538ab719f62195181a7e67155605ed8e61 /net/bluetooth | |
parent | ddd0010392d9cbcb95b53d11b7cafc67b373ab56 (diff) | |
parent | 907f84990924bf3a8d248c040dabeb5127ae6938 (diff) |
Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
Johan Hedberg says:
====================
pull request: bluetooth-next 2018-02-15
Here's the first bluetooth-next pull request targetting the 4.17 kernel
release.
- Fixes & cleanups to Atheros and Marvell drivers
- Support for two new Realtek controllers
- Support for new Intel Bluetooth controller
- Fix for supporting multiple slave-role Bluetooth LE connections
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_request.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c index 3394e6791673..66c0781773df 100644 --- a/net/bluetooth/hci_request.c +++ b/net/bluetooth/hci_request.c | |||
@@ -934,8 +934,8 @@ static bool is_advertising_allowed(struct hci_dev *hdev, bool connectable) | |||
934 | /* Slave connection state and connectable mode bit 38 | 934 | /* Slave connection state and connectable mode bit 38 |
935 | * and scannable bit 21. | 935 | * and scannable bit 21. |
936 | */ | 936 | */ |
937 | if (connectable && (!(hdev->le_states[4] & 0x01) || | 937 | if (connectable && (!(hdev->le_states[4] & 0x40) || |
938 | !(hdev->le_states[2] & 0x40))) | 938 | !(hdev->le_states[2] & 0x20))) |
939 | return false; | 939 | return false; |
940 | } | 940 | } |
941 | 941 | ||
@@ -948,7 +948,7 @@ static bool is_advertising_allowed(struct hci_dev *hdev, bool connectable) | |||
948 | /* Master connection state and connectable mode bit 35 and | 948 | /* Master connection state and connectable mode bit 35 and |
949 | * scannable 19. | 949 | * scannable 19. |
950 | */ | 950 | */ |
951 | if (connectable && (!(hdev->le_states[4] & 0x10) || | 951 | if (connectable && (!(hdev->le_states[4] & 0x08) || |
952 | !(hdev->le_states[2] & 0x08))) | 952 | !(hdev->le_states[2] & 0x08))) |
953 | return false; | 953 | return false; |
954 | } | 954 | } |