zephyr/subsys/bluetooth
Johan Hedberg 0cee4ed747 Bluetooth: Mesh: cfg_cli: Fix possible race condition
If the thread that sends the configuration messages has low priority
and is sending to the local node (a common use case currently) it's
possible that the response arrives before the cli->op_* state
variables are set, resulting in the message never getting properly
processed and the client API call timing out.

Split the initialization into a separete cli_prepare() call and add a
cli_reset() to clean up the variables in case of premature completion
of the client operation (e.g. due to message sending failure).

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2018-03-20 09:22:42 +02:00
..
common
controller Bluetooth: Remove rand driver and use entropy instead 2018-03-14 16:47:50 +01:00
host Bluetooth: Mesh: cfg_cli: Fix possible race condition 2018-03-20 09:22:42 +02:00
shell Bluetooth: controller: Refactor ticker integration into hal 2018-02-13 13:26:37 +01:00
CMakeLists.txt
Kconfig