Bluetooth: Add 'Already Paired' error for Pair Device command
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 10 Mar 2015 20:34:40 +0000 (22:34 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 10 Mar 2015 20:42:05 +0000 (21:42 +0100)
commit55e76b38986a61259f3079afd0f9a865651a34fe
tree896a09d711e70975b996268dea4d77c60a5bd47a
parent406ef2a67bd0bb13d77d5e5d700e36a2caea09ae
Bluetooth: Add 'Already Paired' error for Pair Device command

To make the behavior predictable when attempting to pair with a device
for which we already have a Link Key or Long Term Key, this patch adds a
new 'Already Paired' error which gets sent in such a scenario.

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