]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix mgmt_unpair_device command status
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 9 Feb 2012 15:19:27 +0000 (17:19 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:37 +0000 (17:01 +0200)
commit32f06655b469709e13ce7b653dc5dda0746e3da3
treea3c772d239cb6705f116f74de687b5aca24849c4
parent36abe8ccd8933effa2c180f1ae8b7fa6da11339c
Bluetooth: Fix mgmt_unpair_device command status

The default response status to unpair_device should be set as 0 instead
of a generic failure value. When disconnection is not needed (i.e. we
can reply imediately) we should return success and not failure.

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