diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-12-05 12:36:08 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-12-05 12:46:10 +0100 |
commit | ebf86aa3aeaa4e9f434dacdd0a1d851a6c0332f8 (patch) | |
tree | eb3d7d3c47880ddf7bdf9709169cb2d60fe1bca8 /net/bluetooth | |
parent | Bluetooth: Convert Get Clock Info to use cmd_complete callback (diff) | |
download | linux-ebf86aa3aeaa4e9f434dacdd0a1d851a6c0332f8.tar.xz linux-ebf86aa3aeaa4e9f434dacdd0a1d851a6c0332f8.zip |
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')
-rw-r--r-- | net/bluetooth/hci_conn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index 96887ae8375b..79d84b88b8f0 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; |