tests: Use random WPS PIN
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
acd9b45a2c
commit
861671b6ca
1 changed files with 3 additions and 2 deletions
|
@ -332,8 +332,9 @@ class WpaSupplicant:
|
||||||
return self.global_request("P2P_STOP_FIND")
|
return self.global_request("P2P_STOP_FIND")
|
||||||
|
|
||||||
def wps_read_pin(self):
|
def wps_read_pin(self):
|
||||||
#TODO: make this random
|
self.pin = self.request("WPS_PIN get").rstrip("\n")
|
||||||
self.pin = "12345670"
|
if "FAIL" in self.pin:
|
||||||
|
raise Exception("Could not generate PIN")
|
||||||
return self.pin
|
return self.pin
|
||||||
|
|
||||||
def peer_known(self, peer, full=True):
|
def peer_known(self, peer, full=True):
|
||||||
|
|
Loading…
Reference in a new issue