diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-03-11 19:27:21 -0700 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-05-09 00:41:30 -0300 |
commit | 91c4e9b1ac595f83681c9a9de691e0f30eeafb44 (patch) | |
tree | a9917d121f19adafb81abf4b7f264f185f60b736 /net/bluetooth/mgmt.c | |
parent | 6935e0f5181644201894f0b7fbe3d8910c18af05 (diff) | |
download | blackbird-op-linux-91c4e9b1ac595f83681c9a9de691e0f30eeafb44.tar.gz blackbird-op-linux-91c4e9b1ac595f83681c9a9de691e0f30eeafb44.zip |
Bluetooth: Add TX power tag to EIR data
The Inquiry Response TX power tag should be added to the Extended
Inquiry Data (EIR) as well.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r-- | net/bluetooth/mgmt.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 4a2fb06226fc..02b89e299ff8 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -479,6 +479,15 @@ static void create_eir(struct hci_dev *hdev, u8 *data) ptr += (name_len + 2); } + if (hdev->inq_tx_power) { + ptr[0] = 2; + ptr[1] = EIR_TX_POWER; + ptr[2] = (u8) hdev->inq_tx_power; + + eir_len += 3; + ptr += 3; + } + memset(uuid16_list, 0, sizeof(uuid16_list)); /* Group all UUID16 types */ |