mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-18 10:54:03 -05:00
tests: D-Bus ExpectDisconnect
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
c143c3b72a
commit
d679ab74a5
@ -4934,3 +4934,18 @@ def _test_dbus_ap_scan_2_ap_mode_scan(dev, apdev):
|
|||||||
dev[1].wait_disconnected()
|
dev[1].wait_disconnected()
|
||||||
dev[0].request("DISCONNECT")
|
dev[0].request("DISCONNECT")
|
||||||
dev[0].wait_disconnected()
|
dev[0].wait_disconnected()
|
||||||
|
|
||||||
|
def test_dbus_expectdisconnect(dev, apdev):
|
||||||
|
"""D-Bus ExpectDisconnect"""
|
||||||
|
(bus,wpas_obj,path,if_obj) = prepare_dbus(dev[0])
|
||||||
|
wpas = dbus.Interface(wpas_obj, WPAS_DBUS_SERVICE)
|
||||||
|
|
||||||
|
params = { "ssid": "test-open" }
|
||||||
|
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
|
||||||
|
dev[0].connect("test-open", key_mgmt="NONE", scan_freq="2412")
|
||||||
|
|
||||||
|
# This does not really verify the behavior other than by going through the
|
||||||
|
# code path for additional coverage.
|
||||||
|
wpas.ExpectDisconnect()
|
||||||
|
dev[0].request("DISCONNECT")
|
||||||
|
dev[0].wait_disconnected()
|
||||||
|
Loading…
Reference in New Issue
Block a user