diff options
author | Brian Gix <brian.gix@intel.com> | 2022-09-22 15:31:02 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@intel.com> | 2022-09-26 13:14:47 -0700 |
commit | 9966cb8b6999a5f54fc13acbd7e1526512a84342 (patch) | |
tree | 340ca4b754716a30e8fb29a07423e31c8f704864 /mesh/mesh-io.h | |
parent | 491be481a91c39d31f7908da8a2beea60237646e (diff) | |
download | bluez-9966cb8b6999a5f54fc13acbd7e1526512a84342.tar.gz |
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.
Diffstat (limited to 'mesh/mesh-io.h')
-rw-r--r-- | mesh/mesh-io.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesh/mesh-io.h b/mesh/mesh-io.h index 80ef3fa3e..9dd946cdf 100644 --- a/mesh/mesh-io.h +++ b/mesh/mesh-io.h @@ -14,8 +14,10 @@ struct mesh_io; enum mesh_io_type { MESH_IO_TYPE_NONE = 0, + MESH_IO_TYPE_UNIT_TEST, + MESH_IO_TYPE_AUTO, /* If MGMT required, add after here */ + MESH_IO_TYPE_MGMT, MESH_IO_TYPE_GENERIC, - MESH_IO_TYPE_UNIT_TEST }; enum mesh_io_timing_type { |