From 2b07a3211ba8b1b81d6cebb9650d5cb24554b08a Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 5 Nov 2024 04:04:33 +0900 Subject: network: several cleanups for link_reconfigure() Effectively no functional changes, just refactoring and preparation for later changes. - convert boolean flag 'force' to LinkReconfigurationFlag enum, - merge link_reconfigure() and reconfigure_handler_on_bus_method_reload() as link_reconfigure_full(), - Rename ReconfigureData -> LinkReconfigurationData, - make Reconfigure() DBus message wait for reconfiguration being started before sending reply. --- src/network/networkd-wifi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/network/networkd-wifi.c') diff --git a/src/network/networkd-wifi.c b/src/network/networkd-wifi.c index ee63c3ec96..bc1d79adce 100644 --- a/src/network/networkd-wifi.c +++ b/src/network/networkd-wifi.c @@ -287,7 +287,7 @@ int manager_genl_process_nl80211_mlme(sd_netlink *genl, sd_netlink_message *mess * To make SSID= or other WiFi related settings in [Match] section work, let's try to * reconfigure the interface. */ if (link->ssid && link_has_carrier(link)) { - r = link_reconfigure_impl(link, /* force = */ false); + r = link_reconfigure_impl(link, /* flags = */ 0); if (r < 0) { log_link_warning_errno(link, r, "Failed to reconfigure interface: %m"); link_enter_failed(link); @@ -326,7 +326,7 @@ int manager_genl_process_nl80211_mlme(sd_netlink *genl, sd_netlink_message *mess } /* If necessary, reconfigure based on those new properties */ - r = link_reconfigure_impl(link, /* force = */ false); + r = link_reconfigure_impl(link, /* flags = */ 0); if (r < 0) { log_link_warning_errno(link, r, "Failed to reconfigure interface: %m"); link_enter_failed(link); -- cgit v1.2.3