[BUG] Extended Scan Hangs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux