Bluetooth: Move IRK checking logic in preparation to new connect method
authorJakub Pawlowski <jpawlowski@google.com>
Mon, 20 Jul 2015 11:12:49 +0000 (13:12 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 23 Jul 2015 15:10:51 +0000 (17:10 +0200)
commit9a0a8a8e852dabeda848baafac19627cb469d5e9
tree6e85d39923d45195bf193aa6194779bbc496170c
parent8757825b128e71319150219b0745d3ecb87f34aa
Bluetooth: Move IRK checking logic in preparation to new connect method

Move IRK checking logic in preparation to new connect method. Also
make sure that MGMT_STATUS_INVALID_PARAMS is returned when non
identity address is passed to ADD_DEVICE. Right now MGMT_STATUS_FAILED
is returned, which might be misleading.

Signed-off-by: Jakub Pawlowski <jpawlowski@google.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c