public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ v1] btdev: Fix checking for BR/EDR scan enable rather than LE for PA
@ 2025-04-09 19:21 Luiz Augusto von Dentz
  2025-04-09 22:03 ` [BlueZ,v1] " bluez.test.bot
  2025-04-09 22:30 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2025-04-09 19:21 UTC (permalink / raw)
  To: linux-bluetooth

From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

PA is exclusive to LE so le_scan_enable flag shall be checked not
scan_enable.
---
 emulator/btdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emulator/btdev.c b/emulator/btdev.c
index 1b7b75c21399..7e4cb9393593 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -5750,7 +5750,7 @@ static int cmd_pa_create_sync_complete(struct btdev *dev, const void *data,
 	 * synchronization can only occur when scanning is enabled. While
 	 * scanning is disabled, no attempt to synchronize will take place.
 	 */
-	if (!dev->scan_enable)
+	if (!dev->le_scan_enable)
 		return 0;
 
 	remote = find_btdev_by_bdaddr_type(cmd->addr, cmd->addr_type);
-- 
2.49.0


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

end of thread, other threads:[~2025-04-09 22:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-09 19:21 [PATCH BlueZ v1] btdev: Fix checking for BR/EDR scan enable rather than LE for PA Luiz Augusto von Dentz
2025-04-09 22:03 ` [BlueZ,v1] " bluez.test.bot
2025-04-09 22:30 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox