Bluetooth: Introduce controller setting information for static address
authorMarcel Holtmann <marcel@holtmann.org>
Fri, 6 Mar 2015 18:11:21 +0000 (10:11 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 6 Mar 2015 18:43:07 +0000 (20:43 +0200)
commit93690c227acf08a2a19cbaf9acbcd2210fbb8ded
treead2744a305b0e5c907a694cdb64984d4143d79cf
parent82f8b651a94d5c7090563fe55cfdb286c461a16c
Bluetooth: Introduce controller setting information for static address

Currently it is not possible to determine if the static address is used
by the controller. It is also not possible to determine if using a
static on a dual-mode controller with disabled BR/EDR is possible or
not.

To address this issue, introduce a new setting called static-address. If
support for this setting is signaled that means that the kernel supports
using static addresses. And if used on dual-mode controllers with BR/EDR
disabled it means that a configured static address can be used.

In addition utilize the same setting for the list of current active
settings that indicates if a static address is configured and if that
address will be actually used.

With this in mind the existing Set Static Address management command
has been extended to return the current settings. That way the caller
of that command can easily determine if the programmed address will
be used or if extra steps are required.

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