diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-11-22 14:24:32 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-11-22 14:44:26 +0900 |
commit | 8a4ad01a72481a6a7c0309064dd2dbd814818c94 (patch) | |
tree | 13d5f4b42df28b74658eaec1cbbc8eb2b4bf636c /src/network/networkd-link.c | |
parent | 4642371d0764078374db4175f6e6f409618b72a6 (diff) | |
download | systemd-8a4ad01a72481a6a7c0309064dd2dbd814818c94.tar.gz |
network: wifi: try to reconfigure when connected
Sometimes, RTM_NEWLINK message with carrier is received earlier than
NL80211_CMD_CONNECT. To make SSID= or other WiFi related settings in
[Match] section work, let's try to reconfigure the interface.
Fixes a bug introduced by 96f5f9ef9a1ba5146d3357c1548fb675d3bd5b68.
Fixes #25384.
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index 4ed622cfe6..c46b8f5b2e 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -1178,7 +1178,7 @@ static int link_get_network(Link *link, Network **ret) { return -ENOENT; } -static int link_reconfigure_impl(Link *link, bool force) { +int link_reconfigure_impl(Link *link, bool force) { Network *network = NULL; NetDev *netdev = NULL; int r; |