Parent: fdbfe0018f6f216ff089c0e1db848ec8ae16585e
Author: Arkadiusz Bokowy <arkadiusz.bokowy@gmail.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-02-18 18:51:56
Tree: de3144d65e6fca253796d705afb913c3096b66fa
bthost: Set advertising intervals to valid value The range for LE advertising intervals shall be in range between 20 ms and 10,485,759.375 ms. Requesting other value should result in the unsupported feature or parameter value error code (0x11). After the modification in fa4d477, the btdev emulator no longer accepts uninitialized LE advertising intervals. To fix that, set the default LE advertising interval to the lowest possible value - 20 ms - in order to minimize tests delay cause by device discovery. Also, this commit fixes the detection of the high duty cycle directed connectable advertising and sets the advertising interval to 3 ms for such cases in order to be complaint with the spec.
Diffstat
| M | emulator/btdev.c | | | 11 | ++++++- - - - - |
| M | emulator/bthost.c | | | 3 | +++ |
2 files changed, 9 insertions(+), 5 deletions(-)