From: Jouni Malinen Date: Tue, 2 Aug 2016 14:43:38 +0000 (+0300) Subject: tests: HT/VHT values in STATUS X-Git-Tag: hostap_2_6~177 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96485214f713375c3f21c1afcadff762036d2d5b;p=thirdparty%2Fhostap.git tests: HT/VHT values in STATUS Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_ap_vht.py b/tests/hwsim/test_ap_vht.py index f2806a194..6b8977da5 100644 --- a/tests/hwsim/test_ap_vht.py +++ b/tests/hwsim/test_ap_vht.py @@ -50,6 +50,18 @@ def test_ap_vht80(dev, apdev): est = dev[0].get_bss(bssid)['est_throughput'] if est != "390001": raise Exception("Unexpected BSS est_throughput: " + est) + status = hapd.get_status() + logger.info("hostapd STATUS: " + str(status)) + if status["ieee80211n"] != "1": + raise Exception("Unexpected STATUS ieee80211n value") + if status["ieee80211ac"] != "1": + raise Exception("Unexpected STATUS ieee80211ac value") + if status["secondary_channel"] != "1": + raise Exception("Unexpected STATUS secondary_channel value") + if status["vht_oper_chwidth"] != "1": + raise Exception("Unexpected STATUS vht_oper_chwidth value") + if status["vht_oper_centr_freq_seg0_idx"] != "42": + raise Exception("Unexpected STATUS vht_oper_centr_freq_seg0_idx value") except Exception, e: if isinstance(e, Exception) and str(e) == "AP startup failed": if not vht_supported():