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 7f815c0757119293e52dc82dcac1bc74e8e56b38..8e33c66eac73eaf7da720198f0fb70b9c3923005 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)