tests: Add test cases for per-STA PSK in P2P group
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
5bf9a6c859
commit
b162675fd9
3 changed files with 63 additions and 0 deletions
|
@ -53,6 +53,7 @@ class WpaSupplicant:
|
|||
def reset(self):
|
||||
self.request("FLUSH")
|
||||
self.request("SET ignore_old_scan_res 0")
|
||||
self.request("P2P_SET per_sta_psk 0")
|
||||
self.group_ifname = None
|
||||
self.dump_monitor()
|
||||
|
||||
|
@ -336,6 +337,12 @@ class WpaSupplicant:
|
|||
raise Exception("Failed to authorize client connection on GO")
|
||||
return None
|
||||
|
||||
def p2p_go_authorize_client_pbc(self):
|
||||
cmd = "WPS_PBC"
|
||||
if "FAIL" in self.group_request(cmd):
|
||||
raise Exception("Failed to authorize client connection on GO")
|
||||
return None
|
||||
|
||||
def p2p_connect_group(self, go_addr, pin, timeout=0):
|
||||
self.dump_monitor()
|
||||
if not self.discover_peer(go_addr, social=False):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue