[PATCH] tests: disable IPv6 in protected keep-alive test
Benjamin Berg
benjamin at sipsolutions.net
Thu Jun 26 01:51:24 PDT 2025
From: Benjamin Berg <benjamin.berg at intel.com>
When the new protected_keep_alive test was added, the @disable_ipv6
decorator was not moved. Disable IPv6 for both keep alive tests by
moving it to the run_ function.
Also remove the @remote_compatible decorator as it does not work with
IPv6 disablement. It was not removed in the patch to disable IPv6 in the
original test.
Fixes: fdf23679f823 ("tests: More coverage for WNM BSS max idle period management")
Fixes: 1bd5e35b8733 ("tests: Disable IPv6 in WNM keep-alive test")
Signed-off-by: Benjamin Berg <benjamin.berg at intel.com>
---
tests/hwsim/test_wnm.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/hwsim/test_wnm.py b/tests/hwsim/test_wnm.py
index cfe813e40b..9d8a91382b 100644
--- a/tests/hwsim/test_wnm.py
+++ b/tests/hwsim/test_wnm.py
@@ -786,8 +786,6 @@ def test_wnm_bss_tm_req(dev, apdev):
resp = rx_bss_tm_resp(hapd, expect_dialog=8, expect_status=7)
dev[0].dump_monitor()
- at remote_compatible
- at disable_ipv6
def test_wnm_bss_keep_alive(dev, apdev):
"""WNM keep-alive"""
run_wnm_bss_keep_alive(dev, apdev, False)
@@ -796,6 +794,7 @@ def test_wnm_bss_protected_keep_alive(dev, apdev):
"""WNM protected keep-alive"""
run_wnm_bss_keep_alive(dev, apdev, True)
+ at disable_ipv6
def run_wnm_bss_keep_alive(dev, apdev, protected):
hapd = start_wnm_ap(apdev[0], bss_transition=False, ap_max_inactivity=1,
bss_max_idle=2 if protected else 1, rsn=True)
--
2.50.0
More information about the Hostap
mailing list