Diff between 04a8966972d0ff14a14437dad75f67b2f8959f55 and a6d35e91b80b6f52323003254affa944bdee6287
Changed Files
| File | Additions | Deletions | Status |
| emulator/btdev.c | +1 | -1 | modified |
Full Patch
diff --git a/emulator/btdev.c b/emulator/btdev.c
index 99e3e5c..67c932d 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -4273,7 +4273,7 @@ static int cmd_set_rl_enable(struct btdev *dev, const void *data, uint8_t len)
* • an HCI_LE_Create_Connection, HCI_LE_Extended_Create_Connection,
* or HCI_LE_Periodic_Advertising_Create_Sync command is outstanding.
*/
- if (dev->le_adv_enable || dev->le_scan_enable)
+ if ((dev->le_adv_enable && !dev->le_pa_enable) || dev->le_scan_enable)
return -EPERM;
/* Valid range for address resolution enable is 0x00 to 0x01 */