Bluetooth: Add convenience function for getting total connection count
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Feb 2014 12:52:16 +0000 (14:52 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 24 Feb 2014 19:10:35 +0000 (11:10 -0800)
commitf4f07505005932ca5f6c8003323bd38dbd0c769c
treef86ed68ac707b0d965e84b7bfac8499f50099898
parent4518bb0fb5eda46a9b118a6fbd9661e62a34a5b6
Bluetooth: Add convenience function for getting total connection count

This patch adds a convenience function to return the number of
connections in the conn_hash list. This will be useful once we update
the power off procedure to disconnect any open connections.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h