]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Export hostapd_sta_is_link_sta()
authorAditya Kumar Singh <quic_adisi@quicinc.com>
Wed, 6 Mar 2024 06:41:03 +0000 (12:11 +0530)
committerJouni Malinen <j@w1.fi>
Wed, 27 Mar 2024 16:12:39 +0000 (18:12 +0200)
This functionality can be shared with other files as well.

Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
src/ap/ap_drv_ops.c
src/ap/ap_drv_ops.h

index d7becb25bbda25ea4b68f6783ae8964a9ec6056c..0d493b837c9bac2ed79bcf5ad18fb335c49ef1e7 100644 (file)
@@ -265,8 +265,8 @@ int hostapd_set_ap_wps_ie(struct hostapd_data *hapd)
 }
 
 
-static bool hostapd_sta_is_link_sta(struct hostapd_data *hapd,
-                                   struct sta_info *sta)
+bool hostapd_sta_is_link_sta(struct hostapd_data *hapd,
+                            struct sta_info *sta)
 {
 #ifdef CONFIG_IEEE80211BE
        if (ap_sta_is_mld(hapd, sta) &&
index be1ea439f71b99ca99cf08c67e54fc12f7e508bf..e9da64d73c86ec0399cb06838b6233c48bb68a43 100644 (file)
@@ -26,6 +26,8 @@ void hostapd_free_ap_extra_ies(struct hostapd_data *hapd, struct wpabuf *beacon,
                               struct wpabuf *assocresp);
 int hostapd_reset_ap_wps_ie(struct hostapd_data *hapd);
 int hostapd_set_ap_wps_ie(struct hostapd_data *hapd);
+bool hostapd_sta_is_link_sta(struct hostapd_data *hapd,
+                            struct sta_info *sta);
 int hostapd_set_authorized(struct hostapd_data *hapd,
                           struct sta_info *sta, int authorized);
 int hostapd_set_sta_flags(struct hostapd_data *hapd, struct sta_info *sta);