From: Marcel Holtmann Date: Thu, 10 Oct 2013 16:47:54 +0000 (-0700) Subject: Bluetooth: Use hci_conn_num() for checking number of LE connections X-Git-Tag: v3.13-rc1~105^2~55^2^2~54^2~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b145edcd1642d55a8eb7d08c954b815cb1478981;p=pandora-kernel.git Bluetooth: Use hci_conn_num() for checking number of LE connections When checking for the current number of LE connections, use hci_conn_num() function instead of a full blown lookup within the connection hash or direct access of the counters. In the case of re-enabling advertising, it is more useful to check for any connection attempt or existing connection. Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- Reading git-diff-tree failed