summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2012-11-21 19:03:00 +0100
committerJohn W. Linville <linville@tuxdriver.com>2012-11-21 19:03:00 +0100
commitd2ff5ee919f0b1377595df80ba49c9921ce4ee62 (patch)
treee3e92aff76d158ee8f956a113b7f10b4ea145f87 /net/bluetooth/mgmt.c
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linvil... (diff)
parentBluetooth: Remove OOB data if device was discovered in band (diff)
downloadlinux-d2ff5ee919f0b1377595df80ba49c9921ce4ee62.tar.xz
linux-d2ff5ee919f0b1377595df80ba49c9921ce4ee62.zip
Merge branch 'for-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index a97948b96b49..142764aec2af 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -485,7 +485,7 @@ static void create_eir(struct hci_dev *hdev, u8 *data)
ptr += (name_len + 2);
}
- if (hdev->inq_tx_power) {
+ if (hdev->inq_tx_power != HCI_TX_POWER_INVALID) {
ptr[0] = 2;
ptr[1] = EIR_TX_POWER;
ptr[2] = (u8) hdev->inq_tx_power;