From c3f76cb5a50da685fc6f86f1615ac21e22513bfa Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 3 Feb 2021 09:12:08 -0600 Subject: [PATCH] station: Return NotHidden error Commit d372d59bea3e checks whether a hidden network had a previous connection attempt and re-tries. However, it inadvertently dropped handling of a condition where a non-hidden network SSID is provided to ConnectHiddenNetwork. Fix that. Fixes: d372d59bea3e ("station: Allow ConnectHiddenNetwork to be retried") --- src/station.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/station.c b/src/station.c index 316994f1..aee90c23 100644 --- a/src/station.c +++ b/src/station.c @@ -2722,6 +2722,8 @@ static struct l_dbus_message *station_dbus_connect_hidden_network( return network_connect_new_hidden_network(network, message); } + + return dbus_error_not_hidden(message); } params.ssid = ssid;