]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: OLBC AP detection
authorJouni Malinen <j@w1.fi>
Fri, 31 Jan 2014 20:45:08 +0000 (22:45 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 4 Feb 2014 11:10:57 +0000 (13:10 +0200)
Signed-hostap: Jouni Malinen <j@w1.fi>

tests/hwsim/test_ap_ht.py

index e98a774993d341bb93ed141ac7bfc68626ba47da..ca8e0eac655cde7b9f7f324d28382b82d801b739 100644 (file)
@@ -84,3 +84,23 @@ def test_obss_scan(dev, apdev):
             break
     if not received:
         raise Exception("20/40 BSS Coexistence report not seen")
+
+def test_olbc(dev, apdev):
+    """OLBC detection"""
+    params = { "ssid": "test-olbc",
+               "channel": "6",
+               "ht_capab": "[HT40-]" }
+    hapd = hostapd.add_ap(apdev[0]['ifname'], params)
+    status = hapd.get_status()
+    if status['olbc'] != '0' or status['olbc_ht'] != '0':
+        raise Exception("Unexpected OLBC information")
+
+    params = { "ssid": "olbc-ap",
+               "hw_mode": "b",
+               "channel": "6",
+               "wmm_enabled": "0" }
+    hostapd.add_ap(apdev[1]['ifname'], params)
+    time.sleep(0.5)
+    status = hapd.get_status()
+    if status['olbc'] != '1' or status['olbc_ht'] != '1':
+        raise Exception("Missing OLBC information")