From 4202b38f6d169cfd49eeb906593dcbd9b159fd67 Mon Sep 17 00:00:00 2001 From: Jaehyun Kim Date: Mon, 5 Sep 2022 21:39:51 +0900 Subject: [PATCH] Fix crash when disabling connected wifi This issue is caused by trying to access invalid connman_network when wifi is disabled. In this case, there is no need to reset the value. Change-Id: I3137ba91a11086ae5e8f8f976dc52f84d62d4975 Signed-off-by: Jaehyun Kim --- plugins/wifi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/wifi.c b/plugins/wifi.c index 4280c47..90d4b8f 100755 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -4004,9 +4004,6 @@ static void disconnect_callback(int result, GSupplicantInterface *interface, goto found; } - if (connman_network_get_bool(wifi->network, "WiFi.Roaming")) - connman_network_set_bool(wifi->network, "WiFi.Roaming", false); - if (network == wifi->pending_network) wifi->pending_network = NULL; -- 2.7.4