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

Bearer management detects WLAN as Ethernet on Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0 RC
    • 5.3.1, 5.4.0 Beta
    • None
    • LG L7II with Android 4.1.2
    • Android
    • 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

            stromme Christian
            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