Bluetooth: Merge hdev->dbg_flags fields into hdev->dev_flags
[deliverable/linux.git] / net / bluetooth / hci_request.c
index e85f9ec9f73af21ae43b030ce5c6a755b4b049bd..55e096d20a0fc61ea2bb8f1ee895e36788a47559 100644 (file)
@@ -383,7 +383,7 @@ int hci_update_random_address(struct hci_request *req, bool require_privacy,
         * and a static address has been configured, then use that
         * address instead of the public BR/EDR address.
         */
-       if (test_bit(HCI_FORCE_STATIC_ADDR, &hdev->dbg_flags) ||
+       if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) ||
            !bacmp(&hdev->bdaddr, BDADDR_ANY) ||
            (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) &&
             bacmp(&hdev->static_addr, BDADDR_ANY))) {
This page took 0.037806 seconds and 5 git commands to generate.