All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/9] knownnetworks: copy network_config on update
@ 2021-07-29 22:21 James Prestwood
  2021-07-29 22:21 ` [PATCH 2/9] auto-t: hostapd: catch local socket remove exception James Prestwood
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: James Prestwood @ 2021-07-29 22:21 UTC (permalink / raw)
  To: iwd

[-- Attachment #1: Type: text/plain, Size: 699 bytes --]

The network_config was not being copied to network_info when
updated. This caused any new settings to be lost if the network
configuration file was updated during runtime.
---
 src/knownnetworks.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/knownnetworks.c b/src/knownnetworks.c
index 09acdd3c..85648ead 100644
--- a/src/knownnetworks.c
+++ b/src/knownnetworks.c
@@ -464,6 +464,8 @@ void known_network_update(struct network_info *network,
 	}
 
 	known_network_set_autoconnect(network, new->is_autoconnectable);
+
+	memcpy(&network->config, new, sizeof(struct network_config));
 }
 
 bool known_networks_foreach(known_networks_foreach_func_t function,
-- 
2.31.1

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-07-29 22:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-29 22:21 [PATCH 1/9] knownnetworks: copy network_config on update James Prestwood
2021-07-29 22:21 ` [PATCH 2/9] auto-t: hostapd: catch local socket remove exception James Prestwood
2021-07-29 22:21 ` [PATCH 3/9] test-runner: remove TLS debugging artifact James Prestwood
2021-07-29 22:21 ` [PATCH 4/9] test-runner: set msize for --monitor James Prestwood
2021-07-29 22:21 ` [PATCH 5/9] test-runner: increase RAM to 384MB James Prestwood
2021-07-29 22:21 ` [PATCH 6/9] test-runner: don't reset dbus object on reset() James Prestwood
2021-07-29 22:21 ` [PATCH 7/9] auto-t: remove unneeded hidden networks James Prestwood
2021-07-29 22:21 ` [PATCH 8/9] auto-t: add regular 8021x AKM to FT-FILS tests James Prestwood
2021-07-29 22:21 ` [PATCH 9/9] test-runner: refactor process output code James Prestwood
2021-07-29 22:38 ` [PATCH 1/9] knownnetworks: copy network_config on update Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.