Hi Johan, > Since discovery also deals with LE scanning it makes sense to move it > behind the same req_workqueue as other LE scanning changes. This also > simplifies the logic since we do many of the actions in a synchronous > manner. > > Part of this refactoring is moving hci_req_stop_discovery() to > hci_request.c. At the same time the function receives support for > properly handling the STOPPING state since that's the state we'll be > in when stopping through the req_workqueue. > > Signed-off-by: Johan Hedberg <johan.hedberg@xxxxxxxxx> > --- > include/net/bluetooth/hci_core.h | 1 + > net/bluetooth/hci_request.c | 62 ++++++++++++++++++++++++++++++++++ > net/bluetooth/hci_request.h | 3 ++ > net/bluetooth/mgmt.c | 72 +++------------------------------------- > 4 files changed, 71 insertions(+), 67 deletions(-) both patches have been applied to bluetooth-next tree. Regards Marcel -- 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