]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Set LE advertising parameters before enabling it
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 6 Oct 2013 10:17:56 +0000 (03:17 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 6 Oct 2013 12:59:25 +0000 (14:59 +0200)
commit3b49effceada94f295c5b71e0a0d27bbec9c1461
tree73601c41ba3c871d7bf05ed42fd3164b9be82d43
parent997cc2bc295f7316ca522e9a852d7720d09041bc
Bluetooth: Set LE advertising parameters before enabling it

The LE advertising parameters can only be modified when advertising
is disabled. So before enabling it, make sure the controller has all
the right parameters.

Right now all default values are used and thus this does no change
any existing behavior. One minor exception is that in case of single
mode LE-only controllers without a public address, now the random
address is used for advertising.

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