Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-19011

Inconsistency in returned values of QNetworkConfiguration API's

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.8.0
    • 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 
      

      Attachments

        1. BugTester.sis
          7 kB
        2. BugTester.zip
          16 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            shkearns Shane Kearns
            matsumot Tadaaki Matsumoto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes