Topics

CONFIG_BT_PRIVACY cannot be enabled with Hci_uart sample #nrf52832 #hci

icephyr
 

Hi guys, I met a problem here and hop anybody can help.

I want to enable the config CONFIG_BT_PRIVACY, and according to the official document, the config depends on BT_SMP BT_CONN BT_HCI_HOST BT_HCI and BT。 So I have to set all these configs above to  "y"  first, but BT_HCI_HOST conflicts with config BT_HCI_RAW and I have to disable BT_HCI_RAW config if I want to enable BT_HCI_HOST.  But the hci_uart sample will compiled with errors if BT_HCI_RAW is disabled.

So I wonder how to enable CONFIG_BT_PRIVACY in hci_uart sample ?

thanks
config BT_HCI_HOST
  # Virtual/hidden option to make the conditions more intuitive
  bool
  default y
  depends on !BT_HCI_RAW
  select POLL
 
config BT_PRIVACY
    bool
    prompt "Privacy Feature" if BT_SMP && BT_CONN && BT_HCI_HOST && BT_HCI && BT depends on BT_SMP && BT_CONN && BT_HCI_HOST && BT_HCI && BT help Enable local Privacy Feature support. This makes it possible to use Resolvable Private Addresses (RPAs).

Carles Cufi
 

Hi there,

 

If you are building the hci_uart then CONFIG_BT_PRIVACY is irrelevant because it’s only tied to the Host. What you need is CONFIG_BT_CTLR_PRIVACY, which enables privacy in the controller.

 

Carles

 

From: devel@... <devel@...> On Behalf Of icephyr
Sent: 06 December 2018 04:34
To: devel@...
Subject: [Zephyr-devel] CONFIG_BT_PRIVACY cannot be enabled with Hci_uart sample #nrf52832 #hci

 

Hi guys, I met a problem here and hop anybody can help.

I want to enable the config CONFIG_BT_PRIVACY, and according to the official document, the config depends on BT_SMP BT_CONN BT_HCI_HOST BT_HCI and BT So I have to set all these configs above to  "y"  first, but BT_HCI_HOST conflicts with config BT_HCI_RAW and I have to disable BT_HCI_RAW config if I want to enable BT_HCI_HOST.  But the hci_uart sample will compiled with errors if BT_HCI_RAW is disabled.

So I wonder how to enable CONFIG_BT_PRIVACY in hci_uart sample ?

thanks

config BT_HCI_HOST

 

 

 

 

# Virtual/hidden option to make the conditions more intuitive

 

 

 

bool

 

 

 

default y

 

 

 

depends on !BT_HCI_RAW

 

 

 

select POLL

 

 

 

config BT_PRIVACY
    bool
    prompt "Privacy Feature" if BT_SMP && BT_CONN && BT_HCI_HOST && BT_HCI && BT depends on BT_SMP && BT_CONN && BT_HCI_HOST && BT_HCI && BT help Enable local Privacy Feature support. This makes it possible to use Resolvable Private Addresses (RPAs).

icephyr
 

Thanks Carles, I have realized it.