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