From: Johan Hedberg <johan.hedberg@xxxxxxxxx> When we initiate LE connections we need to regenerate the local RPA in case it has expired. This patch adds the necessary code for doing this in the hci_create_le_conn function. Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx> --- net/bluetooth/hci_conn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index bd66c52eff95..325b42afc61e 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -560,6 +560,9 @@ static int hci_create_le_conn(struct hci_conn *conn) hci_req_init(&req, hdev); + if (test_and_clear_bit(HCI_RPA_EXPIRED, &hdev->dev_flags)) + hci_update_rpa(&req); + memset(&cp, 0, sizeof(cp)); cp.scan_interval = cpu_to_le16(hdev->le_scan_interval); cp.scan_window = cpu_to_le16(hdev->le_scan_window); -- 1.8.5.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html