]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb5a384df8f79a757c21d5374e9610ab6df53633d
treead2744a305b0e5c907a694cdb64984d4143d79cf
parent1ea55bc7a814c39a0762e9a3c2ff5c42bc1a39dc
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