projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6948737
)
Bluetooth: Fix initializing hci_conn RSSI to invalid value
author
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 5 Dec 2014 11:36:08 +0000
(13:36 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 5 Dec 2014 11:46:10 +0000
(12:46 +0100)
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>
net/bluetooth/hci_conn.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/hci_conn.c
b/net/bluetooth/hci_conn.c
index 96887ae8375b52cf545708a3f9ea14fa40fc996a..79d84b88b8f0a766c9d8db9e93f4ef35221031be 100644
(file)
--- 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;