Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-42348

Bearer management detects WLAN as Ethernet on Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.3.1, 5.4.0 Beta
    • Fix Version/s: 5.4.0 RC
    • Labels:
      None
    • Environment:
      LG L7II with Android 4.1.2
    • Platform/s:
      Android
    • Commits:
      81998b4e8e440076bd22a9164f0a93481c0e597a

      Description

      QNetworkConfigurationManager::allConfigurations(QNetworkConfiguration::Discovered) returns BearerEthernet instead of BearerWLAN when a WLAN connection is enabled and discovered on Android, as reproduced with this code snippet:

      on startup:
         QNetWorkConfigurationManager *manager = new QNetworkConfigurationManager();
      
      periodical connection check:
         manager->updateConnections();
         QList<QNetworkConfiguration> netlist = manager->allConfigurations(QNetworkConfiguration::Discovered);
      
         for (auto i=netlist.begin(); i!=netlist.end(); i++)
            switch (i->bearerTypeFamily())
            {
               case QNetworkConfiguration::BearerEthernet:
                  qDebug() << "Ethernet discovered";
                  break;
               case QNetworkConfiguration::BearerWLAN:
                  qDebug() << "WLAN discovered";
                  break;
            }
      

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            stromme Christian
            Reporter:
            roettger Stefan Roettger
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes