Bluetooth: Clear HCI_LL_RPA_RESOLUTION flag on reset
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 9 Apr 2020 06:05:50 +0000 (08:05 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 15 Apr 2020 13:51:07 +0000 (16:51 +0300)
When the controller is being reset or power cycled, then the flag
HCI_LL_RPA_RESOLUTION which indicates if controller based address
resolution is active needs to be also reset.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h

index 2f3275f..239ab72 100644 (file)
@@ -645,6 +645,7 @@ extern struct mutex hci_cb_list_lock;
        do {                                                    \
                hci_dev_clear_flag(hdev, HCI_LE_SCAN);          \
                hci_dev_clear_flag(hdev, HCI_LE_ADV);           \
+               hci_dev_clear_flag(hdev, HCI_LL_RPA_RESOLUTION);\
                hci_dev_clear_flag(hdev, HCI_PERIODIC_INQ);     \
        } while (0)