summaryrefslogtreecommitdiffstats
path: root/include/net/bluetooth/hci_core.h
diff options
context:
space:
mode:
authorAndrzej Kaczmarek2014-02-20 16:42:01 +0100
committerMarcel Holtmann2014-02-20 20:34:08 +0100
commitb1765e7afe8710ef4366dc722cc5bd487eb07973 (patch)
treefcd3beef085776f49ae6de30564444ac18e5eb95 /include/net/bluetooth/hci_core.h
parentBluetooth: Track the current configured random address (diff)
downloadkernel-qcow2-linux-b1765e7afe8710ef4366dc722cc5bd487eb07973.tar.gz
kernel-qcow2-linux-b1765e7afe8710ef4366dc722cc5bd487eb07973.tar.xz
kernel-qcow2-linux-b1765e7afe8710ef4366dc722cc5bd487eb07973.zip
Bluetooth: Fix channel check when binding RFCOMM sock
When binding RFCOMM socket with non-zero channel we're checking if there is already any other socket which has the same channel number assigned and then fail. This check does not consider situation where we have another socket connected to remote device on given channel number in which case we still should be able to bind local socket. This patch changes __rfcomm_get_sock_by_addr() to return only sockets in either BT_BOUND or BT_LISTEN states, also name is updated to better describe what this function does now. Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth/hci_core.h')
0 files changed, 0 insertions, 0 deletions