With mgmt interface EIR is created by kernel. Renaming this function makes it clear what is a purpose of it in userspace. It also contains support for EIR data types that shall be transmitted only over OOB channel. --- src/eir.c | 2 +- src/eir.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eir.c b/src/eir.c index 46dde5a..a3c99e8 100644 --- a/src/eir.c +++ b/src/eir.c @@ -280,7 +280,7 @@ static void eir_generate_uuid128(GSList *list, uint8_t *ptr, uint16_t *eir_len) } } -void eir_create(const char *name, int8_t tx_power, uint32_t cod, +void eir_create_oob(const char *name, int8_t tx_power, uint32_t cod, uint8_t *hash, uint8_t *randomizer, uint16_t did_vendor, uint16_t did_product, uint16_t did_version, uint16_t did_source, diff --git a/src/eir.h b/src/eir.h index 1c7a603..55289f9 100644 --- a/src/eir.h +++ b/src/eir.h @@ -58,7 +58,7 @@ struct eir_data { void eir_data_free(struct eir_data *eir); int eir_parse(struct eir_data *eir, uint8_t *eir_data, uint8_t eir_len); int eir_parse_oob(struct eir_data *eir, uint8_t *eir_data, uint16_t eir_len); -void eir_create(const char *name, int8_t tx_power, uint32_t cod, +void eir_create_oob(const char *name, int8_t tx_power, uint32_t cod, uint8_t *hash, uint8_t *randomizer, uint16_t did_vendor, uint16_t did_product, uint16_t did_version, uint16_t did_source, -- 1.7.9.5 -- 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