diff mbox series

[BlueZ,v1,1/3] btdev: Fix not clearing le_pa_sync_handle on reset

Message ID 20240125142936.3373953-1-luiz.dentz@gmail.com
State New
Headers show
Series [BlueZ,v1,1/3] btdev: Fix not clearing le_pa_sync_handle on reset | expand

Commit Message

Luiz Augusto von Dentz Jan. 25, 2024, 2:29 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

le_pa_sync_handle needs to be clear on reset otherwise the coce won't
be able to handle Create PA Sync commands.
---
 emulator/btdev.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/emulator/btdev.c b/emulator/btdev.c
index 65ad0a40cb43..da94f29d12aa 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -562,6 +562,7 @@  static void btdev_reset(struct btdev *btdev)
 	btdev->le_scan_enable		= 0x00;
 	btdev->le_adv_enable		= 0x00;
 	btdev->le_pa_enable		= 0x00;
+	btdev->le_pa_sync_handle	= 0x0000;
 
 	al_clear(btdev);
 	rl_clear(btdev);