mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-20 02:53:03 -05:00
tests: Maximum STA count and limit on Probe Response frames
This verifies hostapd behavior with no_probe_resp_if_max_sta=1. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
9b7a1bd7ed
commit
dd0d294d2f
@ -249,6 +249,23 @@ def test_ap_max_num_sta(dev, apdev):
|
|||||||
if ev is not None:
|
if ev is not None:
|
||||||
raise Exception("Unexpected association")
|
raise Exception("Unexpected association")
|
||||||
|
|
||||||
|
def test_ap_max_num_sta_no_probe_resp(dev, apdev):
|
||||||
|
"""Maximum STA count and limit on Probe Response frames"""
|
||||||
|
dev[0].flush_scan_cache()
|
||||||
|
ssid = "max"
|
||||||
|
params = {}
|
||||||
|
params['ssid'] = ssid
|
||||||
|
params['beacon_int'] = "2000"
|
||||||
|
params['max_num_sta'] = "1"
|
||||||
|
params['no_probe_resp_if_max_sta'] = "1"
|
||||||
|
hostapd.add_ap(apdev[0]['ifname'], params)
|
||||||
|
dev[1].connect(ssid, key_mgmt="NONE", scan_freq="2412")
|
||||||
|
dev[0].scan(freq=2412, type="ONLY")
|
||||||
|
dev[0].scan(freq=2412, type="ONLY")
|
||||||
|
if dev[0].get_bss(apdev[0]['bssid']) != None:
|
||||||
|
raise Exception("AP found unexpectedly")
|
||||||
|
dev[1].scan(freq=2412, type="ONLY")
|
||||||
|
|
||||||
def test_ap_tx_queue_params(dev, apdev):
|
def test_ap_tx_queue_params(dev, apdev):
|
||||||
"""Open AP with TX queue params set"""
|
"""Open AP with TX queue params set"""
|
||||||
ssid = "tx"
|
ssid = "tx"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user