Bluetooth: Refactor connection request handling
authorJohan Hedberg <johan.hedberg@intel.com>
Wed, 9 Jul 2014 09:59:17 +0000 (12:59 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 9 Jul 2014 10:25:27 +0000 (12:25 +0200)
commit70c464256310e1c3716099b9d02ece4169272f73
tree8254be9723dbb069038996ca387995739d64da7f
parentdee58c1ed5e29eb57fa9358a8ff27848b72f3b7d
Bluetooth: Refactor connection request handling

The conditions for accepting an incoming connections are already
non-trivial and will become more so once a white list is added. This
patch breaks up the checks for when to reject the request by creating a
helper function for it.

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