From 2954e5b0228c85902c841bfb0f18add43980a2e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Sat, 5 Nov 2022 14:58:41 +0100 Subject: [PATCH] Resurrect wifi_mode but not as we knew it :-) --- config.proto | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/config.proto b/config.proto index 04dbefe..a5e8f80 100644 --- a/config.proto +++ b/config.proto @@ -249,23 +249,6 @@ message Config { */ message NetworkConfig { - enum WiFiMode { - /* - * This mode is used to connect to an external WiFi network - */ - CLIENT = 0; - - /* - * In this mode the node will operate as an AP (and DHCP server) - */ - ACCESS_POINT = 1; - - /* - * If set, the node AP will broadcast as a hidden SSID - */ - ACCESS_POINT_HIDDEN = 2; - } - enum EthMode { /* * obtain ip address via DHCP @@ -304,6 +287,11 @@ message Config { * Enable WiFi (disables Bluetooth) */ bool wifi_enabled = 1; + + /* + * acquire an address via DHCP or assign static + */ + EthMode wifi_mode = 2; /* * If set, this node will try to join the specified wifi network and