Bluetooth: MGMT: Mark LL Privacy as stable
Subsystems (2)
Luiz Augusto von Dentz
maintainerPATCH v2 1/1 Bluetooth: MGMT: Mark LL Privacy as stable
From: Luiz Augusto von Dentz <[email protected]>
This marks LL Privacy as stable by removing its experimental UUID and move its functionality to Device Flag (HCI_CONN_FLAG_ADDRESS_RESOLUTION) which can be set by MGMT Device Set Flags so userspace retain control of the feature.
Signed-off-by Luiz Augusto von Dentz <[email protected]>
--- include/net/bluetooth/hci.h | 1 - include/net/bluetooth/hci_core.h | 11 +-- net/bluetooth/hci_sync.c | 48 ++++++----- net/bluetooth/mgmt.c | 133 +------------------------------ 4 files changed, 31 insertions(+), 162 deletions(-)
include/net/bluetooth/hci.h +0 -1
@@ -422,7 +422,6 @@ enum {HCI_FORCE_BREDR_SMP ,HCI_FORCE_STATIC_ADDR ,HCI_LL_RPA_RESOLUTION , -HCI_ENABLE_LL_PRIVACY ,HCI_CMD_PENDING ,HCI_FORCE_NO_MITM , HCI_QUALITY_REPORT,
include/net/bluetooth/hci_core.h +4 -7
@@ -157,8 +157,9 @@ struct bdaddr_list_with_irk {/* Bitmask of connection flags */ enum hci_conn_flags { -HCI_CONN_FLAG_REMOTE_WAKEUP =1 , -HCI_CONN_FLAG_DEVICE_PRIVACY =2 , +HCI_CONN_FLAG_REMOTE_WAKEUP =BIT (0 ), +HCI_CONN_FLAG_DEVICE_PRIVACY =BIT (1 ), +HCI_CONN_FLAG_ADDRESS_RESOLUTION =BIT (2 ), };typedef u8 hci_conn_flags_t ;
@@ -1852,11 +1853,7 @@ void hci_conn_del_sysfs(struct hci_conn *conn);#define ll_privacy_capable (dev) ((dev)->le_features[0] & HCI_LE_LL_PRIVACY) -/* Use LL Privacy based address resolution if supported */ -#define use_ll_privacy (dev) (ll_privacy_capable(dev) && \ - hci_dev_test_flag(dev, HCI_ENABLE_LL_PRIVACY)) - -#define privacy_mode_capable (dev) (use_ll_privacy(dev) && \ +#define privacy_mode_capable (dev) (ll_privacy_capable(dev) && \ (hdev->commands[39] & 0x04))#define read_key_size_capable (dev) \
net/bluetooth/hci_sync.c +26 -22
152 lines not on this page · raw message
net/bluetooth/mgmt.c +1 -132
187 lines not on this page · raw message
Signature · 1 line
2.46.0