From 0f51caa513e3c426bad4e4f9472179170d06b967 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 28 Feb 2021 21:00:06 +0200 Subject: [PATCH] tests: hostapd GET_CONFIG entries for Multi-AP Signed-off-by: Jouni Malinen --- tests/hwsim/test_multi_ap.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/hwsim/test_multi_ap.py b/tests/hwsim/test_multi_ap.py index ff761f36e..183fb660d 100644 --- a/tests/hwsim/test_multi_ap.py +++ b/tests/hwsim/test_multi_ap.py @@ -122,6 +122,21 @@ def run_multi_ap_wps(dev, apdev, params, params_backhaul=None, add_apdev=False, # WPS with multi-ap station dev[0] hapd = hostapd.add_ap(apdev[0], params) + conf = hapd.request("GET_CONFIG").splitlines() + if "ssid=" + params['ssid'] not in conf: + raise Exception("GET_CONFIG did not show correct ssid entry") + if "multi_ap" in params and \ + "multi_ap=" + params["multi_ap"] not in conf: + raise Exception("GET_CONFIG did not show correct multi_ap entry") + if "multi_ap_backhaul_ssid" in params and \ + "multi_ap_backhaul_ssid=" + params["multi_ap_backhaul_ssid"].strip('"') not in conf: + raise Exception("GET_CONFIG did not show correct multi_ap_backhaul_ssid entry") + if "wpa" in params and "multi_ap_backhaul_wpa_passphrase" in params and \ + "multi_ap_backhaul_wpa_passphrase=" + params["multi_ap_backhaul_wpa_passphrase"] not in conf: + raise Exception("GET_CONFIG did not show correct multi_ap_backhaul_wpa_passphrase entry") + if "multi_ap_backhaul_wpa_psk" in params and \ + "multi_ap_backhaul_wpa_psk=" + params["multi_ap_backhaul_wpa_psk"] not in conf: + raise Exception("GET_CONFIG did not show correct multi_ap_backhaul_wpa_psk entry") hapd.request("WPS_PBC") if "PBC Status: Active" not in hapd.request("WPS_GET_STATUS"): raise Exception("PBC status not shown correctly")