Bluetooth: Support static address when BR/EDR has been disabled
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 19 Dec 2014 22:05:35 +0000 (23:05 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Sat, 20 Dec 2014 07:29:49 +0000 (09:29 +0200)
commit50b5b952b7c2bf2c75c257a62a6c456a0bbfdfa3
treeb376883509c7dd65755926d6a13f0cff323a8511
parentcd1c56653a65e5559cf48effe8864ff6df4b4430
Bluetooth: Support static address when BR/EDR has been disabled

Every BR/EDR/LE dual-mode controller requires to have a public address
and so far that has become the identity address and own address. The
only way to change that behavior was with a force_static_address
debugfs option.

However the host can actually disable the BR/EDR part of a dual-mode
controller and turn into a single mode LE controller. In that case
it makes perfect sense for a host to use a chosen static address
instead of the public address.

So if the host disables BR/EDR and configures a static address, then
that static address is used as identity address and own address. If
the host does not configure a static address, then the public address
is used as before.

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