From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ v1] btdev: Fix checking for BR/EDR scan enable rather than LE for PA
Date: Wed, 9 Apr 2025 15:21:48 -0400 [thread overview]
Message-ID: <20250409192148.305768-1-luiz.dentz@gmail.com> (raw)
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
next reply other threads:[~2025-04-09 19:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-09 19:21 Luiz Augusto von Dentz [this message]
2025-04-09 22:03 ` [BlueZ,v1] btdev: Fix checking for BR/EDR scan enable rather than LE for PA bluez.test.bot
2025-04-09 22:30 ` [PATCH BlueZ v1] " patchwork-bot+bluetooth
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250409192148.305768-1-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox