Skip to content

Commit

Permalink
Bluetooth: MGMT: Add LL Privacy Setting
Browse files Browse the repository at this point in the history
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 <luiz.von.dentz@intel.com>
  • Loading branch information
Luiz Augusto von Dentz committed Mar 25, 2025
1 parent 3a7fdfb commit eed14eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/net/bluetooth/mgmt.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ struct mgmt_rp_read_index_list {
#define MGMT_SETTING_CIS_PERIPHERAL BIT(19)
#define MGMT_SETTING_ISO_BROADCASTER BIT(20)
#define MGMT_SETTING_ISO_SYNC_RECEIVER BIT(21)
#define MGMT_SETTING_LL_PRIVACY BIT(22)

#define MGMT_OP_READ_INFO 0x0004
#define MGMT_READ_INFO_SIZE 0
Expand Down
6 changes: 6 additions & 0 deletions net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,9 @@ static u32 get_supported_settings(struct hci_dev *hdev)
if (cis_peripheral_capable(hdev))
settings |= MGMT_SETTING_CIS_PERIPHERAL;

if (ll_privacy_capable(hdev))
settings |= MGMT_SETTING_LL_PRIVACY;

settings |= MGMT_SETTING_PHY_CONFIGURATION;

return settings;
Expand Down Expand Up @@ -933,6 +936,9 @@ static u32 get_current_settings(struct hci_dev *hdev)
if (sync_recv_capable(hdev))
settings |= MGMT_SETTING_ISO_SYNC_RECEIVER;

if (ll_privacy_capable(hdev))
settings |= MGMT_SETTING_LL_PRIVACY;

return settings;
}

Expand Down

0 comments on commit eed14eb

Please sign in to comment.