diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2012-10-03 15:18:21 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-10-03 22:42:23 +0300 |
commit | b0f95f503f540599315815ade33ae755388c7612 (patch) | |
tree | b3e78444031f46c4acb524947668fd9b6f0207b3 /src/eir.c | |
parent | 9b936c7dd00053cbe0957aa60fe835f24c5b446f (diff) | |
download | bluez-b0f95f503f540599315815ade33ae755388c7612.tar.gz |
eir: Remove support for creating EIR with tx_power fields
This field is not used for OOB EIR.
Diffstat (limited to 'src/eir.c')
-rw-r--r-- | src/eir.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -278,7 +278,7 @@ static void eir_generate_uuid128(GSList *list, uint8_t *ptr, uint16_t *eir_len) } } -void eir_create_oob(const char *name, int8_t tx_power, uint32_t cod, +void eir_create_oob(const char *name, 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, @@ -347,13 +347,6 @@ void eir_create_oob(const char *name, int8_t tx_power, uint32_t cod, ptr += (name_len + 2); } - if (tx_power != 0) { - *ptr++ = 2; - *ptr++ = EIR_TX_POWER; - *ptr++ = (uint8_t) tx_power; - eir_len += 3; - } - if (did_vendor != 0x0000) { *ptr++ = 9; *ptr++ = EIR_DEVICE_ID; |