The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=6e7a6a66b239180778bb31da9fa8544bbd977cde
commit 6e7a6a66b239180778bb31da9fa8544bbd977cde Author: Bjoern A. Zeeb <b...@freebsd.org> AuthorDate: 2025-04-16 21:16:06 +0000 Commit: Bjoern A. Zeeb <b...@freebsd.org> CommitDate: 2025-06-06 16:28:00 +0000 LinuxKPI: 802.11; update frag_threshold and rts_threshold Update threshold values once we are associated. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/compat/linuxkpi/common/src/linux_80211.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c index 2721aa84b9fd..1d00e8da8f9a 100644 --- a/sys/compat/linuxkpi/common/src/linux_80211.c +++ b/sys/compat/linuxkpi/common/src/linux_80211.c @@ -2981,6 +2981,12 @@ lkpi_sta_assoc_to_run(struct ieee80211vap *vap, enum ieee80211_state nstate, int IMPROVE("Is this the right spot, has net80211 done all updates already?"); lkpi_sta_sync_from_ni(hw, vif, sta, ni, true); + /* Update thresholds. */ + hw->wiphy->frag_threshold = vap->iv_fragthreshold; + lkpi_80211_mo_set_frag_threshold(hw, vap->iv_fragthreshold); + hw->wiphy->rts_threshold = vap->iv_rtsthreshold; + lkpi_80211_mo_set_rts_threshold(hw, vap->iv_rtsthreshold); + /* Update sta_state (ASSOC to AUTHORIZED). */ KASSERT(lsta != NULL, ("%s: ni %p lsta is NULL\n", __func__, ni)); KASSERT(lsta->state == IEEE80211_STA_ASSOC, ("%s: lsta %p state not "