Lines Matching +full:8 +full:- +full:pin

17 	print("  %s -i <interface_name> -m <wps_method> \ " \
19 print(" -a <addr> [-p <pin>] [-g <go_intent>] \ ")
20 print(" [-w <wpas_dbus_interface>]")
22 print(" -i = interface name")
23 print(" -m = wps method")
24 print(" -a = peer address")
25 print(" -p = pin number (8 digits)")
26 print(" -g = group owner intent")
27 print(" -w = wpas dbus interface = fi.w1.wpa_supplicant1")
29 print(" %s -i wlan0 -a 0015008352c0 -m display -p 12345670" % sys.argv[0])
66 global pin
79 pin,wps_method,go_intent): argument
86 self.pin = pin
155 # Display requires a pin, and a go intent of 15
157 if (self.pin != None):
158 self.p2p_connect_arguements.update({'pin':self.pin})
160 print("Error:\n Pin required for wps_method=display")
169 # Keypad requires a pin, and a go intent of less than 15
171 if (self.pin != None):
172 self.p2p_connect_arguements.update({'pin':self.pin})
174 print("Error:\n Pin required for wps_method=keypad")
185 # Doesn't require pin
186 # for ./wpa_cli, p2p_connect [mac] [pin#], wps_method=keypad
187 elif (self.wps_method == 'pin'):
188 if (self.pin != None):
189 print("pin ignored")
191 # No pin is required for pbc so it is ignored
193 if (self.pin != None):
194 print("pin ignored")
215 if (self.wps_method == 'pin' and \
216 not self.p2p_connect_arguements.has_key('pin') ):
217 print("Connect return with pin value of %d " % int(result_pin))
228 pin = None variable
245 if (key == "-h"):
249 elif (key == "-i"):
252 elif (key == "-m"):
255 elif (key == "-a"):
257 # Pin
258 elif (key == "-p"):
259 pin = value variable
261 elif (key == "-g"):
264 elif (key == "-w"):
281 # Pin Check
282 if (pin != None and len(pin) != 8):
283 print("Error:\n Pin is not 8 digits")
289 addr,pin,wps_method,go_intent)