Bluetooth: Move Service Discovery logic before refactoring
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 5 Mar 2015 00:24:24 +0000 (16:24 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 5 Mar 2015 07:50:50 +0000 (09:50 +0200)
commit48f86b7f2673352d075e567a8f3425c548be8424
tree5367e6ba3110b37f08eaf30f16e931b82f719f15
parent263be3326b89a1a4994b29cbe898637fd72e6f0b
Bluetooth: Move Service Discovery logic before refactoring

This patch moves whole packet filering logic of service discovery
into new function is_filter_match. It's done because logic inside
mgmt_device_found is very complicated and needs some
simplification.

Also having whole logic in one place will allow to simplify it in
the future.

Signed-off-by: Jakub Pawlowski <jpawlowski@google.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/mgmt.c