If a user connection fails on a freshly scanned psk hidden network,
during passphrase request, it shall be removed from the network list.
Otherwise, it would be possible to directly connect to that known
network, which will appear as not hidden.
Commit 06ca8e20a9b0 ("station: Hide forgotten hidden networks")
---
src/network.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/network.c b/src/network.c
index d7f472be97d2..ef3df96bab42 100644
--- a/src/network.c
+++ b/src/network.c
@@ -1204,6 +1204,7 @@ static void passphrase_callback(enum agent_result result,
struct network *network = user_data;
struct station *station = network->station;
struct scan_bss *bss;
+ bool was_hidden;
l_debug("result %d", result);
@@ -1242,6 +1243,13 @@ static void passphrase_callback(enum agent_result result,
return;
err:
+ if (!network->settings || !l_settings_get_bool(network->settings,
+ NET_HIDDEN, &was_hidden))
+ was_hidden = false;
+
+ if (was_hidden)
+ station_hide_network(station, network);
+
network_settings_close(network);
}
--
2.25.1
Show replies by date