Skip to content

Commit eed14eb

Browse files
committed
Bluetooth: MGMT: Add LL Privacy Setting
This adds LL Privacy (bit 22) to Read Controller Information so the likes of bluetoothd(1) can detect when the controller supports it or not. Fixes: e209e5c ("Bluetooth: MGMT: Mark LL Privacy as stable") Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent 3a7fdfb commit eed14eb

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

include/net/bluetooth/mgmt.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ struct mgmt_rp_read_index_list {
113113
#define MGMT_SETTING_CIS_PERIPHERAL BIT(19)
114114
#define MGMT_SETTING_ISO_BROADCASTER BIT(20)
115115
#define MGMT_SETTING_ISO_SYNC_RECEIVER BIT(21)
116+
#define MGMT_SETTING_LL_PRIVACY BIT(22)
116117

117118
#define MGMT_OP_READ_INFO 0x0004
118119
#define MGMT_READ_INFO_SIZE 0

net/bluetooth/mgmt.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -851,6 +851,9 @@ static u32 get_supported_settings(struct hci_dev *hdev)
851851
if (cis_peripheral_capable(hdev))
852852
settings |= MGMT_SETTING_CIS_PERIPHERAL;
853853

854+
if (ll_privacy_capable(hdev))
855+
settings |= MGMT_SETTING_LL_PRIVACY;
856+
854857
settings |= MGMT_SETTING_PHY_CONFIGURATION;
855858

856859
return settings;
@@ -933,6 +936,9 @@ static u32 get_current_settings(struct hci_dev *hdev)
933936
if (sync_recv_capable(hdev))
934937
settings |= MGMT_SETTING_ISO_SYNC_RECEIVER;
935938

939+
if (ll_privacy_capable(hdev))
940+
settings |= MGMT_SETTING_LL_PRIVACY;
941+
936942
return settings;
937943
}
938944

0 commit comments

Comments
 (0)