Bluetooth: Connection parameters and resolvable address
authorAndre Guedes <andre.guedes@openbossa.org>
Wed, 26 Feb 2014 23:21:52 +0000 (20:21 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 27 Feb 2014 03:41:35 +0000 (19:41 -0800)
commita9b0a04c2aac1e6e41e254221926bdce75321f55
treee46d1832cf05d9dd732bac178ab0b198385e051f
parent6046dc3e0602256b9941241dfd6b2e4824999b01
Bluetooth: Connection parameters and resolvable address

We should only accept connection parameters from identity addresses
(public or random static). Thus, we should check the address type
in hci_conn_params_add().

Additionally, since the IRK is removed during unpair, we should also
remove the connection parameters from that device.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c
net/bluetooth/mgmt.c