Manually refreshed: 140-tests-Makefile-make-run-tests-with-CONFIG_TLS.patch 601-ucode_support.patch Fixed in upstream: 804-hostapd-revert-ACS-Validate-6-GHz-AP-criteria-before.patch [1] Automatically rebased all other patches. [1] https://w1.fi/cgit/hostap/commit/?id=0b60826a66885bffa2fd709ed5e48cd5fe241b6b Signed-off-by: Agustin Lorenzo <agustin.lorenzo@thinco.es> Signed-off-by: Felix Fietkau <nbd@nbd.name>
53 lines
1.3 KiB
Diff
53 lines
1.3 KiB
Diff
--- a/src/ap/sta_info.c
|
|
+++ b/src/ap/sta_info.c
|
|
@@ -1972,3 +1972,22 @@ void ap_sta_free_sta_profile(struct mld_
|
|
}
|
|
}
|
|
#endif /* CONFIG_IEEE80211BE */
|
|
+
|
|
+bool ap_sta_is_mld(struct hostapd_data *hapd,
|
|
+ struct sta_info *sta)
|
|
+{
|
|
+#ifdef CONFIG_IEEE80211BE
|
|
+ return hapd->conf->mld_ap && sta && sta->mld_info.mld_sta;
|
|
+#else /* CONFIG_IEEE80211BE */
|
|
+ return false;
|
|
+#endif /* CONFIG_IEEE80211BE */
|
|
+}
|
|
+
|
|
+void ap_sta_set_mld(struct sta_info *sta, bool mld)
|
|
+{
|
|
+#ifdef CONFIG_IEEE80211BE
|
|
+ if (sta)
|
|
+ sta->mld_info.mld_sta = mld;
|
|
+#endif /* CONFIG_IEEE80211BE */
|
|
+}
|
|
+
|
|
--- a/src/ap/sta_info.h
|
|
+++ b/src/ap/sta_info.h
|
|
@@ -412,23 +412,8 @@ int ap_sta_re_add(struct hostapd_data *h
|
|
|
|
void ap_free_sta_pasn(struct hostapd_data *hapd, struct sta_info *sta);
|
|
|
|
-static inline bool ap_sta_is_mld(struct hostapd_data *hapd,
|
|
- struct sta_info *sta)
|
|
-{
|
|
-#ifdef CONFIG_IEEE80211BE
|
|
- return hapd->conf->mld_ap && sta && sta->mld_info.mld_sta;
|
|
-#else /* CONFIG_IEEE80211BE */
|
|
- return false;
|
|
-#endif /* CONFIG_IEEE80211BE */
|
|
-}
|
|
-
|
|
-static inline void ap_sta_set_mld(struct sta_info *sta, bool mld)
|
|
-{
|
|
-#ifdef CONFIG_IEEE80211BE
|
|
- if (sta)
|
|
- sta->mld_info.mld_sta = mld;
|
|
-#endif /* CONFIG_IEEE80211BE */
|
|
-}
|
|
+bool ap_sta_is_mld(struct hostapd_data *hapd, struct sta_info *sta);
|
|
+void ap_sta_set_mld(struct sta_info *sta, bool mld);
|
|
|
|
void ap_sta_free_sta_profile(struct mld_info *info);
|
|
|