Hi, On Thu, Nov 11, 2010, Vinicius Costa Gomes wrote: > get_eir_uuids() will be reused to parse LE advertising data as well, as > they share the same format. But for Advertising, maximum data length is > different (31 bytes vs. 240 bytes for EIR), and the radio is not > required to send the non-significant (zero-filled) bytes. > > adapter_emit_device_found() now also accepts a EIR data length > parameter, so it can be reused for LE and can propagate the exact data > length. > --- > src/adapter.c | 17 ++++++++++------- > src/adapter.h | 2 +- > src/event.c | 2 +- > 3 files changed, 12 insertions(+), 9 deletions(-) Pushed upstream after I fixed the following coding style issue: > void adapter_emit_device_found(struct btd_adapter *adapter, > - struct remote_dev_info *dev, uint8_t *eir_data) > + struct remote_dev_info *dev, uint8_t *eir_data, size_t eir_length) The parameters on the second line should be indented if possible enough that they're past the opening ( on the line above (in this case it means that you need three lines for the parameters). > void adapter_emit_device_found(struct btd_adapter *adapter, > - struct remote_dev_info *dev, uint8_t *eir_data); > + struct remote_dev_info *dev, uint8_t *eir_data, size_t eir_length); Same here. 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