10 wpas_obj = bus.get_object("fi.w1.wpa_supplicant1",
11 "/fi/w1/wpa_supplicant1")
12 props = wpas_obj.GetAll("fi.w1.wpa_supplicant1",
13 dbus_interface=dbus.PROPERTIES_IFACE)
14 print "GetAll(fi.w1.wpa_supplicant1, /fi/w1/wpa_supplicant1):"
17 if len(sys.argv) != 2:
22 wpas = dbus.Interface(wpas_obj, "fi.w1.wpa_supplicant1")
23 path = wpas.GetInterface(ifname)
24 if_obj = bus.get_object("fi.w1.wpa_supplicant1", path)
25 props = if_obj.GetAll("fi.w1.wpa_supplicant1.Interface",
26 dbus_interface=dbus.PROPERTIES_IFACE)
28 print "GetAll(fi.w1.wpa_supplicant1.Interface, %s):" % (path)
31 props = if_obj.GetAll("fi.w1.wpa_supplicant1.Interface.WPS",
32 dbus_interface=dbus.PROPERTIES_IFACE)
34 print "GetAll(fi.w1.wpa_supplicant1.Interface.WPS, %s):" % (path)
37 res = if_obj.Get("fi.w1.wpa_supplicant1.Interface", 'BSSs',
38 dbus_interface=dbus.PROPERTIES_IFACE)
40 bss_obj = bus.get_object("fi.w1.wpa_supplicant1", res[0])
41 props = bss_obj.GetAll("fi.w1.wpa_supplicant1.BSS",
42 dbus_interface=dbus.PROPERTIES_IFACE)
44 print "GetAll(fi.w1.wpa_supplicant1.BSS, %s):" % (res[0])
47 res = if_obj.Get("fi.w1.wpa_supplicant1.Interface", 'Networks',
48 dbus_interface=dbus.PROPERTIES_IFACE)
50 net_obj = bus.get_object("fi.w1.wpa_supplicant1", res[0])
51 props = net_obj.GetAll("fi.w1.wpa_supplicant1.Network",
52 dbus_interface=dbus.PROPERTIES_IFACE)
54 print "GetAll(fi.w1.wpa_supplicant1.Network, %s):" % (res[0])
57 if __name__ == "__main__":