]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Per-STA Profile subelement fragmentation in MLE
authorJouni Malinen <jouni.malinen@oss.qualcomm.com>
Sat, 12 Apr 2025 09:48:14 +0000 (12:48 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 12 Apr 2025 10:40:31 +0000 (13:40 +0300)
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 <jouni.malinen@oss.qualcomm.com>
tests/hwsim/test_eht.py

index 3cec968d743d47d2fb5ccd5285c4a95ee1771f60..f254d00b3f194dfbefb91dd3930b937f933932d6 100644 (file)
@@ -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)