Add accessor for AP capabilties
This commit is contained in:
parent
d001c70443
commit
672d06d85e
@ -94,6 +94,7 @@ class Network(gobject.GObject):
|
|||||||
self._ssid = None
|
self._ssid = None
|
||||||
self._mode = None
|
self._mode = None
|
||||||
self._strength = 0
|
self._strength = 0
|
||||||
|
self._caps = 0
|
||||||
self._valid = False
|
self._valid = False
|
||||||
self._state = NETWORK_STATE_NOTCONNECTED
|
self._state = NETWORK_STATE_NOTCONNECTED
|
||||||
|
|
||||||
@ -106,8 +107,8 @@ class Network(gobject.GObject):
|
|||||||
self._ssid = props[1]
|
self._ssid = props[1]
|
||||||
self._strength = props[3]
|
self._strength = props[3]
|
||||||
self._mode = props[6]
|
self._mode = props[6]
|
||||||
caps = props[7]
|
self._caps = props[7]
|
||||||
if caps & NM_802_11_CAP_PROTO_WPA or caps & NM_802_11_CAP_PROTO_WPA2:
|
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
|
# We do not support WPA at this time, so don't show
|
||||||
# WPA-enabled access points in the menu
|
# WPA-enabled access points in the menu
|
||||||
logging.debug("Net(%s): ssid '%s' dropping because WPA[2] unsupported" % (self._op,
|
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):
|
def get_ssid(self):
|
||||||
return self._ssid
|
return self._ssid
|
||||||
|
|
||||||
|
def get_caps(self):
|
||||||
|
return self._caps
|
||||||
|
|
||||||
def get_state(self):
|
def get_state(self):
|
||||||
return self._state
|
return self._state
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user