]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: mgmt: Move service cache setting to a more sensible place
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 19:30:12 +0000 (21:30 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 23 Feb 2012 20:02:27 +0000 (22:02 +0200)
commit4be0af847115afcf8098858f52aa886cff7a1ba8
treed35340b52ec5a9878ee40ead24f96b1d3774f149
parent50ee57ecd9bcf161681afa0521eee577c665618d
Bluetooth: mgmt: Move service cache setting to a more sensible place

Since we can now add UUIDs when powered off we don't really need to
always use the service cache to avoid large bursts of HCI commands.
Instead, the only important use case is when we're already powered and
user space starts to initialize itself. This can be easiest detected by
a "clear UUIDs" operation which is where this patch moves the service
cache setting.

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