mesh: Add new kernel MGMT based IO transport
authorBrian Gix <brian.gix@intel.com>
Thu, 22 Sep 2022 22:31:02 +0000 (15:31 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:55 +0000 (14:55 +0530)
commit643f3401640dab1eddc0693f9b6002bd126d7250
treecb8d24952f45f1fbabf88ff0e58a4727e2b7f574
parentbef2d5ae515a0cef0ae56600dad03e220ef78a53
mesh: Add new kernel MGMT based IO transport

1. Re-structures MGMT handling such that it is used to detect kernel
   support of the mesh MGMT opcodes and events before selecting between
   using MGMT or the legacy raw HCI socket method.

2. Re-structures main() to allow command line to prefer MGMT over HCI or
   visa versa, plus optionally pass an explicte controller.

3. Adds mesh-io-mgmt as a transport.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
13 files changed:
Makefile.mesh
mesh/main.c
mesh/mesh-io-api.h
mesh/mesh-io-generic.c
mesh/mesh-io-mgmt.c [new file with mode: 0644]
mesh/mesh-io-mgmt.h [new file with mode: 0644]
mesh/mesh-io-unit.c
mesh/mesh-io.c
mesh/mesh-io.h
mesh/mesh-mgmt.c
mesh/mesh-mgmt.h
mesh/mesh.c
mesh/mesh.h