Hi, On Wed, Jun 12, 2013, Bruna Moreira wrote: > From: Jefferson Delfes <jefferson.delfes@xxxxxxxxxxxxx> > > After LE scan is enabled, the emulator search virtual devices that are > in advertising mode, in order to copy adv data. > --- > emulator/btdev.c | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > > diff --git a/emulator/btdev.c b/emulator/btdev.c > index a7af6b3..160e5bf 100644 > --- a/emulator/btdev.c > +++ b/emulator/btdev.c > @@ -876,6 +876,19 @@ static void remote_version_complete(struct btdev *btdev, uint16_t handle) > &rvc, sizeof(rvc)); > } > > +static void le_set_scan_enable_complete(struct btdev *btdev) > +{ > + int i; > + > + for (i = 0; i < MAX_BTDEV_ENTRIES; i++) { > + if (!btdev_list[i] || btdev_list[i] == btdev) > + continue; > + > + if (!btdev_list[i]->le_adv_enable) > + continue; > + } > +} What's the purpose of this function? It doesn't seem to do anything but iterate through the btdev list. Should it be merged with some later patch (which actually does something useful)? 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