Hi Johan, >> I think that 3.14 kernel and later have this feature enabled. What I >> can tell is that we cancel connection attempts since I found a follow >> up patch there. For inquiry and remote name request, I do not know. >> >> Johan, did we ever checked this and in addition that we send a >> Discovery Stopped event as well. > > I'm not completely sure about a proper emission of Discover Stopped, but > the function to look at is clean_up_hci_state() in mgmt.c. You'll see > that it stops inquiry scan & page scan, advertising, LE scanning, > cancels outgoing connection attempts and disconnects existing > connections. > > However, as I just looked at the function we seem to (quite > surprisingly) have completely forgotten about inquiry (either normal or > periodic), so another patch to this function is needed as it seems. the same might apply to remote name request that we also have to cancel. However we might should just run a normal stop discovery procedure. Since that should already today clear this all correctly. 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