tests: GAS fragmentation with mac80211_hwsim MCC enabled
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
35c146bc1b
commit
70f2a3f4ab
1 changed files with 10 additions and 1 deletions
|
@ -15,6 +15,7 @@ import struct
|
||||||
import hostapd
|
import hostapd
|
||||||
from wpasupplicant import WpaSupplicant
|
from wpasupplicant import WpaSupplicant
|
||||||
from utils import alloc_fail, skip_with_fips
|
from utils import alloc_fail, skip_with_fips
|
||||||
|
from hwsim import HWSimRadio
|
||||||
|
|
||||||
def hs20_ap_params():
|
def hs20_ap_params():
|
||||||
params = hostapd.wpa2_params(ssid="test-gas")
|
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].scan_for_bss(apdev[0]['bssid'], freq="2412", force_scan=True)
|
||||||
dev[0].request("FETCH_ANQP")
|
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:
|
if ev is None:
|
||||||
raise Exception("No GAS-QUERY-DONE event")
|
raise Exception("No GAS-QUERY-DONE event")
|
||||||
if "result=SUCCESS" not in ev:
|
if "result=SUCCESS" not in ev:
|
||||||
|
@ -256,6 +257,14 @@ def test_gas_fragment(dev, apdev):
|
||||||
if "result=SUCCESS" not in ev:
|
if "result=SUCCESS" not in ev:
|
||||||
raise Exception("Unexpected ANQP result: " + 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):
|
def test_gas_comeback_delay(dev, apdev):
|
||||||
"""GAS comeback delay"""
|
"""GAS comeback delay"""
|
||||||
hapd = start_ap(apdev[0])
|
hapd = start_ap(apdev[0])
|
||||||
|
|
Loading…
Reference in a new issue