~jpakkane/+junk/gtestfix

« back to all changes in this revision

Viewing changes to src/platform/nmofono/wifi/access-point.h

  • Committer: Antti Kaijanmäki
  • Date: 2014-01-31 09:35:35 UTC
  • Revision ID: antti.kaijanmaki@canonical.com-20140131093535-8o4xea4i22avmc81
Use defines from NetworkManager.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    AccessPoint(org::freedesktop::NetworkManager::Interface::AccessPoint ap)
40
40
        : m_ap(ap)
41
41
    {
42
 
        m_secured = m_ap.flags->get() == 0x1; // NM_802_11_AP_FLAGS_PRIVACY
43
 
        m_adhoc = m_ap.mode->get() != 2;  // NM_802_11_MODE_INFRA
 
42
        m_secured = m_ap.flags->get() == NM_802_11_AP_FLAGS_PRIVACY;
 
43
        /// @todo check for the other modes also..
 
44
        m_adhoc = m_ap.mode->get() != NM_802_11_MODE_INFRA;
44
45
 
45
46
        std::string ssid;
46
47
        for (auto c : m_ap.ssid->get()) {