From: Jouni Malinen Date: Mon, 1 Mar 2021 09:13:46 +0000 (+0200) Subject: tests: hostapd RELOAD with invalid configuration X-Git-Tag: hostap_2_10~487 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=024fcb22ca55c6a6254d6a968406a7cd3b50bb06;p=thirdparty%2Fhostap.git tests: hostapd RELOAD with invalid configuration Signed-off-by: Jouni Malinen --- 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)