From bbd41e4d2b3125b758fd34fcd7b5c2ccdf00c036 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 30 Jun 2016 00:38:39 +0300 Subject: [PATCH] tests: Invalid MBO non_pref_chan values Signed-off-by: Jouni Malinen --- tests/hwsim/test_mbo.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/hwsim/test_mbo.py b/tests/hwsim/test_mbo.py index ea4efd2e5..ba34b681e 100644 --- a/tests/hwsim/test_mbo.py +++ b/tests/hwsim/test_mbo.py @@ -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"):