Bluetooth: MGMT: Fix LE simultaneous roles UUID if not supported
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 22 Dec 2021 20:22:00 +0000 (12:22 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 22 Dec 2021 22:01:35 +0000 (23:01 +0100)
commit76d0685bbac8ae017e5d12eba25fb3c4f0ec77ac
tree9ff9ce8ee1bb050ac6072f2b23995dfc61faf544
parent4fc9857ab8c6cfe2152df3288c8cf3300b929f1a
Bluetooth: MGMT: Fix LE simultaneous roles UUID if not supported

If controller/driver don't support LE simultaneous roles its UUID shall
be omitted when responding to MGMT_OP_READ_EXP_FEATURES_INFO.

This also rework the support introducing HCI_LE_SIMULTANEOUS_ROLES flag
so it can be detected when userspace wants to use or not.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci.h
net/bluetooth/hci_sync.c
net/bluetooth/mgmt.c