aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorAbhishek Pandit-Subedi <[email protected]>2020-06-17 14:39:10 +0000
committerJohan Hedberg <[email protected]>2020-06-18 10:11:13 +0000
commita1fc7535ec34a5904abe93dd42a6ed7e31c36717 (patch)
tree78ee78476c4492a57423a917e0806580381de484 /net/bluetooth/hci_request.c
parentBluetooth: Replace wakeable list with flag (diff)
downloadkernel-a1fc7535ec34a5904abe93dd42a6ed7e31c36717.tar.gz
kernel-a1fc7535ec34a5904abe93dd42a6ed7e31c36717.zip
Bluetooth: Replace wakeable in hci_conn_params
Replace the wakeable boolean with flags in hci_conn_params and all users of this boolean. This will be used by the get/set device flags mgmt op. Signed-off-by: Abhishek Pandit-Subedi <[email protected]> Reviewed-by: Alain Michaud <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]> Signed-off-by: Johan Hedberg <[email protected]>
Diffstat (limited to 'net/bluetooth/hci_request.c')
-rw-r--r--net/bluetooth/hci_request.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c
index a5b53d3ea508..eee9c007a5fb 100644
--- a/net/bluetooth/hci_request.c
+++ b/net/bluetooth/hci_request.c
@@ -710,7 +710,8 @@ static int add_to_white_list(struct hci_request *req,
}
/* During suspend, only wakeable devices can be in whitelist */
- if (hdev->suspended && !params->wakeable)
+ if (hdev->suspended && !hci_conn_test_flag(HCI_CONN_FLAG_REMOTE_WAKEUP,
+ params->current_flags))
return 0;
*num_entries += 1;