diff options
-rw-r--r-- | net/bluetooth/hci_core.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 50db0201213c..3ee2885dd9bc 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -5250,12 +5250,13 @@ void hci_req_add_le_passive_scan(struct hci_request *req) | |||
5250 | struct hci_dev *hdev = req->hdev; | 5250 | struct hci_dev *hdev = req->hdev; |
5251 | u8 own_addr_type; | 5251 | u8 own_addr_type; |
5252 | 5252 | ||
5253 | /* Set require_privacy to true to avoid identification from | 5253 | /* Set require_privacy to false since no SCAN_REQ are send |
5254 | * unknown peer devices. Since this is passive scanning, no | 5254 | * during passive scanning. Not using an unresolvable address |
5255 | * SCAN_REQ using the local identity should be sent. Mandating | 5255 | * here is important so that peer devices using direct |
5256 | * privacy is just an extra precaution. | 5256 | * advertising with our address will be correctly reported |
5257 | * by the controller. | ||
5257 | */ | 5258 | */ |
5258 | if (hci_update_random_address(req, true, &own_addr_type)) | 5259 | if (hci_update_random_address(req, false, &own_addr_type)) |
5259 | return; | 5260 | return; |
5260 | 5261 | ||
5261 | memset(¶m_cp, 0, sizeof(param_cp)); | 5262 | memset(¶m_cp, 0, sizeof(param_cp)); |