sculpt_manager: remove invalid network node

With the recent Wifi::Manager changes setting an invalid SSID will
lead to a diagnostic warning. Since disconnecting is handled by
removing the existent '<network>' there is no reason to generate
an invalid node in the first place.

Issue #5356.
This commit is contained in:
Josef Söntgen 2024-10-08 11:52:40 +02:00
parent 0b9d3c3dcc
commit 31f9d414a3
No known key found for this signature in database
GPG Key ID: CFCD8B5D2D93D80E

View File

@ -176,14 +176,6 @@ struct Sculpt::Network : Noncopyable
xml.attribute("verbose", false);
xml.attribute("log_level", "error");
xml.node("network", [&]() {
/* generate attributes to ease subsequent manual tweaking */
xml.attribute("ssid", "");
xml.attribute("protection", "NONE");
xml.attribute("passphrase", "");
xml.attribute("auto_connect", false);
});
});
_runtime_config_generator.generate_runtime_config();