Bluetooth: Change MGMT security info CMD to be more generic
authorDaniel Winkler <danielwinkler@google.com>
Thu, 3 Dec 2020 20:12:52 +0000 (12:12 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 7 Dec 2020 15:01:42 +0000 (17:01 +0200)
commit4d9b952857533b61c662d59dc413094b0c4c8231
treefeca8b0643645bb67ea56db7799b71552bff511a
parent7c395ea521e6c8d77f643be61bf2f0f3a1f5b3e8
Bluetooth: Change MGMT security info CMD to be more generic

For advertising, we wish to know the LE tx power capabilities of the
controller in userspace, so this patch edits the Security Info MGMT
command to be more generic, such that other various controller
capabilities can be included in the EIR data. This change also includes
the LE min and max tx power into this newly-named command.

The change was tested by manually verifying that the MGMT command
returns the tx power range as expected in userspace.

Reviewed-by: Sonny Sasaka <sonnysasaka@chromium.org>
Signed-off-by: Daniel Winkler <danielwinkler@google.com>
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