[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 3/3] move wifi activation fails logging to proper block



Otherwise we have 'wifi activation failed' log message even if there's no wifi-related line in kickstart.
---
 loader/kickstart.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/loader/kickstart.c b/loader/kickstart.c
index b038406..12082b1 100644
--- a/loader/kickstart.c
+++ b/loader/kickstart.c
@@ -671,11 +671,10 @@ int process_kickstart_wifi (struct loaderData_s * loaderData) {
                     WIFI_PROTECTION_UNPROTECTED, NULL, loaderData->ipinfo_set, loaderData->ipv4,
                     loaderData->gateway, loaderData->dns, loaderData->netmask);
         }
+        if (rc == WIFI_ACTIVATION_OK) loaderData->netDev_set = 1;
+        else logMessage(ERROR, "wifi activation in kickstart failed");
     }
 
-    if (rc == WIFI_ACTIVATION_OK) loaderData->netDev_set = 1;
-    else logMessage(ERROR, "wifi activation in kickstart failed");
-
     return rc;
 }
 
-- 
1.7.4.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]