Index: sources/wifi/WifiInterface.h =================================================================== diff -u -r79a6cfcb10472261f3ec26eaf0baf6f1245cd311 -r7f61c3b45a50145fe5c245018d481d6266166fa6 --- sources/wifi/WifiInterface.h (.../WifiInterface.h) (revision 79a6cfcb10472261f3ec26eaf0baf6f1245cd311) +++ sources/wifi/WifiInterface.h (.../WifiInterface.h) (revision 7f61c3b45a50145fe5c245018d481d6266166fa6) @@ -1,13 +1,13 @@ /*! * - * Copyright (c) 2021-2022 Diality Inc. - All Rights Reserved. + * Copyright (c) 2021-2023 Diality Inc. - All Rights Reserved. * \copyright * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * \file WifiInterface.h * \author (last) Behrouz NematiPour - * \date (last) 28-Mar-2022 + * \date (last) 02-Feb-2023 * \author (original) Behrouz NematiPour * \date (original) 11-May-2021 * @@ -54,6 +54,8 @@ int _scanTimeout = 30000; int _processCounter = 0; int _dhcpAttemptsLeft = 5; + const quint8 _dhcpAttempts = 5; + QProcess _processScan; QProcess _processDisconnectNetwork; QProcess _processReadIPSettings; @@ -68,9 +70,8 @@ QProcess _processSetDNS; WifiNetworkData _network; - const QString _scriptsFolder = Storage::Scripts_Path_Name; const QString _iface = "wlan0"; - const QString _wpaSupplicantConfPath = "/etc/wpa_supplicant.conf"; + const QString _wpaSupplicantConfPath = QString("/etc/wpa_supplicant/wpa_supplicant-%1.conf").arg(_iface); // Singleton SINGLETON(WifiInterface)