Loading net/bluetooth/hci_core.c +7 −4 Original line number Diff line number Diff line Loading @@ -360,13 +360,16 @@ bool hci_discovery_active(struct hci_dev *hdev) { struct discovery_state *discov = &hdev->discovery; if (discov->state == DISCOVERY_INQUIRY || discov->state == DISCOVERY_LE_SCAN || discov->state == DISCOVERY_RESOLVING) switch (discov->state) { case DISCOVERY_INQUIRY: case DISCOVERY_LE_SCAN: case DISCOVERY_RESOLVING: return true; default: return false; } } void hci_discovery_set_state(struct hci_dev *hdev, int state) { Loading Loading
net/bluetooth/hci_core.c +7 −4 Original line number Diff line number Diff line Loading @@ -360,13 +360,16 @@ bool hci_discovery_active(struct hci_dev *hdev) { struct discovery_state *discov = &hdev->discovery; if (discov->state == DISCOVERY_INQUIRY || discov->state == DISCOVERY_LE_SCAN || discov->state == DISCOVERY_RESOLVING) switch (discov->state) { case DISCOVERY_INQUIRY: case DISCOVERY_LE_SCAN: case DISCOVERY_RESOLVING: return true; default: return false; } } void hci_discovery_set_state(struct hci_dev *hdev, int state) { Loading