linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* mesh: scan params specify random address, but no random address set
@ 2020-01-11 14:09 Steve Brown
  2020-01-13  7:30 ` Jamie Mccrae
  0 siblings, 1 reply; 2+ messages in thread
From: Steve Brown @ 2020-01-11 14:09 UTC (permalink / raw)
  To: linux-bluetooth

I'm using the Zephyr hci implementation on a bt dongle. It complains
that no random address is set when scan enable is sent.

My RPi doesn't care if a random address is set or not.

Steve

btmon says:

      LE Set Scan Parameters (0x08|0x000b) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Parameters (0x08|0x000b) plen 7   #289 [hci0] 409.412208
        Type: Passive (0x00)
        Interval: 10.000 msec (0x0010)
        Window: 10.000 msec (0x0010)
        Own address type: Random (0x01)
        Filter policy: Accept all advertisement (0x00)
> HCI Event: Command Complete (0x0e) plen 4                  #290 [hci0] 409.413191
      LE Set Scan Parameters (0x08|0x000b) ncmd 1
        Status: Success (0x00)
< HCI Command: LE Set Scan Enable (0x08|0x000c) plen 2       #291 [hci0] 409.413205
        Scanning: Enabled (0x01)
        Filter duplicates: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 4                  #292 [hci0] 409.429192
      LE Set Scan Enable (0x08|0x000c) ncmd 1
        Status: Invalid HCI Command Parameters (0x12)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: mesh: scan params specify random address, but no random address set
  2020-01-11 14:09 mesh: scan params specify random address, but no random address set Steve Brown
@ 2020-01-13  7:30 ` Jamie Mccrae
  0 siblings, 0 replies; 2+ messages in thread
From: Jamie Mccrae @ 2020-01-13  7:30 UTC (permalink / raw)
  To: Steve Brown, linux-bluetooth

> I'm using the Zephyr hci implementation on a bt dongle. It complains
> that no random address is set when scan enable is sent.
>
> My RPi doesn't care if a random address is set or not.
>
> Steve

Hi Steve,
You need an address set because of directed advertising. You need to update your zephyr project to include a random, address, this is covered quite extensively on the zephyr documentation and discussions for Nordic chipsets.
Thanks,
Jamie
THIS MESSAGE, ANY ATTACHMENT(S), AND THE INFORMATION CONTAINED HEREIN MAY BE PROPRIETARY TO LAIRD CONNECTIVITY, INC. AND/OR ANOTHER PARTY, AND MAY FURTHER BE INTENDED TO BE KEPT CONFIDENTIAL. IF YOU ARE NOT THE INTENDED RECIPIENT, PLEASE DELETE THE EMAIL AND ANY ATTACHMENTS, AND IMMEDIATELY NOTIFY THE SENDER BY RETURN EMAIL. THIS MESSAGE AND ITS CONTENTS ARE THE PROPERTY OF LAIRD CONNECTIVITY, INC. AND MAY NOT BE REPRODUCED OR USED WITHOUT THE EXPRESS WRITTEN CONSENT OF LAIRD CONNECTIVITY, INC.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-13  7:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-11 14:09 mesh: scan params specify random address, but no random address set Steve Brown
2020-01-13  7:30 ` Jamie Mccrae

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).