Hi Marcel, On Fri, Dec 19, 2014, Marcel Holtmann wrote: > > + err = hci_req_run(&req, add_device_complete); > > + if (err < 0) { > > + if (err == -ENODATA) { > > + cmd->cmd_complete(cmd, MGMT_STATUS_SUCCESS); > > + err = 0; > > + } > > + mgmt_pending_remove(cmd); > > + } > > But this command should also work when the controller is powered down. > Who is doing these checks now? That's covered by the ENODATA check. hci_update_background_scan() bails out without doing anything if the hdev is powered off, leaving the hci_request empty. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html