summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_conn.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2014-12-05 13:36:08 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-12-05 12:46:10 +0100
commitebf86aa3aeaa4e9f434dacdd0a1d851a6c0332f8 (patch)
treeeb3d7d3c47880ddf7bdf9709169cb2d60fe1bca8 /net/bluetooth/hci_conn.c
parent69487371d14b667c437d1a08b2c8a92738d12992 (diff)
downloadop-kernel-dev-ebf86aa3aeaa4e9f434dacdd0a1d851a6c0332f8.zip
op-kernel-dev-ebf86aa3aeaa4e9f434dacdd0a1d851a6c0332f8.tar.gz
Bluetooth: Fix initializing hci_conn RSSI to invalid value
When we create the hci_conn object we should properly initialize the RSSI to HCI_RSSI_INVALID. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_conn.c')
-rw-r--r--net/bluetooth/hci_conn.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index 96887ae..79d84b8 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -449,6 +449,7 @@ struct hci_conn *hci_conn_add(struct hci_dev *hdev, int type, bdaddr_t *dst,
conn->io_capability = hdev->io_capability;
conn->remote_auth = 0xff;
conn->key_type = 0xff;
+ conn->rssi = HCI_RSSI_INVALID;
conn->tx_power = HCI_TX_POWER_INVALID;
conn->max_tx_power = HCI_TX_POWER_INVALID;
OpenPOWER on IntegriCloud