linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] Extended Scan Hangs
@ 2022-07-06 22:23 John Klug
  2022-07-06 22:54 ` John Klug
  0 siblings, 1 reply; 3+ messages in thread
From: John Klug @ 2022-07-06 22:23 UTC (permalink / raw)
  To: Linux-Bluetooth MailingList

Bluez5 from master on 27 June 2022
1d6cfb8e625a944010956714c1802bc1e1fc6c4f
monitor: Fix crash when using RTT backend


Kernel:
5.4.199

After turning scan on, after a short time it hangs.  Here are the packets to start discovery:

< HCI Command: LE Set Exte.. (0x08|0x0042) plen 6  #1777 [hci0] 11:06:02.731748
        Extended scan: Enabled (0x01)
        Filter duplicates: Enabled (0x01)
        Duration: 0 msec (0x0000)
        Period: 0.00 sec (0x0000)
> HCI Event: Command Complete (0x0e) plen 4        #1778 [hci0] 11:06:02.741529
      LE Set Extended Scan Enable (0x08|0x0042) ncmd 1
        Status: Success (0x00)
@ MGMT Event: Command Complete (0x0001) plen 4  {0x0001} [hci0] 11:06:02.741819
      Start Discovery (0x0023) plen 1
        Status: Success (0x00)
        Address type: 0x06
          LE Public
          LE Random
@ MGMT Event: Discovering (0x0013) plen 2       {0x0001} [hci0] 11:06:02.741899
        Address type: 0x06
          LE Public
          LE Random
        Discovery: Enabled (0x01)


After a short time and 1215 devices found (0x0012), no commands may be executed:

bluetooth]# scan off
Failed to stop discovery: org.bluez.Error.InProgress

btmon output looks stuck.  Often the output stops in the middle of an event:

> HCI Event: LE Meta Event (0x3e) plen 41          #3484 [hci0] 11:06:13.493567
      LE Extended Advertising Report (0x0d)
        Num reports: 1
        Entry 0
          Event type: 0x0010
            Props: 0x0010
              Use legacy advertising PDUs
            Data status: ^[[0;32mComplete^[[0m
          Legacy PDU Type: ADV_NONCONN_IND (0x0010)
          Address type: Random (0x01)
          Address: 0C:7D:02:DB:5A:57 (Non-Resolvable)
          Prima

Note that "Primary PHY" is incomplete.

The hang during scan happens 100% of the time.



John Klug


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

end of thread, other threads:[~2022-07-07 20:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-06 22:23 [BUG] Extended Scan Hangs John Klug
2022-07-06 22:54 ` John Klug
2022-07-07 20:29   ` Luiz Augusto von Dentz

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).