Public bug reported: Starting from v5.9-rc1, kernel initiated passive scan maybe interrupted immediately after enabled by a bluez initiated active scan, which results in no public owning address typed adv report event being received, and therefore no way to reconnect a previously paired device, which will listen to passive scan at that time. Example btsnoop log can be found:
< HCI Command: LE Set Extended S.. (0x08|0x0041) plen 8 #1120 [hci0] 33.537423 Own address type: Public (0x00) Filter policy: Ignore not in white list (0x01) PHYs: 0x01 Entry 0: LE 1M Type: Passive (0x00) Interval: 60.000 msec (0x0060) Window: 30.000 msec (0x0030) > HCI Event: Command Complete (0x0e) plen 4 #1121 [hci0] 33.538323 LE Set Extended Scan Parameters (0x08|0x0041) ncmd 1 Status: Success (0x00) < HCI Command: LE Set Extended S.. (0x08|0x0042) plen 6 #1122 [hci0] 33.538363 Extended scan: Enabled (0x01) Filter duplicates: Enabled (0x01) Duration: 0 msec (0x0000) Period: 0.00 sec (0x0000) > HCI Event: Command Complete (0x0e) plen 4 #1123 [hci0] 33.540331 LE Set Extended Scan Enable (0x08|0x0042) ncmd 2 Status: Success (0x00) @ MGMT Command: Start Service Disc.. (0x003a) plen 4 {0x0001} [hci0] 33.960088 Address type: 0x07 BR/EDR LE Public LE Random RSSI: invalid (0x7f) UUIDs: 0 < HCI Command: LE Set Extended S.. (0x08|0x0042) plen 6 #1124 [hci0] 33.960225 Extended scan: Disabled (0x00) Filter duplicates: Disabled (0x00) Duration: 0 msec (0x0000) Period: 0.00 sec (0x0000) > HCI Event: Command Complete (0x0e) plen 4 #1125 [hci0] 33.963335 LE Set Extended Scan Enable (0x08|0x0042) ncmd 2 Status: Success (0x00) < HCI Command: LE Set Random Add.. (0x08|0x0005) plen 6 #1126 [hci0] 33.963415 Address: 35:88:64:2F:21:A2 (Non-Resolvable) > HCI Event: Command Complete (0x0e) plen 4 #1127 [hci0] 33.965548 LE Set Random Address (0x08|0x0005) ncmd 1 Status: Success (0x00) < HCI Command: LE Set Extended S.. (0x08|0x0041) plen 8 #1128 [hci0] 33.965623 Own address type: Random (0x01) Filter policy: Accept all advertisement (0x00) PHYs: 0x01 Entry 0: LE 1M Type: Active (0x01) Interval: 22.500 msec (0x0024) Window: 11.250 msec (0x0012) > HCI Event: Command Complete (0x0e) plen 4 #1129 [hci0] 33.966501 LE Set Extended Scan Parameters (0x08|0x0041) ncmd 1 Status: Success (0x00) < HCI Command: LE Set Extended S.. (0x08|0x0042) plen 6 #1130 [hci0] 33.966560 Extended scan: Enabled (0x01) Filter duplicates: Enabled (0x01) Duration: 0 msec (0x0000) Period: 0.00 sec (0x0000) > HCI Event: Command Complete (0x0e) plen 4 #1131 [hci0] 33.967291 LE Set Extended Scan Enable (0x08|0x0042) ncmd 2 Status: Success (0x00) < HCI Command: Inquiry (0x01|0x0001) plen 5 #1132 [hci0] 33.967305 Access code: 0x9e8b33 (General Inquiry) Length: 10.24s (0x08) Num responses: 0 > HCI Event: Command Status (0x0f) plen 4 #1133 [hci0] 33.968266 Inquiry (0x01|0x0001) ncmd 2 Status: Success (0x00) @ MGMT Event: Command Complete (0x0001) plen 4 {0x0001} [hci0] 33.968484 Start Service Discovery (0x003a) plen 1 Status: Success (0x00) Address type: 0x07 BR/EDR LE Public LE Random ProblemType: Bug DistroRelease: Ubuntu 21.04 Package: bluetooth (not installed) Uname: Linux 5.9.0-050900rc1-generic x86_64 ApportVersion: 2.20.11-0ubuntu55 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Mon Dec 28 03:01:16 2020 InstallationDate: Installed on 2020-09-14 (105 days ago) InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731) InterestingModules: rfcomm bnep btusb bluetooth Lsusb: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0c45:6715 Microdia Integrated_Webcam_HD Bus 001 Device 002: ID 04f3:0c01 Elan Microelectronics Corp. ELAN:Fingerprint Bus 001 Device 004: ID 8087:0025 Intel Corp. Wireless-AC 9260 Bluetooth Adapter Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: Dell Inc. Inspiron 7380 ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.9.0-050900rc1-generic root=UUID=944d91f1-e71c-44ef-8c76-76a0bdd22bf5 ro quiet splash vt.handoff=7 SourcePackage: bluez UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 08/08/2018 dmi.bios.release: 1.1 dmi.bios.vendor: Dell Inc. dmi.bios.version: 1.1.0 dmi.board.vendor: Dell Inc. dmi.chassis.type: 10 dmi.chassis.vendor: Dell Inc. dmi.modalias: dmi:bvnDellInc.:bvr1.1.0:bd08/08/2018:br1.1:svnDellInc.:pnInspiron7380:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct10:cvr: dmi.product.family: Inspiron dmi.product.name: Inspiron 7380 dmi.product.sku: 08A5 dmi.sys.vendor: Dell Inc. hciconfig: hci0: Type: Primary Bus: USB BD Address: 94:B8:6D:F8:8A:67 ACL MTU: 1021:4 SCO MTU: 96:6 UP RUNNING PSCAN ISCAN INQUIRY RX bytes:155124 acl:178 sco:0 events:3124 errors:0 TX bytes:10259 acl:53 sco:0 commands:972 errors:0 ** Affects: linux (Ubuntu) Importance: Undecided Status: Confirmed ** Affects: linux-oem-5.10 (Ubuntu) Importance: Undecided Status: New ** Affects: linux (Ubuntu Focal) Importance: Undecided Status: New ** Affects: linux-oem-5.10 (Ubuntu Focal) Importance: Undecided Status: New ** Affects: linux (Ubuntu Hirsute) Importance: Undecided Status: Confirmed ** Affects: linux-oem-5.10 (Ubuntu Hirsute) Importance: Undecided Status: New ** Tags: amd64 apport-bug hirsute ** Attachment added: "btsnoop.5.9.0-050900rc1-generic" https://bugs.launchpad.net/bugs/1909450/+attachment/5447337/+files/btsnoop.5.9.0-050900rc1-generic -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1909450 Title: bluetooth failed to reconnect a previously paired device after airplane mode Status in linux package in Ubuntu: Confirmed Status in linux-oem-5.10 package in Ubuntu: New Status in linux source package in Focal: New Status in linux-oem-5.10 source package in Focal: New Status in linux source package in Hirsute: Confirmed Status in linux-oem-5.10 source package in Hirsute: New Bug description: Starting from v5.9-rc1, kernel initiated passive scan maybe interrupted immediately after enabled by a bluez initiated active scan, which results in no public owning address typed adv report event being received, and therefore no way to reconnect a previously paired device, which will listen to passive scan at that time. Example btsnoop log can be found: < HCI Command: LE Set Extended S.. (0x08|0x0041) plen 8 #1120 [hci0] 33.537423 Own address type: Public (0x00) Filter policy: Ignore not in white list (0x01) PHYs: 0x01 Entry 0: LE 1M Type: Passive (0x00) Interval: 60.000 msec (0x0060) Window: 30.000 msec (0x0030) > HCI Event: Command Complete (0x0e) plen 4 #1121 [hci0] 33.538323 LE Set Extended Scan Parameters (0x08|0x0041) ncmd 1 Status: Success (0x00) < HCI Command: LE Set Extended S.. (0x08|0x0042) plen 6 #1122 [hci0] 33.538363 Extended scan: Enabled (0x01) Filter duplicates: Enabled (0x01) Duration: 0 msec (0x0000) Period: 0.00 sec (0x0000) > HCI Event: Command Complete (0x0e) plen 4 #1123 [hci0] 33.540331 LE Set Extended Scan Enable (0x08|0x0042) ncmd 2 Status: Success (0x00) @ MGMT Command: Start Service Disc.. (0x003a) plen 4 {0x0001} [hci0] 33.960088 Address type: 0x07 BR/EDR LE Public LE Random RSSI: invalid (0x7f) UUIDs: 0 < HCI Command: LE Set Extended S.. (0x08|0x0042) plen 6 #1124 [hci0] 33.960225 Extended scan: Disabled (0x00) Filter duplicates: Disabled (0x00) Duration: 0 msec (0x0000) Period: 0.00 sec (0x0000) > HCI Event: Command Complete (0x0e) plen 4 #1125 [hci0] 33.963335 LE Set Extended Scan Enable (0x08|0x0042) ncmd 2 Status: Success (0x00) < HCI Command: LE Set Random Add.. (0x08|0x0005) plen 6 #1126 [hci0] 33.963415 Address: 35:88:64:2F:21:A2 (Non-Resolvable) > HCI Event: Command Complete (0x0e) plen 4 #1127 [hci0] 33.965548 LE Set Random Address (0x08|0x0005) ncmd 1 Status: Success (0x00) < HCI Command: LE Set Extended S.. (0x08|0x0041) plen 8 #1128 [hci0] 33.965623 Own address type: Random (0x01) Filter policy: Accept all advertisement (0x00) PHYs: 0x01 Entry 0: LE 1M Type: Active (0x01) Interval: 22.500 msec (0x0024) Window: 11.250 msec (0x0012) > HCI Event: Command Complete (0x0e) plen 4 #1129 [hci0] 33.966501 LE Set Extended Scan Parameters (0x08|0x0041) ncmd 1 Status: Success (0x00) < HCI Command: LE Set Extended S.. (0x08|0x0042) plen 6 #1130 [hci0] 33.966560 Extended scan: Enabled (0x01) Filter duplicates: Enabled (0x01) Duration: 0 msec (0x0000) Period: 0.00 sec (0x0000) > HCI Event: Command Complete (0x0e) plen 4 #1131 [hci0] 33.967291 LE Set Extended Scan Enable (0x08|0x0042) ncmd 2 Status: Success (0x00) < HCI Command: Inquiry (0x01|0x0001) plen 5 #1132 [hci0] 33.967305 Access code: 0x9e8b33 (General Inquiry) Length: 10.24s (0x08) Num responses: 0 > HCI Event: Command Status (0x0f) plen 4 #1133 [hci0] 33.968266 Inquiry (0x01|0x0001) ncmd 2 Status: Success (0x00) @ MGMT Event: Command Complete (0x0001) plen 4 {0x0001} [hci0] 33.968484 Start Service Discovery (0x003a) plen 1 Status: Success (0x00) Address type: 0x07 BR/EDR LE Public LE Random ProblemType: Bug DistroRelease: Ubuntu 21.04 Package: bluetooth (not installed) Uname: Linux 5.9.0-050900rc1-generic x86_64 ApportVersion: 2.20.11-0ubuntu55 Architecture: amd64 CasperMD5CheckResult: skip CurrentDesktop: ubuntu:GNOME Date: Mon Dec 28 03:01:16 2020 InstallationDate: Installed on 2020-09-14 (105 days ago) InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731) InterestingModules: rfcomm bnep btusb bluetooth Lsusb: Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0c45:6715 Microdia Integrated_Webcam_HD Bus 001 Device 002: ID 04f3:0c01 Elan Microelectronics Corp. ELAN:Fingerprint Bus 001 Device 004: ID 8087:0025 Intel Corp. Wireless-AC 9260 Bluetooth Adapter Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: Dell Inc. Inspiron 7380 ProcEnviron: TERM=xterm-256color PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.9.0-050900rc1-generic root=UUID=944d91f1-e71c-44ef-8c76-76a0bdd22bf5 ro quiet splash vt.handoff=7 SourcePackage: bluez UpgradeStatus: No upgrade log present (probably fresh install) dmi.bios.date: 08/08/2018 dmi.bios.release: 1.1 dmi.bios.vendor: Dell Inc. dmi.bios.version: 1.1.0 dmi.board.vendor: Dell Inc. dmi.chassis.type: 10 dmi.chassis.vendor: Dell Inc. dmi.modalias: dmi:bvnDellInc.:bvr1.1.0:bd08/08/2018:br1.1:svnDellInc.:pnInspiron7380:pvr:rvnDellInc.:rn:rvr:cvnDellInc.:ct10:cvr: dmi.product.family: Inspiron dmi.product.name: Inspiron 7380 dmi.product.sku: 08A5 dmi.sys.vendor: Dell Inc. hciconfig: hci0: Type: Primary Bus: USB BD Address: 94:B8:6D:F8:8A:67 ACL MTU: 1021:4 SCO MTU: 96:6 UP RUNNING PSCAN ISCAN INQUIRY RX bytes:155124 acl:178 sco:0 events:3124 errors:0 TX bytes:10259 acl:53 sco:0 commands:972 errors:0 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1909450/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp