Bluetooth: Fix remove_device behavior for explicit connects
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 16 Oct 2015 07:07:52 +0000 (10:07 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 16 Oct 2015 07:24:41 +0000 (09:24 +0200)
commit679d2b6f9d742b3f091868bd9a0634647ce7e782
tree187fa4a6c496d44748e751cb51e47222a7d644bc
parent49c509220db990ad003060db2267b9bbb597cd94
Bluetooth: Fix remove_device behavior for explicit connects

Devices undergoing an explicit connect should not have their
conn_params struct removed by the mgmt Remove Device command. This
patch fixes the necessary checks in the command handler to correct the
behavior.

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