Bluetooth: Replace own_address_type with force_static_address debugfs
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Replace own_address_type with force_static_address debugfs
The own_address_type debugfs option does not providing enough flexibity for interacting with the upcoming LE privacy support.
What really is needed is an option to force using the static address compared to the public address. The new force_static_address debugfs option does exactly that. In addition it is also only available when the controller does actually have a public address. For single mode LE only controllers this option will not be available.
--- include/net/bluetooth/hci.h | 1 + net/bluetooth/hci_core.c | 95 +++++++++++++++++++++++++++++---------------- 2 files changed, 63 insertions(+), 33 deletions(-)
include/net/bluetooth/hci.h +1 -0
@@ -118,6 +118,7 @@ enum {HCI_DEBUG_KEYS ,HCI_DUT_MODE ,HCI_FORCE_SC , +HCI_FORCE_STATIC_ADDR ,HCI_UNREGISTER , HCI_USER_CHANNEL,
net/bluetooth/hci_core.c +62 -33
124 lines not on this page · raw message
Signature · 1 line
1.8.5.3
Johan Hedberg
AppliedHi Marcel,
Quoted 9 lines · Marcel Holtmann
The
own_address_typedebugfs option does not providing enough flexibity for interacting with the upcoming LE privacy support.What really is needed is an option to force using the static address compared to the public address. The new
force_static_addressdebugfs option does exactly that. In addition it is also only available when the controller does actually have a public address. For single mode LE only controllers this option will not be available.
Quoted 5 lines
Signed-off-by Marcel Holtmann <[email protected]>--- include/net/bluetooth/hci.h | 1 + net/bluetooth/hci_core.c | 95 +++++++++++++++++++++++++++++---------------- 2 files changed, 63 insertions(+), 33 deletions(-)
Applied to bluetooth-next. Thanks.
Johan