Bluetooth: Initialize LE connection count
authorGustavo F. Padovan <padovan@profusion.mobi>
Wed, 14 Dec 2011 22:56:12 +0000 (20:56 -0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Fri, 16 Dec 2011 20:16:14 +0000 (18:16 -0200)
le_num needs to be set to zero.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
include/net/bluetooth/hci_core.h

index 7f815c0..8e33c66 100644 (file)
@@ -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)