Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jun 2025 09:14:28 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 88508506680e - stable/14 - LinuxKPI: 802.11; update frag_threshold and rts_threshold
Message-ID:  <202506110914.55B9ESP3062388@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by bz:

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

commit 88508506680e82c5236338a481f1ea772bb84b11
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-04-16 21:16:06 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-06-10 23:40:51 +0000

    LinuxKPI: 802.11; update frag_threshold and rts_threshold
    
    Update threshold values once we are associated.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit 6e7a6a66b239180778bb31da9fa8544bbd977cde)
---
 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 1487e20bebc7..a5982511fb24 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 "



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202506110914.55B9ESP3062388>