Skip to contentSkip to conversation

Bluetooth: Replace own_address_type with force_static_address debugfs

PATCH Applied Marcel Holtmann 2 participants 2 messages Feb 20, 2014

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 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
index d3a8fff50f69..fe4b06bfc150 100644
@@ -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
#1 lore raw

Hi Marcel,

Quoted 9 lines · Marcel Holtmann

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.

Quoted 5 lines
---
 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