eiwd

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

commit 8500b60b13917091bedeabf85fdd15c2c1c10bea
parent 7fa5eddfbc42dc83299b461c15dadfd28745657e
Author: James Prestwood <prestwoj@gmail.com>
Date:   Wed, 28 Aug 2019 11:02:21 -0700

network: fix issue with WSC not connecting

After wsc_store_credentials, wsc_try_credentials is called which
sets the PSK obtained via the protocol. After the known network
refactor network_settings_load was changed to depend on the
network_info->open() call. Since there is no known network for
this initial WSC connection this always fails and the PSK is not
set into the network object (and the connection is failed).

In this case if network_settings_load fails we can just create
an empty settings object to be filled later.

Diffstat:
Msrc/network.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/network.c b/src/network.c @@ -267,7 +267,7 @@ bool network_set_psk(struct network *network, const uint8_t *psk) return false; if (!network_settings_load(network)) - return false; + network->settings = l_settings_new(); network_reset_psk(network); network->psk = l_memdup(psk, 32);