Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
--- a/src/ap/sta_info.c
|
||||
+++ b/src/ap/sta_info.c
|
||||
@@ -1914,3 +1914,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
|
||||
@@ -408,23 +408,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);
|
||||
|
||||
Reference in New Issue
Block a user