From: Ilan Peer Date: Mon, 15 Mar 2021 12:57:02 +0000 (+0200) Subject: tests: PASN: configure the nid before sending the command X-Git-Tag: hostap_2_10~392 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2264a29890de1dba12f1d740823b8f52ef2824fd;p=thirdparty%2Fhostap.git tests: PASN: configure the nid before sending the command Signed-off-by: Ilan Peer --- diff --git a/tests/hwsim/test_pasn.py b/tests/hwsim/test_pasn.py index 55aee9ef6..579625b00 100644 --- a/tests/hwsim/test_pasn.py +++ b/tests/hwsim/test_pasn.py @@ -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) - resp = dev.request(cmd) if nid != "": cmd += " nid=%s" % nid + resp = dev.request(cmd) + if fail: if "OK" in resp: raise Exception("Unexpected success to start PASN authentication")