eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit b5aefede951bf192a953611d2064ef40c6d2e91d
parent 88b2aefeedad096284f3b6db32c313ecfbf28278
Author: Tim Kourt <tim.a.kourt@linux.intel.com>
Date:   Wed, 19 Sep 2018 09:48:42 -0700

network: add check for the existing settings

In the case of the open networks with hidden SSIDs
the settings object is already created.

Valgrind:
==4084==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==4084==    by 0x43B44D: l_malloc (util.c:62)
==4084==    by 0x43E3FA: l_settings_new (settings.c:83)
==4084==    by 0x41D101: network_connect_new_hidden_network (network.c:1053)
==4084==    by 0x4105B7: station_hidden_network_scan_results (station.c:1733)
==4084==    by 0x419817: scan_finished (scan.c:1165)
==4084==    by 0x419CAA: get_scan_done (scan.c:1191)
==4084==    by 0x443562: destroy_request (genl.c:139)
==4084==    by 0x4437F7: process_unicast (genl.c:424)
==4084==    by 0x4437F7: received_data (genl.c:534)
==4084==    by 0x440958: io_callback (io.c:123)
==4084==    by 0x43FDED: l_main_iterate (main.c:376)
==4084==    by 0x43FEAB: l_main_run (main.c:423)

Diffstat:
Msrc/network.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/network.c b/src/network.c @@ -129,11 +129,12 @@ void network_connected(struct network *network) /* * This is an open network seen for the first time: * - * Write an empty settings file to keep track of the + * Write a settings file to keep track of the * last connected time. This will also make iwd autoconnect * to this network in the future. */ - network->settings = l_settings_new(); + if (!network->settings) + network->settings = l_settings_new(); storage_network_sync(network_get_security(network), network->info->ssid,