tests: Flush correct iface in P2PS stale group removal tests

FLUSH should be done on P2P device interface, otherwise the networks are
not removed. Fix that.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
This commit is contained in:
Andrei Otcheretianski 2019-04-03 18:17:17 +03:00 committed by Jouni Malinen
parent bbed23aee6
commit 0f7db7743d

View file

@ -870,7 +870,7 @@ def test_p2ps_stale_group_removal(dev):
# Drop the first persistent group on dev[1] and form new persistent groups # Drop the first persistent group on dev[1] and form new persistent groups
# on both devices. # on both devices.
dev[1].request("FLUSH") dev[1].p2pdev_request("FLUSH")
go_neg_pin_authorized_persistent(i_dev=dev[0], i_intent=15, go_neg_pin_authorized_persistent(i_dev=dev[0], i_intent=15,
r_dev=dev[1], r_intent=0) r_dev=dev[1], r_intent=0)
dev[0].remove_group() dev[0].remove_group()
@ -909,7 +909,7 @@ def test_p2ps_stale_group_removal2(dev):
# Drop the first persistent group on dev[1] and form new persistent groups # Drop the first persistent group on dev[1] and form new persistent groups
# on both devices. # on both devices.
dev[1].request("FLUSH") dev[1].p2pdev_request("FLUSH")
go_neg_pin_authorized_persistent(i_dev=dev[0], i_intent=0, go_neg_pin_authorized_persistent(i_dev=dev[0], i_intent=0,
r_dev=dev[1], r_intent=15) r_dev=dev[1], r_intent=15)
dev[1].remove_group() dev[1].remove_group()