From: Johan Hedberg Date: Fri, 5 Dec 2014 11:36:08 +0000 (+0200) Subject: Bluetooth: Fix initializing hci_conn RSSI to invalid value X-Git-Tag: v3.19-rc1~118^2~28^2~5^2~12 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ebf86aa3aeaa4e9f434dacdd0a1d851a6c0332f8;p=karo-tx-linux.git 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 Signed-off-by: Marcel Holtmann --- 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;