]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: PASN: configure the nid before sending the command
authorIlan Peer <ilan.peer@intel.com>
Mon, 15 Mar 2021 12:57:02 +0000 (14:57 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 16 Mar 2021 15:15:55 +0000 (17:15 +0200)
Signed-off-by: Ilan Peer <ilan.peer@intel.com>
tests/hwsim/test_pasn.py

index 55aee9ef6f9be426944f620c6471e41abd586477..579625b00d0d9586c65cde07eb5b182de5978f96 100644 (file)
@@ -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")