9 def PrintAllValues(iface):
11 print "%-9s = %s" % (val, iface[val])
13 if __name__ == "__main__":
14 print "Using device:", INTERFACE, "\n"
15 print "Version [ PyIW ]:", pyiw.version()
16 print "Version [ libiw/WE ]:", pyiw.iw_version()
17 print "Version [ kernel/WE ]:", pyiw.we_version(), "\n"
20 iface = pyiw.WirelessInterface(INTERFACE)
22 iface["essid"] = "01234567890123456789fasdfasdfas"
23 iface["channel"] = 1.0
26 print i, "-", iface[i]
28 except pyiw.error, error:
33 print "\nScanning...\n"
35 for net in iface.Scan():
36 print net["essid"], "- WPA Active:", net["wpa"]