git: 00295a19ab1a - stable/14 - LinuxKPI: 802.11: ieee80211_vif_usable_links()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Feb 2025 20:27:16 UTC
The branch stable/14 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=00295a19ab1ad789bdad9f88e692ab9efeb99d38
commit 00295a19ab1ad789bdad9f88e692ab9efeb99d38
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-01-25 11:59:03 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-02-24 20:26:49 +0000
LinuxKPI: 802.11: ieee80211_vif_usable_links()
ieee80211_vif_usable_links() shows up in TODO() tracking.
Turns out the return (1) is likely wrong and should be 0 given we do
not support MLD yet. For now return the valid_links bitmap and leave
an IMPROVE as likely not all of the valid ones will be useable.
Sponsored by: The FreeBSD Foundation
(cherry picked from commit d2407a21bd032587194dff46779862ffcd5c33d8)
---
sys/compat/linuxkpi/common/include/net/mac80211.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/compat/linuxkpi/common/include/net/mac80211.h b/sys/compat/linuxkpi/common/include/net/mac80211.h
index f1b1ec97cbbc..8d6d690b2f57 100644
--- a/sys/compat/linuxkpi/common/include/net/mac80211.h
+++ b/sys/compat/linuxkpi/common/include/net/mac80211.h
@@ -2539,8 +2539,8 @@ ieee80211_get_eht_iftype_cap_vif(const struct ieee80211_supported_band *band,
static inline uint32_t
ieee80211_vif_usable_links(const struct ieee80211_vif *vif)
{
- TODO();
- return (1);
+ IMPROVE("MLO usable links likely are not just valid");
+ return (vif->valid_links);
}
static inline bool