diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2021-08-03 01:56:19 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2021-08-03 23:30:50 +0200 |
commit | c45074d68a9b1e893d86520af71fab37693c3d7e (patch) | |
tree | e160aa1fcac3d4dd27fdceb63ed1d5946b47839d /include/scsi/scsi_request.h | |
parent | Bluetooth: HCI: Add proper tracking for enable status of adv instances (diff) | |
download | linux-c45074d68a9b1e893d86520af71fab37693c3d7e.tar.xz linux-c45074d68a9b1e893d86520af71fab37693c3d7e.zip |
Bluetooth: Fix not generating RPA when required
Code was checking if random_addr and hdev->rpa match without first
checking if the RPA has not been set (BDADDR_ANY), furthermore it was
clearing HCI_RPA_EXPIRED before the command completes and the RPA is
actually programmed which in case of failure would leave the expired
RPA still set.
Since advertising instance have a similar problem the clearing of
HCI_RPA_EXPIRED has been moved to hci_event.c after checking the random
address is in fact the hdev->rap and then proceed to set the expire
timeout.
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/scsi/scsi_request.h')
0 files changed, 0 insertions, 0 deletions