summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorMarcel Holtmann2013-10-10 18:47:55 +0200
committerJohan Hedberg2013-10-10 22:08:02 +0200
commit014f7bc78738d86e156635d5ac239e199573df66 (patch)
tree0c3bcadafe9d9579f6ef875dda976ffedc0be1de /net/bluetooth/hci_core.c
parentBluetooth: Use hci_conn_num() for checking number of LE connections (diff)
downloadkernel-qcow2-linux-014f7bc78738d86e156635d5ac239e199573df66.tar.gz
kernel-qcow2-linux-014f7bc78738d86e156635d5ac239e199573df66.tar.xz
kernel-qcow2-linux-014f7bc78738d86e156635d5ac239e199573df66.zip
Bluetooth: Use hci_conn_num() instead of direct connection hash access
When changing the alternate setting for the ISOC endpoints, use the hci_conn_num() helper function to count currently established SCO and eSCO connections and store the the value. This avoids direct access to the connection hash. In addition use the stored value instead accessing the connection hash over and over again. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/hci_core.c')
0 files changed, 0 insertions, 0 deletions