]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Invalid MBO non_pref_chan values
authorJouni Malinen <j@w1.fi>
Wed, 29 Jun 2016 21:38:39 +0000 (00:38 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 29 Jun 2016 22:13:16 +0000 (01:13 +0300)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_mbo.py

index ea4efd2e503f18537db611bee82df67b061c52b9..ba34b681ec44911c0f50a8866e5cadbffa43296e 100644 (file)
@@ -129,6 +129,12 @@ def test_mbo_non_pref_chan(dev, apdev):
     params = { 'ssid': ssid, 'mbo': '1' }
     hapd = hostapd.add_ap(apdev[0], params)
     bssid = apdev[0]['bssid']
+    if "FAIL" not in dev[0].request("SET non_pref_chan 81:7:200:99"):
+        raise Exception("Invalid non_pref_chan value accepted")
+    if "FAIL" not in dev[0].request("SET non_pref_chan 81:15:200:3"):
+        raise Exception("Invalid non_pref_chan value accepted")
+    if "FAIL" not in dev[0].request("SET non_pref_chan 81:7:200:3 81:7:201:3"):
+        raise Exception("Invalid non_pref_chan value accepted")
     if "OK" not in dev[0].request("SET non_pref_chan 81:7:200:3"):
         raise Exception("Failed to set non-preferred channel list")
     if "OK" not in dev[0].request("SET non_pref_chan 81:7:200:1:123 81:9:100:2"):