summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-wifi.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-11-04 20:04:33 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-11-05 18:05:00 +0100
commit2b07a3211ba8b1b81d6cebb9650d5cb24554b08a (patch)
tree4c16e5a9c9729b5e8747f734f9d62e90d58e085d /src/network/networkd-wifi.c
parentnetwork: split out link_enter_unmanaged() from link_reconfigure_impl() (diff)
downloadsystemd-2b07a3211ba8b1b81d6cebb9650d5cb24554b08a.tar.xz
systemd-2b07a3211ba8b1b81d6cebb9650d5cb24554b08a.zip
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.
Diffstat (limited to '')
-rw-r--r--src/network/networkd-wifi.c4
1 files changed, 2 insertions, 2 deletions
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);