Home | History | Annotate | Download | only in p2p

Lines Matching refs:pin

19 	print "		-a <addr> [-p <pin>] [-g <go_intent>] \ "
25 print " -p = pin number (8 digits)"
66 global pin
79 pin,wps_method,go_intent):
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
257 # Pin
259 pin = value
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)