From 024fcb22ca55c6a6254d6a968406a7cd3b50bb06 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 1 Mar 2021 11:13:46 +0200 Subject: [PATCH] tests: hostapd RELOAD with invalid configuration Signed-off-by: Jouni Malinen --- tests/hwsim/test_ap_dynamic.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/hwsim/test_ap_dynamic.py b/tests/hwsim/test_ap_dynamic.py index d23cf0cf0..ad29eb71e 100644 --- a/tests/hwsim/test_ap_dynamic.py +++ b/tests/hwsim/test_ap_dynamic.py @@ -75,6 +75,17 @@ def test_ap_change_ssid_wps(dev, apdev): dev[0].request("DISCONNECT") dev[0].wait_disconnected() +def test_ap_reload_invalid(dev, apdev): + """hostapd RELOAD with invalid configuration""" + params = hostapd.wpa2_params(ssid="test-wpa2-psk-start", + passphrase="12345678") + hapd = hostapd.add_ap(apdev[0], params) + # Enable IEEE 802.11d without specifying country code + hapd.set("ieee80211d", "1") + if "FAIL" not in hapd.request("RELOAD"): + raise Exception("RELOAD command succeeded") + dev[0].connect("test-wpa2-psk-start", psk="12345678", scan_freq="2412") + def multi_check(apdev, dev, check, scan_opt=True): id = [] num_bss = len(check)