QtSystemInfo fails to report a valid wlan0 connection with mako (nexus 4)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-mako (Ubuntu) |
Won't Fix
|
Undecided
|
Tim Gardner | ||
qtsystems-opensource-src (Ubuntu) |
Fix Released
|
High
|
Timo Jyrinki |
Bug Description
From src/systeminfo/
===
QNetworkInfo:
{
switch (mode) {
case QNetworkInfo:
if (interface < networkInterfac
QString fileName = (*WLAN_
QFile carrier(
if (carrier.
if ((carrier.
}
}
}
return QNetworkInfo:
}
===
The issue is that networkSignalSt
Changed in qtsystems-opensource-src (Ubuntu): | |
status: | New → In Progress |
The following patch at least allows us to properly find if we have a valid network or not, even if the signal is unknown.
diff --git a/src/systeminf o/linux/ qnetworkinfo_ linux.cpp b/src/systeminf o/linux/ qnetworkinfo_ linux.cpp o/linux/ qnetworkinfo_ linux.cpp o/linux/ qnetworkinfo_ linux.cpp :NetworkStatus QNetworkInfoPri vate::getNetwor kStatus( QNetworkInfo: : open(QIODevice: :ReadOnly) ) {
char state; read(&state, 1) == 1) && trength( QNetworkInfo: :WlanMode, interface) > -1)) {
return QNetworkInfo: :HomeNetwork;
index effdc93..03649c1 100644
--- a/src/systeminf
+++ b/src/systeminf
@@ -869,8 +869,7 @@ QNetworkInfo:
if (carrier.
if ((carrier.
- (state == '1') &&
- (networkSignalS
+ (state == '1')) {
}
}
Let me also open a bug task for the kernel side.