Bluetooth: mgmt: Clear EIR data when disabling SSP
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 20 Feb 2012 22:52:42 +0000 (00:52 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 20 Feb 2012 23:05:16 +0000 (01:05 +0200)
commitcacaf52f51697f832a26e8fdaa7b8e85785085da
tree268e88396fa9c55ac639cb3084f47a07fc2207cb
parent1e16357480fdeaeff7c5572f1afba7835473fcb6
Bluetooth: mgmt: Clear EIR data when disabling SSP

EIR shouldn't be enabled if SSP isn't enabled. This patch adds the
clearing of EIR data when disabling SSP and restores the data when SSP
is re-enabled.

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