LinuxKPI: 802.11: enable fragmentation offload

Let the hardware handle fragmentation itself and tell net80211 to
save itself from it.  We already call the (*set_frag_threshold)
mac80211 function.

This should be a NOP for all currently enabled LinuxKPI based WiFi
drivers.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
This commit is contained in:
Bjoern A. Zeeb 2025-04-12 19:50:06 +00:00
parent 7acd5af48c
commit 63578bf225

View file

@ -5759,6 +5759,10 @@ linuxkpi_ieee80211_ifattach(struct ieee80211_hw *hw)
lhw->scan_flags |= LKPI_LHW_SCAN_HW;
}
/* Does HW support Fragmentation offload? */
if (ieee80211_hw_check(hw, SUPPORTS_TX_FRAG))
ic->ic_flags_ext |= IEEE80211_FEXT_FRAG_OFFLOAD;
/*
* The wiphy variables report bitmasks of avail antennas.
* (*get_antenna) get the current bitmask sets which can be