Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-03-15 20:17:08 (GMT)
committer Dan Williams <dcbw@redhat.com>2007-03-15 20:17:08 (GMT)
commit672d06d85edb7b1c0241c4cc8ab7229b1c156fce (patch)
treeef0e627d95ec02001b2b0d34e5c0ecf6b78790f9 /shell
parentd001c70443007ef9a66ee89ab5c12f2519d409ac (diff)
Add accessor for AP capabilties
Diffstat (limited to 'shell')
-rw-r--r--shell/hardware/nmclient.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/shell/hardware/nmclient.py b/shell/hardware/nmclient.py
index 54f6762..89565f7 100644
--- a/shell/hardware/nmclient.py
+++ b/shell/hardware/nmclient.py
@@ -94,6 +94,7 @@ class Network(gobject.GObject):
self._ssid = None
self._mode = None
self._strength = 0
+ self._caps = 0
self._valid = False
self._state = NETWORK_STATE_NOTCONNECTED
@@ -106,8 +107,8 @@ class Network(gobject.GObject):
self._ssid = props[1]
self._strength = props[3]
self._mode = props[6]
- caps = props[7]
- if caps & NM_802_11_CAP_PROTO_WPA or caps & NM_802_11_CAP_PROTO_WPA2:
+ self._caps = props[7]
+ if self._caps & NM_802_11_CAP_PROTO_WPA or self._caps & NM_802_11_CAP_PROTO_WPA2:
# We do not support WPA at this time, so don't show
# WPA-enabled access points in the menu
logging.debug("Net(%s): ssid '%s' dropping because WPA[2] unsupported" % (self._op,
@@ -130,6 +131,9 @@ class Network(gobject.GObject):
def get_ssid(self):
return self._ssid
+ def get_caps(self):
+ return self._caps
+
def get_state(self):
return self._state