Skip to content

Commit a1fc753

Browse files
apanditjhedberg
authored andcommitted
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 <abhishekpandit@chromium.org> Reviewed-by: Alain Michaud <alainm@chromium.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
1 parent 7a92906 commit a1fc753

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎include/net/bluetooth/hci_core.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ struct hci_conn_params {
660660

661661
struct hci_conn *conn;
662662
bool explicit_connect;
663-
bool wakeable;
663+
u32 current_flags;
664664
};
665665

666666
extern struct list_head hci_dev_list;

‎net/bluetooth/hci_request.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,8 @@ static int add_to_white_list(struct hci_request *req,
710710
}
711711

712712
/* During suspend, only wakeable devices can be in whitelist */
713-
if (hdev->suspended && !params->wakeable)
713+
if (hdev->suspended && !hci_conn_test_flag(HCI_CONN_FLAG_REMOTE_WAKEUP,
714+
params->current_flags))
714715
return 0;
715716

716717
*num_entries += 1;

0 commit comments

Comments
 (0)