History

set the bearer poll timeout for wlan scan in Qt 5.5

Stephen Birarda committed 11 years ago

Commit 79875951 parent 9f0721c3 files · +13 −1Browse files

Showing the changes to assignment-client/src/AssignmentClientApp.cpp (1 of 3 files). Show all

Unified · Split

assignment-client/src/AssignmentClientApp.cpp+4−0
@@ -27,6 +27,10 @@ · 26 unmodified lines
2727 AssignmentClientApp::AssignmentClientApp(int argc, char* argv[]) :
2828 QCoreApplication(argc, argv)
2929 {
30+ // to work around the Qt constant wireless scanning, set the env for polling interval very high
31+ const QByteArray EXTREME_BEARER_POLL_TIMEOUT = QString::number(INT_MAX).toLocal8Bit();
32+ qputenv("QT_BEARER_POLL_TIMEOUT", EXTREME_BEARER_POLL_TIMEOUT);
33+
3034 # ifndef WIN32
3135 setvbuf(stdout, NULL, _IOLBF, 0);
3236 # endif