tests: PASN: configure the nid before sending the command
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
This commit is contained in:
parent
2efa60344e
commit
2264a29890
1 changed files with 2 additions and 1 deletions
|
@ -65,10 +65,11 @@ def check_pasn_akmp_cipher(dev, hapd, akmp="PASN", cipher="CCMP",
|
||||||
|
|
||||||
cmd = "PASN_START bssid=%s akmp=%s cipher=%s group=%s" % (hapd.own_addr(), akmp, cipher, group)
|
cmd = "PASN_START bssid=%s akmp=%s cipher=%s group=%s" % (hapd.own_addr(), akmp, cipher, group)
|
||||||
|
|
||||||
resp = dev.request(cmd)
|
|
||||||
if nid != "":
|
if nid != "":
|
||||||
cmd += " nid=%s" % nid
|
cmd += " nid=%s" % nid
|
||||||
|
|
||||||
|
resp = dev.request(cmd)
|
||||||
|
|
||||||
if fail:
|
if fail:
|
||||||
if "OK" in resp:
|
if "OK" in resp:
|
||||||
raise Exception("Unexpected success to start PASN authentication")
|
raise Exception("Unexpected success to start PASN authentication")
|
||||||
|
|
Loading…
Reference in a new issue