Uploaded image for project: 'Qt Mobility'
  1. Qt Mobility
  2. QTMOBILITY-2022

N9: QSystemNetworkInfo::currentMode returns EthernetMode when the phone is connected via USB

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.2.1
    • System Information
    • None
    • Application developed on Windows using QtCreator and running on a Nokia N9 connected via USB to the PC in SDK mode.

      I have a Nokia N9 without SIM nor connected WIFI. My application contains this code:

      QSystemNetworkInfo* networkInfo = new QtMobility::QSystemNetworkInfo();
      QSystemNetworkInfo::NetworkMode activeMode = networkInfo->currentMode();
      if (networkInfo->networkStatus(activeMode) != QSystemNetworkInfo::Connected) {
          ...
      } else {
          ...
      }
      

      When the phone is connected via USB to my PC, currentMode() returns EthernetMode and networkStatus(currentMode()) returns Connected but in reality the network is not available (the error message is "Network session error.").

      I'd expect that currentMode() returns UnknownMode or that networkStatus(currentMode()) returns NoNetworkAvailable.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            djcb Dirk-Jan C. Binnema
            neomades Maxime Dubois
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes