mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
tests: Hotspot 2.0 and connect attempt without credential
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
863a6bf6ae
commit
99cbec7ea7
@ -4428,6 +4428,18 @@ def test_ap_hs20_interworking_oom(dev, apdev):
|
|||||||
raise Exception("ANQP did not start")
|
raise Exception("ANQP did not start")
|
||||||
wait_fail_trigger(dev[0], "GET_ALLOC_FAIL")
|
wait_fail_trigger(dev[0], "GET_ALLOC_FAIL")
|
||||||
|
|
||||||
|
def test_ap_hs20_no_cred_connect(dev, apdev):
|
||||||
|
"""Hotspot 2.0 and connect attempt without credential"""
|
||||||
|
bssid = apdev[0]['bssid']
|
||||||
|
params = hs20_ap_params()
|
||||||
|
params['hessid'] = bssid
|
||||||
|
hapd = hostapd.add_ap(apdev[0], params)
|
||||||
|
|
||||||
|
dev[0].hs20_enable()
|
||||||
|
dev[0].scan_for_bss(bssid, freq="2412")
|
||||||
|
if "FAIL" not in dev[0].request("INTERWORKING_CONNECT " + bssid):
|
||||||
|
raise Exception("Unexpected INTERWORKING_CONNECT success")
|
||||||
|
|
||||||
def test_ap_hs20_anqp_invalid_gas_response(dev, apdev):
|
def test_ap_hs20_anqp_invalid_gas_response(dev, apdev):
|
||||||
"""Hotspot 2.0 network selection and invalid GAS response"""
|
"""Hotspot 2.0 network selection and invalid GAS response"""
|
||||||
bssid = apdev[0]['bssid']
|
bssid = apdev[0]['bssid']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user