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

Can not create connection to WLAN if phone is in offline mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Not Evaluated Not Evaluated
    • None
    • 1.0.0
    • Bearer Management
    • None
    • S60 Symbian

      This offline issue came up when testing development app. Tested with fetchgooglemaps mobility API example and got similar behaviour.

      Tested with s60 n97 and 5539 express music.

      Seems that call to QNetworkSession::open() fails with QNetworkSession::InvalidConfigurationError, even If I have Wlan accesspoint set.

      Took a look to mobility source (qnetworksession_s60_p.cpp) and found these lines are causing the error:

      // If opening a undefined configuration, session emits error and enters
      // NotAvailable -state. Note that we will try ones in 'defined' state to avoid excessive
      // need for WLAN scans (via updateConfigurations()), because user may have walked
      // into a WLAN range, but periodic background scan has not occurred yet -->
      // we don't want to force application to make frequent updateConfigurations() calls
      // to be able to try if e.g. home WLAN is available.
      if (publicConfig.state() == QNetworkConfiguration::Undefined)

      { newState(QNetworkSession::NotAvailable); iError = QNetworkSession::InvalidConfigurationError; emit q->error(iError); return; }

      Call to QNetworkSession::open() worked in mobility API 1.0.0 beta.

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

            alex Alex (closed Nokia identity) (Inactive)
            tola Toni Lahnalampi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes