From 50717e1e32bf7eca6ac02f14cf3ded0202c61bd5 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 1 Jul 2016 20:50:13 +0300 Subject: [PATCH] tests: IBSS operating frequency reporting Signed-off-by: Jouni Malinen --- tests/hwsim/test_ibss.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/hwsim/test_ibss.py b/tests/hwsim/test_ibss.py index c9c57d344..e89ba4fd6 100644 --- a/tests/hwsim/test_ibss.py +++ b/tests/hwsim/test_ibss.py @@ -275,6 +275,11 @@ def test_ibss_open(dev): if "[IBSS]" not in bss['flags']: raise Exception("Unexpected BSS flags: " + bss['flags']) + freq0 = dev[0].get_status_field("freq") + freq1 = dev[1].get_status_field("freq") + if freq0 != "2412" or freq1 != "2412": + raise Exception("IBSS operating frequency not reported correctly (%s %s)" % (freq0, freq1)) + def test_ibss_open_fixed_bssid(dev): """IBSS open (no security) and fixed BSSID""" ssid="ibss"