diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-03-11 22:27:21 -0400 |
---|---|---|
committer | Gustavo Padovan <gustavo@padovan.org> | 2012-05-08 23:41:30 -0400 |
commit | 91c4e9b1ac595f83681c9a9de691e0f30eeafb44 (patch) | |
tree | a9917d121f19adafb81abf4b7f264f185f60b736 /net/bluetooth/hci_event.c | |
parent | 6935e0f5181644201894f0b7fbe3d8910c18af05 (diff) |
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/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 50ff9a989531..75f01d1b126f 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c | |||
@@ -887,11 +887,14 @@ static void hci_cc_write_inquiry_mode(struct hci_dev *hdev, | |||
887 | static void hci_cc_read_inq_rsp_tx_power(struct hci_dev *hdev, | 887 | static void hci_cc_read_inq_rsp_tx_power(struct hci_dev *hdev, |
888 | struct sk_buff *skb) | 888 | struct sk_buff *skb) |
889 | { | 889 | { |
890 | __u8 status = *((__u8 *) skb->data); | 890 | struct hci_rp_read_inq_rsp_tx_power *rp = (void *) skb->data; |
891 | 891 | ||
892 | BT_DBG("%s status 0x%x", hdev->name, status); | 892 | BT_DBG("%s status 0x%x", hdev->name, rp->status); |
893 | |||
894 | if (!rp->status) | ||
895 | hdev->inq_tx_power = rp->tx_power; | ||
893 | 896 | ||
894 | hci_req_complete(hdev, HCI_OP_READ_INQ_RSP_TX_POWER, status); | 897 | hci_req_complete(hdev, HCI_OP_READ_INQ_RSP_TX_POWER, rp->status); |
895 | } | 898 | } |
896 | 899 | ||
897 | static void hci_cc_set_event_flt(struct hci_dev *hdev, struct sk_buff *skb) | 900 | static void hci_cc_set_event_flt(struct hci_dev *hdev, struct sk_buff *skb) |