diff options
author | Inga Stotland <inga.stotland@gmail.com> | 2023-05-05 12:39:31 -0700 |
---|---|---|
committer | Brian Gix <brian.gix@gmail.com> | 2023-05-12 11:22:14 -0700 |
commit | 93d0d8b2fc696212743be2fe9cedcf0edb1073d4 (patch) | |
tree | 8657b05f8c1b87af1655d1381e41045a35c87e84 /mesh/mesh-mgmt.c | |
parent | 8c452c2ec1739efe581273bacd738e5294d0ca0f (diff) | |
download | bluez-93d0d8b2fc696212743be2fe9cedcf0edb1073d4.tar.gz |
mesh: Update the behavior of --io option
This aligns the behavior of command line option --io to
add new "auto" value and modify the behavior of "generic"
value:
*auto* - Use first available controller: via MGMT interface
if kernel supports it, otherwise, via raw HCI socket (i.e.,
default to *generic*).
*generic:[hci]<index>* - Use generic HCI io on interface hci<index>
The default value is now *auto*, whereas *generic* is used
only if the specific HCI controller is explicitly specified.
Diffstat (limited to 'mesh/mesh-mgmt.c')
-rw-r--r-- | mesh/mesh-mgmt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mesh/mesh-mgmt.c b/mesh/mesh-mgmt.c index d37aeb5ac..fd21a168a 100644 --- a/mesh/mesh-mgmt.c +++ b/mesh/mesh-mgmt.c @@ -271,3 +271,8 @@ bool mesh_mgmt_unregister(unsigned int id) { return mgmt_unregister(mgmt_mesh, id); } + +void mesh_mgmt_clear(void) +{ + l_queue_clear(ctl_list, l_free); +} |