Hi Johan, > When we start LE scanning we need to regenerate the local RPA in case it > has expired. This patch adds the necessary code for doing this in the > start_discovery function. > > Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx> > --- > net/bluetooth/mgmt.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c > index e3d8371a2493..2dd0c730f0e9 100644 > --- a/net/bluetooth/mgmt.c > +++ b/net/bluetooth/mgmt.c > @@ -3382,6 +3382,9 @@ static int start_discovery(struct sock *sk, struct hci_dev *hdev, > goto failed; > } > > + if (test_and_clear_bit(HCI_RPA_EXPIRED, &hdev->dev_flags)) > + hci_update_rpa(&req); > + same comment here. We need to take care of the static address as well here. Regards Marcel -- 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