diff options
author | John Crispin <john@phrozen.org> | 2019-10-25 14:06:30 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2019-11-12 11:27:24 +0100 |
commit | e15147c272201eb17320c10ec95919e641bd03c5 (patch) | |
tree | da32cb8f066ec1e2d4657c423bd71f754dfad8c3 /wireless.h | |
parent | 7a723d0c797d28823f3d0eae9c72aca3ae69d976 (diff) |
wireless: make reconf opt-in and allow serializing configuration
Add option 'reconf' to make dynamic re-configuration opt-in.
Also add option 'serialize' to 'wifi-device' section and if set
configure interfaces of wireless devices one-by-one.
Both options are disabled by default.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'wireless.h')
-rw-r--r-- | wireless.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -15,6 +15,7 @@ #define __NETIFD_WIRELESS_H #include <libubox/utils.h> +#include <libubox/list.h> #include "interface.h" extern struct vlist_tree wireless_devices; @@ -35,6 +36,11 @@ struct wireless_driver { struct wireless_device { struct vlist_node node; + struct list_head handler; + bool handler_action; + bool handler_pending; + bool serialize; + struct wireless_driver *drv; struct vlist_tree interfaces; char *name; @@ -59,6 +65,7 @@ struct wireless_device { enum interface_state state; enum interface_config_state config_state; + bool reconf; bool cancel; int retry; |