summaryrefslogtreecommitdiff
path: root/src/eir.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2012-10-03 15:18:21 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-03 22:42:23 +0300
commitb0f95f503f540599315815ade33ae755388c7612 (patch)
treeb3e78444031f46c4acb524947668fd9b6f0207b3 /src/eir.c
parent9b936c7dd00053cbe0957aa60fe835f24c5b446f (diff)
downloadbluez-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.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/eir.c b/src/eir.c
index f291bc5f1..ac9d13f12 100644
--- a/src/eir.c
+++ b/src/eir.c
@@ -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;