zephyr/subsys/lorawan
Jordan Yates df66cca6b6 lorawan: always wait for MAC ops to complete
Wait for MAC operations to complete when transmitting. Unconfirmed
messages still open receive windows and can cause error conditions,
which are currently dropped.

It is also possible for a second send to be requested before the first
one has finished processing, which results in `LORAMAC_STATUS_BUSY`.
Empty frames (due to insufficient payload space) now also block until
the MAC layer is ready to accept new commands.

This change means the application no longer needs to guess-and-check
when it is possible to send unconfirmed messages.

Fixes #33456.

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2021-04-20 12:42:56 +02:00
..
CMakeLists.txt lorawan: Cleanup error handling code 2020-10-08 12:15:38 +02:00
Kconfig
lorawan.c lorawan: always wait for MAC ops to complete 2021-04-20 12:42:56 +02:00
lw_priv.c lorawan: Cleanup error handling code 2020-10-08 12:15:38 +02:00
lw_priv.h lorawan: Cleanup error handling code 2020-10-08 12:15:38 +02:00