]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Generate BSS configuration files in ap_bss_config_file
authorJouni Malinen <j@w1.fi>
Sun, 23 Feb 2020 14:58:43 +0000 (16:58 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 23 Feb 2020 15:50:44 +0000 (17:50 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_dynamic.py

index 9a70776ccadf2eb0ed0ebc42cc8c45bebc5e88d8..a0f9ac6035edd6f9e50328a9b3deb75c71b81bee 100644 (file)
@@ -501,9 +501,13 @@ def test_ap_bss_config_file(dev, apdev, params):
     if not os.path.exists(prg):
         prg = '../../hostapd/hostapd'
     phy = get_phy(apdev[0])
+    confname1 = hostapd.cfg_file(apdev[0], "bss-1.conf")
+    confname2 = hostapd.cfg_file(apdev[0], "bss-2.conf")
+    confname3 = hostapd.cfg_file(apdev[0], "bss-3.conf")
+
     cmd = [prg, '-B', '-dddt', '-P', pidfile, '-f', logfile, '-S', '-T',
-           '-b', phy + ':bss-1.conf', '-b', phy + ':bss-2.conf',
-           '-b', phy + ':bss-3.conf']
+           '-b', phy + ':' + confname1, '-b', phy + ':' + confname2,
+           '-b', phy + ':' + confname3]
     res = subprocess.check_call(cmd)
     if res != 0:
         raise Exception("Could not start hostapd: %s" % str(res))