summaryrefslogtreecommitdiffstats
path: root/src/wifi
diff options
context:
space:
mode:
authorGatis Paeglis <gatis.paeglis@theqtcompany.com>2016-01-19 15:14:59 +0100
committerGatis Paeglis <gatis.paeglis@theqtcompany.com>2016-01-25 09:14:02 +0000
commit8b59d852240b308328d77cd8a6453db9674bd842 (patch)
tree4fcf10db15169b26dc8afd19a5f82dc5ca65498e /src/wifi
parent1386f2dc628071b0e14c9d21337402101e179380 (diff)
Try to unblock "soft blocked" wifi
Change-Id: Idebad16aa7824a74e094bf67beb1128c16a64c43 Task-number: QTEE-1037 Reviewed-by: Teemu Holappa <teemu.holappa@theqtcompany.com>
Diffstat (limited to 'src/wifi')
-rw-r--r--src/wifi/qwificontroller.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wifi/qwificontroller.cpp b/src/wifi/qwificontroller.cpp
index a260050..f5ed741 100644
--- a/src/wifi/qwificontroller.cpp
+++ b/src/wifi/qwificontroller.cpp
@@ -139,6 +139,11 @@ void QWifiController::initializeBackend()
qCDebug(B2QT_WIFI) << "initializing wifi backend";
emit backendStateChanged(QWifiManager::Initializing);
+ QProcess rfkill;
+ rfkill.start(QStringLiteral("rfkill"),
+ QStringList() << QStringLiteral("unblock") << QStringLiteral("wifi"));
+ rfkill.waitForFinished();
+
QProcess ifconfig;
ifconfig.start(QStringLiteral("ifconfig"),
QStringList() << QLatin1String(m_interface) << QStringLiteral("up"));