zephyr/subsys
Piotr Pryga 0a497fcd55 Bluetooth: Controller: df: Fix wrong ant after switch pattern exhausted
Direction finding functionality does antenna switching during CTE
reception in AoA mode and CTE transmission in AoD mode. Antennas are
switched according to user provided antenna switch pattern. If a CTE
length is enough to exhaust all antenna ids in a switch pattern then
radio should loopback to reference antenna and continue from switching
from that. Current implementation loops back to antenna that is just
after reference antenna in the switch pattern.

The commit fixes that by insertion of the reference antenna
at the end of switch pattern. Radio will operate as it was before,
it will restart switching from the same index in a switch pattern.
At the same time reference antenna will be inserted into the loop
if switching pattern is exhausted. That also means, the maximum
number of antenna ids in a switch pattern has to be decreased by
one.

The commit also fixes lower bound in the BT_CTLR_DF_MAX_ANT_SW_PATTERN-
_LEN that should be equal two. It was set to three, because in the
past the antenna at index zero was used for reception of a PDU.
Now this antenna ID is provided by device tree configuration.

Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
2022-05-16 10:08:48 +02:00
..
bluetooth Bluetooth: Controller: df: Fix wrong ant after switch pattern exhausted 2022-05-16 10:08:48 +02:00
canbus subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
console subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
cpp subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
debug subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
demand_paging subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
dfu subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
disk subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
emul subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
fb subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
fs subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ipc subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
jwt subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
logging logging: syst: embed log message source IDs in Sys-T messages 2022-05-09 12:54:53 -05:00
lorawan subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
mgmt mgmt/mcumgr/lib: Make version string work with CONFIG_NEWLIB_LIBC 2022-05-15 21:33:05 +02:00
modbus subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
net net: lwm2m: Fix SenML CBOR input basename length 2022-05-13 10:15:27 -05:00
pm pm: device_runtime: return -ENOTSUP if PM not supported 2022-05-15 21:34:46 +02:00
portability subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
random subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
sd sd: increase SDMMC busy wait timeout 2022-05-09 08:46:29 -05:00
settings settings: add shell commands to write and delete settings 2022-05-13 10:11:40 -05:00
shell logging: shell: fix shell stats null pointer dereference 2022-05-15 21:32:10 +02:00
stats subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
storage subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
task_wdt subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
testsuite ztest: use TESTSUITE instead of test suite in output 2022-05-13 12:16:57 -04:00
timing subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
tracing subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
usb usb: dfu: Enable progressive erase for MCUX FlexSPI flash 2022-05-09 08:54:30 -05:00
CMakeLists.txt sd: Add common SD initialization code 2022-04-29 14:21:36 -05:00
Kconfig sd: Add common SD initialization code 2022-04-29 14:21:36 -05:00