summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorGustavo F. Padovan2011-12-14 23:56:12 +0100
committerGustavo F. Padovan2011-12-16 21:16:14 +0100
commitdc8ed672caaab054caf62557e46dfed08848a85f (patch)
tree99212e1c490b783b7465214d48564d41ca3a510f /include/net/bluetooth/hci_core.h
parentBluetooth: remove lock from struct conn_hash (diff)
downloadkernel-qcow2-linux-dc8ed672caaab054caf62557e46dfed08848a85f.tar.gz
kernel-qcow2-linux-dc8ed672caaab054caf62557e46dfed08848a85f.tar.xz
kernel-qcow2-linux-dc8ed672caaab054caf62557e46dfed08848a85f.zip
Bluetooth: Initialize LE connection count
le_num needs to be set to zero. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
-rw-r--r--include/net/bluetooth/hci_core.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h
index 7f815c075711..8e33c66eac73 100644
--- a/include/net/bluetooth/hci_core.h
+++ b/include/net/bluetooth/hci_core.h
@@ -385,6 +385,7 @@ static inline void hci_conn_hash_init(struct hci_dev *hdev)
INIT_LIST_HEAD(&h->list);
h->acl_num = 0;
h->sco_num = 0;
+ h->le_num = 0;
}
static inline void hci_conn_hash_add(struct hci_dev *hdev, struct hci_conn *c)