]> git.karo-electronics.de Git - karo-tx-linux.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)
commitb4faf30096c3deb618392a88feaa7674cd55c257
tree73601c41ba3c871d7bf05ed42fd3164b9be82d43
parentc2f5ebd2148860537762c8d0d687efed73c2c2d0
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