Bluetooth: Fix generation of non-resolvable private addresses
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 7 Dec 2014 19:13:17 +0000 (20:13 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 8 Dec 2014 07:21:14 +0000 (09:21 +0200)
commit9437d2edc39ed8f7e40536281ee53ec3fd5a14ca
tree8b27ff6119909ebf1da97f58e4dfbe03ae8edc15
parent08f63cc5026f20b9124828619c9025738ecb5a5e
Bluetooth: Fix generation of non-resolvable private addresses

When the host decides to use a non-resolvable private address, it
must ensure that this generated address does not match the public
address of the controller. Add an extra check to ensure this required
behavior.

In addition rename the variable from urpa to nrpa and fix all of the
comments in the code that use the term unresolvable instead of the
term non-resolvable as used in the Bluetooth specification.

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