Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QNetworkConfigurationManager does not recognise active wireless network when Cisco AnyConnect secure mobility client is enabled
Forum Updated to NodeBB v4.3 + New Features

QNetworkConfigurationManager does not recognise active wireless network when Cisco AnyConnect secure mobility client is enabled

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 502 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DLHTS
    wrote on last edited by
    #1

    Hi,
    The issue I had been facing is - QNetworkConfigurationManager does not recognise active wireless network when Cisco AnyConnect secure mobility client(http://www.cisco.com/c/en/us/products/security/anyconnect-secure-mobility-client/index.html?stickynav=1) is enabled on my system. The QNetworkConfigurationManager detects the wired network but not the wireless. Also, when i try to connect to the wireless using VPN connection,
    then the QNetworkConfigurationManager detects it. I have recently migrated my application code from Qt 5.4 to Qt 5.9.1.The application works as intended on Qt 5.4,
    but not on Qt 5.9.1.

    Please find the code snippet as below,may be of some help.
    void CNetworkConnectionCheck::checkNetworkConnection()
    {
    m_bIsConnected = false;
    QNetworkConfigurationManager nwkMgr;
    QList<QNetworkConfiguration> activeConfigs = nwkMgr.allConfigurations(QNetworkConfiguration::Active);
    qDebug() << activeConfigs.count();
    if(activeConfigs.count() > 0 && nwkMgr.isOnline())
    {
    foreach(QNetworkConfiguration activeConfig, activeConfigs)
    {
    QNetworkSession session(activeConfig);
    if(session.state() == QNetworkSession::Connected)
    {
    m_bIsConnected = true;
    break;
    }
    }
    if(m_bIsConnected)
    setSSID();
    }
    else
    {
    m_bIsConnected = false;
    }
    }

    Here, CNetworkConnectionCheck is derived from QThread Class. activeConfigs.count() returns as 0 everytime when cisco anyConnect secure mobility client is enabled on the system.

    Can anyone please help to resolve the issue.
    Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by SGaist
      #2

      Hi,

      Again: Please don't post the exact same question on multiple sub-forum. One is enough.

      Duplicate

      Closing this one.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved