1 from device
import cDevice
, cDeviceEth
7 return self
.get_property("MaxBitrate")
10 priv
= self
.get_property("Flags") != 0
11 wpa
= self
.get_property("WpaFlags") != 0
12 wpa2
= self
.get_property("RsnFlags") != 0
15 if not wpa
and not wpa2
:
16 priv_s
= priv_s
+ " WEP"
18 priv_s
= priv_s
+ " WPA"
20 priv_s
= priv_s
+ " WPA2"
24 return int(self
.get_property("Strength"))
27 return ssid_str(self
.get_property("Ssid"))
30 print " AP:", self
.opath
31 print " Ssid:", self
.Ssid()
32 self
.dump_props(["Frequency", "HwAddress", "MaxBitrate"], indent
=" ")
33 print " Strength:", self
.Strength()
34 print " AP Mode:", cDevice
.IW_MODE
[self
.get_property("Mode")]
35 print " AP Flags:", bitmask_str(self
.NM_802_11_AP_FLAGS
,
36 self
.get_property("Flags"))
37 print " AP WPA Flags:", bitmask_str(self
.NM_802_11_AP_SEC
,
38 self
.get_property("WpaFlags"))
39 print " AP RSN Flags:", bitmask_str(self
.NM_802_11_AP_SEC
,
40 self
.get_property("RsnFlags"))