]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: GAS fragmentation with mac80211_hwsim MCC enabled
authorJouni Malinen <j@w1.fi>
Sun, 20 Dec 2015 16:13:17 +0000 (18:13 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 20 Dec 2015 19:07:33 +0000 (21:07 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_gas.py

index 99a511fc0d4e3f1db65e01e9a4b4527aab3d4ed7..a6379836f4467f4426536736af8e0b0ddd861b9b 100644 (file)
@@ -15,6 +15,7 @@ import struct
 import hostapd
 from wpasupplicant import WpaSupplicant
 from utils import alloc_fail, skip_with_fips
+from hwsim import HWSimRadio
 
 def hs20_ap_params():
     params = hostapd.wpa2_params(ssid="test-gas")
@@ -241,7 +242,7 @@ def test_gas_fragment(dev, apdev):
 
     dev[0].scan_for_bss(apdev[0]['bssid'], freq="2412", force_scan=True)
     dev[0].request("FETCH_ANQP")
-    ev = dev[0].wait_event(["GAS-QUERY-DONE"], timeout=1)
+    ev = dev[0].wait_event(["GAS-QUERY-DONE"], timeout=5)
     if ev is None:
         raise Exception("No GAS-QUERY-DONE event")
     if "result=SUCCESS" not in ev:
@@ -256,6 +257,14 @@ def test_gas_fragment(dev, apdev):
     if "result=SUCCESS" not in ev:
         raise Exception("Unexpected ANQP result: " + ev)
 
+def test_gas_fragment_mcc(dev, apdev):
+    """GAS fragmentation with mac80211_hwsim MCC enabled"""
+    with HWSimRadio(n_channels=2) as (radio, iface):
+        wpas = WpaSupplicant(global_iface='/tmp/wpas-wlan5')
+        wpas.interface_add(iface)
+        ndev = [ wpas ]
+        test_gas_fragment(ndev, apdev)
+
 def test_gas_comeback_delay(dev, apdev):
     """GAS comeback delay"""
     hapd = start_ap(apdev[0])