Commit: 20160ae61b1e7fce7397857eb54223b69ab511c8
Parent: fe9acb5bc469fc661dfa7becc0aa5aa2521078a5
Author: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-01-25 18:30:15
Tree: 08a0551f76f00579ab77c8289e636f63d052ccf6

adapter: Fix not removing a device when the adapter is down It is a documented error that MGMT_UNPAIR_DEVICE should return an error if the controller is not powered. This error is being ignored, and if the user asks for a device to be removed while the controller is powered down, the keys associated with that device will still be in the kernel side. The solution is to return the user an error when it is asked to remove a device and the controller is not powered.

Diffstat

M src/adapter.c | 3 +++

1 files changed, 3 insertions(+), 0 deletions(-)

View Full Diff | Patch