diff options
author | Gatis Paeglis <gatis.paeglis@theqtcompany.com> | 2015-06-26 18:44:45 +0200 |
---|---|---|
committer | Gatis Paeglis <gatis.paeglis@theqtcompany.com> | 2015-06-29 11:09:56 +0300 |
commit | 3e6d9c660931ffd06174784c71af30d7fbe40802 (patch) | |
tree | b3bd033ac4171b2729b7d829d1bfdcbcbacfd0de /src | |
parent | 81b0383845804fe5547b78bc78eedc66ae6216bd (diff) |
Use 'killall' to stop wpa_supplicant
This is a workaround for QTEE-957
Change-Id: Idb0900e8315d2ccf895ea6e950b0f6587bfebc92
Task-number: QTEE-957
Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/wifi/qwifielinux.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wifi/qwifielinux.cpp b/src/wifi/qwifielinux.cpp index e7dabb3..7456173 100644 --- a/src/wifi/qwifielinux.cpp +++ b/src/wifi/qwifielinux.cpp @@ -84,6 +84,7 @@ int q_wifi_start_supplicant() QProcess ssDaemon; ssDaemon.start(QStringLiteral("start-stop-daemon"), arg); ssDaemon.waitForFinished(); + qCDebug(B2QT_WIFI) << ssDaemon.readAll(); QByteArray path = controlInterfacePath(); if (path.isEmpty()) @@ -126,6 +127,11 @@ int q_wifi_stop_supplicant() QFile::remove(QLatin1String(path + "/" + ifc)); + // workaround for QTEE-957 + QProcess killall; + killall.start(QStringLiteral("killall"), QStringList() << QStringLiteral("-9") << QStringLiteral("wpa_supplicant")); + killall.waitForFinished(); + return 0; } |