Parent: d64f6c885580ef23eb28e53edf1a007bb3628804
Author: Inga Stotland <inga.stotland@intel.com>
Committer: Brian Gix <brian.gix@intel.com>
Date: 2019-11-15 19:23:16
Tree: bfe1bdf313cf6ecc4090e452b1708d0c1dacc98a
mesh: Fix io inititalization sequence This introduces a chain of callbacks to indicate whether mesh io is initialized and mesh network is ready to use. This fixes the reported situation when the receive callbacks were setup before the HCI was fully initialized. In other words, BT_HCI_CMD_LE_SET_SCAN_PARAMETERS was called before BT_HCI_CMD_RESET and, as the result, the callback issueing BT_HCI_CMD_LE_SET_SCAN_ENABLE command was not called.
Diffstat
| M | mesh/main.c | | | 42 | +++++++++++++++++++++++++++++- - - - - - - - - - - - - |
| M | mesh/mesh-io-api.h | | | 3 | ++- |
| M | mesh/mesh-io-generic.c | | | 48 | ++++++++++++++++++++++++++++++++++++- - - - - - - - - - - - |
| M | mesh/mesh-io.c | | | 5 | +++- - |
| M | mesh/mesh-io.h | | | 6 | +++++- |
| M | mesh/mesh.c | | | 33 | ++++++++++++++++++++++++++++- - - - - |
| M | mesh/mesh.h | | | 5 | ++++- |
7 files changed, 107 insertions(+), 35 deletions(-)