Bluetooth: Enable RPA Timeout
Enable RPA timeout during bluetooth initialization. The RPA timeout value is used from hdev, which initialized from debug_fs Signed-off-by: Sathish Narasimman <sathish.narasimman@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
Родитель
5c49bcce5c
Коммит
b2cc23398e
|
@ -1648,6 +1648,8 @@ struct hci_rp_le_read_resolv_list_size {
|
||||||
|
|
||||||
#define HCI_OP_LE_SET_ADDR_RESOLV_ENABLE 0x202d
|
#define HCI_OP_LE_SET_ADDR_RESOLV_ENABLE 0x202d
|
||||||
|
|
||||||
|
#define HCI_OP_LE_SET_RPA_TIMEOUT 0x202e
|
||||||
|
|
||||||
#define HCI_OP_LE_READ_MAX_DATA_LEN 0x202f
|
#define HCI_OP_LE_READ_MAX_DATA_LEN 0x202f
|
||||||
struct hci_rp_le_read_max_data_len {
|
struct hci_rp_le_read_max_data_len {
|
||||||
__u8 status;
|
__u8 status;
|
||||||
|
|
|
@ -763,6 +763,14 @@ static int hci_init3_req(struct hci_request *req, unsigned long opt)
|
||||||
hci_req_add(req, HCI_OP_LE_CLEAR_RESOLV_LIST, 0, NULL);
|
hci_req_add(req, HCI_OP_LE_CLEAR_RESOLV_LIST, 0, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (hdev->commands[35] & 0x40) {
|
||||||
|
__le16 rpa_timeout = cpu_to_le16(hdev->rpa_timeout);
|
||||||
|
|
||||||
|
/* Set RPA timeout */
|
||||||
|
hci_req_add(req, HCI_OP_LE_SET_RPA_TIMEOUT, 2,
|
||||||
|
&rpa_timeout);
|
||||||
|
}
|
||||||
|
|
||||||
if (hdev->le_features[0] & HCI_LE_DATA_LEN_EXT) {
|
if (hdev->le_features[0] & HCI_LE_DATA_LEN_EXT) {
|
||||||
/* Read LE Maximum Data Length */
|
/* Read LE Maximum Data Length */
|
||||||
hci_req_add(req, HCI_OP_LE_READ_MAX_DATA_LEN, 0, NULL);
|
hci_req_add(req, HCI_OP_LE_READ_MAX_DATA_LEN, 0, NULL);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче