Commit a1fc7535 authored by Abhishek Pandit-Subedi's avatar Abhishek Pandit-Subedi Committed by Johan Hedberg

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: default avatarAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Reviewed-by: default avatarAlain Michaud <alainm@chromium.org>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 7a92906f
...@@ -660,7 +660,7 @@ struct hci_conn_params { ...@@ -660,7 +660,7 @@ struct hci_conn_params {
struct hci_conn *conn; struct hci_conn *conn;
bool explicit_connect; bool explicit_connect;
bool wakeable; u32 current_flags;
}; };
extern struct list_head hci_dev_list; extern struct list_head hci_dev_list;
......
...@@ -710,7 +710,8 @@ static int add_to_white_list(struct hci_request *req, ...@@ -710,7 +710,8 @@ static int add_to_white_list(struct hci_request *req,
} }
/* During suspend, only wakeable devices can be in whitelist */ /* 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; return 0;
*num_entries += 1; *num_entries += 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment