]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
AP MLD: Rename hostapd_is_mld_ap() to hostapd_is_multiple_link_mld()
authorHuang Chenming <chenhuan@qti.qualcomm.com>
Sat, 26 Jul 2025 04:19:06 +0000 (09:49 +0530)
committerJouni Malinen <j@w1.fi>
Fri, 22 Aug 2025 12:58:12 +0000 (15:58 +0300)
hostapd_is_mld_ap() returns true only when there is more than one link
affiliated with the AP MLD despite the fact that one link AP MLD is also
an MLD. So rename the function to hostapd_is_multiple_link_mld() to make
the code using this helper function easier to understand.

Signed-off-by: Huang Chenming <chenhuan@qti.qualcomm.com>
src/ap/drv_callbacks.c
src/ap/ieee802_11.c
src/ap/ieee802_11.h
src/ap/ieee802_1x.c
src/ap/sta_info.c

index d7e61dfd411541bb3edba0298ceb3f75ac2761be..ca1210c87721abe77d1d28b477d8dc96e5567758 100644 (file)
@@ -1074,7 +1074,7 @@ void hostapd_notif_disassoc(struct hostapd_data *hapd, const u8 *addr)
 
        sta = ap_get_sta(hapd, addr);
 #ifdef CONFIG_IEEE80211BE
-       if (hostapd_is_mld_ap(hapd)) {
+       if (hostapd_is_multiple_link_mld(hapd)) {
                struct hostapd_data *assoc_hapd;
                unsigned int i;
 
index 4952cc705a7badc261131f5b97e0af0ef5ef01dd..7e305c14caad9678b97cf515e13edd7f65989828 100644 (file)
@@ -4945,7 +4945,7 @@ out:
 }
 
 
-bool hostapd_is_mld_ap(struct hostapd_data *hapd)
+bool hostapd_is_multiple_link_mld(struct hostapd_data *hapd)
 {
        struct hostapd_data *bss;
 
@@ -4983,7 +4983,7 @@ int hostapd_process_assoc_ml_info(struct hostapd_data *hapd,
 #ifdef CONFIG_IEEE80211BE
        unsigned int i;
 
-       if (!hostapd_is_mld_ap(hapd))
+       if (!hostapd_is_multiple_link_mld(hapd))
                return 0;
 
        for (i = 0; i < MAX_NUM_MLD_LINKS; i++) {
@@ -6197,7 +6197,7 @@ static bool hostapd_ml_handle_disconnect(struct hostapd_data *hapd,
        struct sta_info *assoc_sta;
        struct sta_info *tmp_sta;
 
-       if (!hostapd_is_mld_ap(hapd))
+       if (!hostapd_is_multiple_link_mld(hapd))
                return false;
 
        /*
@@ -6886,7 +6886,7 @@ static void hostapd_ml_handle_assoc_cb(struct hostapd_data *hapd,
 #ifdef CONFIG_IEEE80211BE
        struct hostapd_data *tmp_hapd;
 
-       if (!hostapd_is_mld_ap(hapd))
+       if (!hostapd_is_multiple_link_mld(hapd))
                return;
 
        for_each_mld_link(tmp_hapd, hapd) {
index f1230da34cc87a07670feca53dc7ccce409d7cec..31bc0249bffa3634477006a511bd066b55b1c24c 100644 (file)
@@ -289,7 +289,7 @@ u8 * hostapd_eid_mbssid(struct hostapd_data *hapd, u8 *eid, u8 *end,
                        u8 **elem_offset,
                        const u8 *known_bss, size_t known_bss_len, u8 *rnr_eid,
                        u8 *rnr_count, u8 **rnr_offset, size_t rnr_len);
-bool hostapd_is_mld_ap(struct hostapd_data *hapd);
+bool hostapd_is_multiple_link_mld(struct hostapd_data *hapd);
 const char * sae_get_password(struct hostapd_data *hapd,
                              struct sta_info *sta, const char *rx_id,
                              struct sae_password_entry **pw_entry,
index 61e8bfaed88e0544b9b2f6ec59438ec005988992..4fe8bff6f98ed1aa70bcfa2b1cc5298d2cb26216 100644 (file)
@@ -151,7 +151,7 @@ static void ieee802_1x_ml_set_sta_authorized(struct hostapd_data *hapd,
 #ifdef CONFIG_IEEE80211BE
        unsigned int i;
 
-       if (!hostapd_is_mld_ap(hapd))
+       if (!hostapd_is_multiple_link_mld(hapd))
                return;
 
        /*
index 960b051d2ae4447b087d2d2d5a7185498430df55..4ad809cb25ca28fcb34cc894c822797a34825611 100644 (file)
@@ -1087,7 +1087,7 @@ static bool ap_sta_ml_disconnect(struct hostapd_data *hapd,
        unsigned int i, link_id;
        struct hapd_interfaces *interfaces;
 
-       if (!hostapd_is_mld_ap(hapd))
+       if (!hostapd_is_multiple_link_mld(hapd))
                return false;
 
        /*