The branch main has been updated by bz:

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

commit 8c1fdcf8c4026290d122f573e1207188ac029bac
Author:     Bjoern A. Zeeb <b...@freebsd.org>
AuthorDate: 2025-05-10 01:44:52 +0000
Commit:     Bjoern A. Zeeb <b...@freebsd.org>
CommitDate: 2025-08-24 10:26:38 +0000

    LinuxKPI: 802.11: announce netdev features under boot -v
    
    Under bootverbose print the announced netdev features during
    ifattach. Helps us to debug problems amongst drivers if needed.
    
    Leave a comment where to add checksum offlooading setting on the
    ifp if we get there (this would be based on netdev features).
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      3 days
---
 sys/compat/linuxkpi/common/src/linux_80211.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c 
b/sys/compat/linuxkpi/common/src/linux_80211.c
index 7e1430ccdbd1..45e4aa1639ab 100644
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -3877,10 +3877,12 @@ lkpi_ic_vap_create(struct ieee80211com *ic, const char 
name[IFNAMSIZ],
        /* Force MC init. */
        lkpi_update_mcast_filter(ic, true);
 
-       IMPROVE();
-
        ieee80211_vap_setup(ic, vap, name, unit, opmode, flags, bssid);
 
+       /* Now we have a valid vap->iv_ifp.  Any checksum offloading goes 
below. */
+
+       IMPROVE();
+
        /* Override with LinuxKPI method so we can drive mac80211/cfg80211. */
        lvif->iv_newstate = vap->iv_newstate;
        vap->iv_newstate = lkpi_iv_newstate;
@@ -6364,8 +6366,10 @@ linuxkpi_ieee80211_ifattach(struct ieee80211_hw *hw)
                hw->wiphy->max_scan_ie_len -= lhw->scan_ie_len;
        }
 
-       if (bootverbose)
+       if (bootverbose) {
+               ic_printf(ic, "netdev_features %b\n", hw->netdev_features, 
NETIF_F_BITS);
                ieee80211_announce(ic);
+       }
 
        return (0);
 err:

Reply via email to