]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - net/bluetooth/hci_event.c
Bluetooth: Use custom macro for testing BR/EDR SC enabled
[mirror_ubuntu-zesty-kernel.git] / net / bluetooth / hci_event.c
index d76d4f821189277e4be400948b91b9d97fff76d4..f980fc46ea5e55edd65320d2ea0c029fa63e9a9a 100644 (file)
@@ -4027,7 +4027,7 @@ static void hci_remote_oob_data_request_evt(struct hci_dev *hdev,
 
        data = hci_find_remote_oob_data(hdev, &ev->bdaddr);
        if (data) {
-               if (test_bit(HCI_SC_ENABLED, &hdev->dev_flags)) {
+               if (bredr_sc_enabled(hdev)) {
                        struct hci_cp_remote_oob_ext_data_reply cp;
 
                        bacpy(&cp.bdaddr, &ev->bdaddr);