]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: AP with long preamble
authorJouni Malinen <j@w1.fi>
Thu, 29 Dec 2016 10:45:55 +0000 (12:45 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 29 Dec 2016 10:45:55 +0000 (12:45 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_ap_params.py

index 61d290c494ca7809ab1a3c9cd27c13d5bbfc30c6..03c29436d7603a3f656bb2873b82019a59d0af6f 100644 (file)
@@ -652,3 +652,15 @@ def test_ap_no_probe_resp(dev, apdev):
     if 'ie' in bss and 'beacon_ie' in bss and \
        len(bss['ie']) != len(bss['beacon_ie']):
         raise Exception("Probe Response frames seen")
+
+def test_ap_long_preamble(dev, apdev):
+    """AP with long preamble"""
+    ssid = "long-preamble"
+    params = { 'ssid': ssid, 'preamble': "0",
+               'hw_mode': 'b', 'ieee80211n': '0',
+               'supported_rates': '10', 'basic_rates': '10' }
+    hapd = hostapd.add_ap(apdev[0], params)
+    bssid = hapd.own_addr()
+    dev[0].scan_for_bss(bssid, freq="2412")
+    dev[0].connect(ssid, key_mgmt="NONE", scan_freq="2412")
+    hwsim_utils.test_connectivity(dev[0], hapd)