diff options
author | Sathish Narasimman <nsathish41@gmail.com> | 2020-07-23 14:39:01 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-07-30 09:34:43 +0200 |
commit | 5c49bcce5c124406920843af65574104aaaa3309 (patch) | |
tree | e284e4031763440e8ed87d9c8d807ae79d69b8ec /net/bluetooth/hci_event.c | |
parent | Bluetooth: Let controller creates RPA during le create conn (diff) | |
download | linux-5c49bcce5c124406920843af65574104aaaa3309.tar.xz linux-5c49bcce5c124406920843af65574104aaaa3309.zip |
Bluetooth: Enable/Disable address resolution during le create conn
In this patch if le_create_conn process is started restrict to
disable address resolution and same is disabled during
le_enh_connection_complete
Signed-off-by: Sathish Narasimman <sathish.narasimman@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 6388fb55b4d2..628831b15c0a 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -5228,6 +5228,10 @@ static void hci_le_enh_conn_complete_evt(struct hci_dev *hdev, le16_to_cpu(ev->interval), le16_to_cpu(ev->latency), le16_to_cpu(ev->supervision_timeout)); + + if (use_ll_privacy(hdev) && + hci_dev_test_flag(hdev, HCI_LL_RPA_RESOLUTION)) + hci_req_disable_address_resolution(hdev); } static void hci_le_ext_adv_term_evt(struct hci_dev *hdev, struct sk_buff *skb) |