diff options
author | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-02-02 04:04:15 (GMT) |
---|---|---|
committer | Aaron McCarthy <aaron.mccarthy@nokia.com> | 2010-02-03 07:00:37 (GMT) |
commit | 280a68446c1f96ae9d19134e4201bc78ee0b072a (patch) | |
tree | e9f740d5a939c7da473446cffd885932ebda5aef /src/plugins | |
parent | 72f9a360c5f378092884654257266b4569932336 (diff) | |
download | Qt-280a68446c1f96ae9d19134e4201bc78ee0b072a.zip Qt-280a68446c1f96ae9d19134e4201bc78ee0b072a.tar.gz Qt-280a68446c1f96ae9d19134e4201bc78ee0b072a.tar.bz2 |
Ensure that default network interface is set appropriately.
Default network interface was not always being set when the active
network configuration changed.
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/bearer/symbian/qnetworksession_impl.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/bearer/symbian/qnetworksession_impl.cpp b/src/plugins/bearer/symbian/qnetworksession_impl.cpp index 24948cf..619fd9f 100644 --- a/src/plugins/bearer/symbian/qnetworksession_impl.cpp +++ b/src/plugins/bearer/symbian/qnetworksession_impl.cpp @@ -818,6 +818,16 @@ bool QNetworkSessionPrivateImpl::newState(QNetworkSession::State newState, TUint newState == QNetworkSession::Connected) { activeConfig = activeConfiguration(accessPointId); activeInterface = interface(toSymbianConfig(privateConfiguration(activeConfig))->numericId); +#ifdef SNAP_FUNCTIONALITY_AVAILABLE + if (iDynamicSetdefaultif) { + // Use name of the IAP to set default IAP + QByteArray nameAsByteArray = activeConfig.name().toUtf8(); + ifreq ifr; + strcpy(ifr.ifr_name, nameAsByteArray.constData()); + + iDynamicSetdefaultif(&ifr); + } +#endif } // Make sure that same state is not signaled twice in a row. |