The branch main has been updated by bz:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=d2407a21bd032587194dff46779862ffcd5c33d8

commit d2407a21bd032587194dff46779862ffcd5c33d8
Author:     Bjoern A. Zeeb <b...@freebsd.org>
AuthorDate: 2025-01-25 11:59:03 +0000
Commit:     Bjoern A. Zeeb <b...@freebsd.org>
CommitDate: 2025-02-16 22:45:33 +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
    MFC after:      3 days
---
 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

Reply via email to