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/systeminfo/linux/qnetworkinfo_linux.cpp 
b/src/systeminfo/linux/qnetworkinfo_linux.cpp
index effdc93..03649c1 100644
--- a/src/systeminfo/linux/qnetworkinfo_linux.cpp
+++ b/src/systeminfo/linux/qnetworkinfo_linux.cpp
@@ -869,8 +869,7 @@ QNetworkInfo::NetworkStatus 
QNetworkInfoPrivate::getNetworkStatus(QNetworkInfo::
             if (carrier.open(QIODevice::ReadOnly)) {
                 char state;
                 if ((carrier.read(&state, 1) == 1) &&
- (state == '1') &&
- (networkSignalStrength(QNetworkInfo::WlanMode, interface) > -1)) {
+ (state == '1')) {
                     return QNetworkInfo::HomeNetwork;
                 }
             }

Let me also open a bug task for the kernel side.

** Also affects: linux-mako (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1231196

Title:
  QtSystemInfo fails to report a valid wlan0 connection with mako (nexus
  4)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-mako/+bug/1231196/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to