From: Jouni Malinen Date: Sat, 12 Apr 2025 09:48:14 +0000 (+0300) Subject: tests: Per-STA Profile subelement fragmentation in MLE X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=043c073e74e01b8a8bf56e060cdb77adaa8ea7f6;p=thirdparty%2Fhostap.git tests: Per-STA Profile subelement fragmentation in MLE Note that the current mac80211 snapshot does not copy the non-association link extra IEs and as such, this test case does not actually end up fragmenting the subelement without a mac80211 fix. Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/test_eht.py b/tests/hwsim/test_eht.py index 3cec968d7..f254d00b3 100644 --- a/tests/hwsim/test_eht.py +++ b/tests/hwsim/test_eht.py @@ -431,10 +431,14 @@ def test_eht_mld_owe_two_links_reconf_mle_ext_only_second(dev, apdev): _eht_mld_owe_two_links(dev, apdev, reconf_mle=reconf_mle, only_second=True, scan_only_second_link=True) +def test_eht_mld_owe_two_links_frag_subelem(dev, apdev): + """AP MLD and fragmented MLE subelements""" + _eht_mld_owe_two_links(dev, apdev, frag_subelem=True) + def _eht_mld_owe_two_links(dev, apdev, second_link_disabled=False, only_one_link=False, scan_only_second_link=False, wait_for_timeout=False, reconf_mle=None, - only_second=False): + only_second=False, frag_subelem=False): with HWSimRadio(use_mlo=True) as (hapd0_radio, hapd0_iface), \ HWSimRadio(use_mlo=True) as (hapd1_radio, hapd1_iface), \ HWSimRadio(use_mlo=True) as (wpas_radio, wpas_iface): @@ -458,6 +462,8 @@ def _eht_mld_owe_two_links(dev, apdev, second_link_disabled=False, # Check legacy client connection dev[0].connect(ssid, scan_freq="2437", key_mgmt="OWE", ieee80211w="2") + if frag_subelem: + wpas.set("link_ies", "1:DDFF" + 255*"EE") if only_one_link: link0 = hapd0.get_status_field("link_addr") wpas.set("bssid_filter", link0)