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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.0.0
    • Fix Version/s: None
    • Component/s: Bearer Management
    • Labels:
      None
    • Environment:
      S60 Symbian

      Description

      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.

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes