Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ebf86aa3 authored by Johan Hedberg's avatar Johan Hedberg Committed by Marcel Holtmann
Browse files

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: default avatarJohan Hedberg <johan.hedberg@intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 69487371
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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->io_capability = hdev->io_capability;
	conn->remote_auth = 0xff;
	conn->remote_auth = 0xff;
	conn->key_type = 0xff;
	conn->key_type = 0xff;
	conn->rssi = HCI_RSSI_INVALID;
	conn->tx_power = HCI_TX_POWER_INVALID;
	conn->tx_power = HCI_TX_POWER_INVALID;
	conn->max_tx_power = HCI_TX_POWER_INVALID;
	conn->max_tx_power = HCI_TX_POWER_INVALID;