Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.7.2
-
latest Symbian environment
-
0ed694bd074be42272bf795a3add4f55457ddd75
Description
The returned values from QNetworkConfiguration API are not always correct (or at least not consistent).
Here's how to see the issue using the attached sample application on the device.
1. Select "GSM" in network settings (Settings -> Connectivity ->
Network -> Network mode) 2. Open the test application 3. Press "Go"
The result are printed to qDebug().
Here's the output I got on Sonera SIM using Carbide:
00:13:13.503 [Qt Message] name "Internet" 00:13:13.503 [Qt Message] bearerType 5 00:13:13.503 [Qt Message] bearerTypeName "WCDMA" 00:13:13.504 [Qt Message] isValid true 00:13:13.504 [Qt Message] purpose 0 00:13:13.504 [Qt Message] state QFlags(0x2) 00:13:13.504 [Qt Message] type 0
However, it returns correct values if I change the network mode while the test application is running. This is the expected result:
00:17:22.176 [Qt Message] name "Internet" 00:17:22.176 [Qt Message] bearerType 3 00:17:22.176 [Qt Message] bearerTypeName "2G" 00:17:22.176 [Qt Message] isValid true 00:17:22.176 [Qt Message] purpose 0 00:17:22.176 [Qt Message] state QFlags(0x2|0x4) 00:17:22.177 [Qt Message] type 0