Parent: 183c843c084a2d2f9521efac2cdc81af60a75f84
Author: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-02-13 17:18:35
Tree: 161764c5a14009fdfcaa40372ad024f132fc91ca
btdev: Broadcast EXT_ADV packets based on its interval Real BLE devices transmit LE advertisement report packages in given intervals (typically in range between 20 ms and 10.24 s). With current kernel module Bluetooth stack implementation it is possible that the first LE meta packet just after enabling scanning will be lost. It is not an issue for real devices, because more advertisement reports will be delivered later (in given interval time). This patch changes optimistic implementation of sending only one LE meta packets just after enabling scanning to sending LE meta packets every minimal interval thus emulating what a real controller would do and will work around the issue of dropping the very first LE meta packet by the kernel. For direct advertising, the 10ms interval is used to provide high duty cycle advertising.
Diffstat
| M | emulator/btdev.c | | | 121 | ++++++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
1 files changed, 55 insertions(+), 66 deletions(-)