I use the code below to save the IAP when connecting to the network:
const bool selectIap = (manager.capabilities()& QNetworkConfigurationManager::CanStartAndStopInterfaces);
QNetworkConfiguration defaultIap = manager.defaultConfiguration();
if(!defaultIap.isValid() && (!selectIap && defaultIap.state() != QNetworkConfiguration::Active))
// let the user know that there is no access point available
session = new QNetworkSession(defaultIap,this);
Everything works fine when I select the Access Point from the popup list. But if you select Search for WLAN and select a WLAN that QNetworkSession always return State == QNetworkSession:: Disconnected. When the Connect Manager in device reported that the WLAN is connected and active.
Has anyone encountered similar cases. Please help me solve it.
Thanks a lot !
I'm using : S60_3rd_FP2_SDK_v1.1
I have tested in Nokia E63 and E71