From nobody Fri Jun 6 16:29:40 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bDRc55vRLz5xchH; Fri, 06 Jun 2025 16:29:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bDRc44GY5z3NHl; Fri, 06 Jun 2025 16:29:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749227380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C5fKqZU4dd4ncWAl+oesVOp1/wXR0zl6STJWRUIfdF4=; b=Y3ynFg6AQP7IaqTnUU/cU2BI/9FrhXPasjikBqLBo9mh6CAU5Fez9+YqR97iaiwa2TEZBt bvx4AJ+NGW0SA3Pgp6uhjYa4A+10/UhiALQiqyPEqrzuc0JvGLgD/LWnI5p6PvhQhkJKXe b/tx8NvjtaxZhH9F8fCv6ddh9RWsLL836pWpoVaYcoaQ8nGKh2f45MI4UiAXiKKXAk45qd NR5ltA0cHfNSlguqKUCXBJjIfcxK2wvIs/OvJHmdumuGfRix+Lt8Yj0G6xEn/EaGBLcLP9 dT3g8PzrgwCcCeIDyQQka6m8yr2nFEIBx7LSGCqYDQ+IBXyF68kElTOFip91Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1749227380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=C5fKqZU4dd4ncWAl+oesVOp1/wXR0zl6STJWRUIfdF4=; b=E3N1chLIGwfJGajEA8cBjoWw1oSaWZImSGG4mW4LsHNPBO8sVEpUumdMSUa4OptXyoZTur SmYrBIhfbRb2AxfVMVm9Yzy6xG7uKQOBzpm6cwiXlv/NiUrH4l+IRs+sLp72WhyufGJIKV iytYtJX8XFOiOvUvIipYDqEKhgnhKF+v7flvm/VRK/DHD/1GQC5w/bKF7ypylLXYuRMtwZ 4EcWt56ZBHM0jPNo4HziK3Z39TujYnx5KoQ8srfIZPW/6twIebAi051YZLiaYywzHJX5BC RHbYRiBy5IFB3qXeIBdlrWYrYc426UaMOOMIKXn+Qqj4IGbZqYUm6qwpT5z9Rw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1749227380; a=rsa-sha256; cv=none; b=lBq1q9purMjeZ8nx4H0d37LLSaGKRrrnGByb0fuOfirZeIee0M3k8U8AMm3MdEZA2H37lI qCHBJzmcUtv5kcObKjvQ9CfaSP2G0Qa1o5KBspkTCiI16Lwm9hm9j3gUKmkCpYyAwiXE1G PIsgp7mpdaymICnAHjuQaPp8a45RSv+LRC6JS8dC7RxtGA4pm+3WX7Bm0pihsm/flIqt2d OxOkBPUczYSz3EHI4UC+0G1C3WkjQ2y5+H7UwNPkT9ep78BI5mYNgDR33noNWu8NGYeS1g ToHYcPzGgXfCJzSu1T2CSsSGZp6RCVKJSIqrv3ETEMBnR5UqPHnhT5Io3ulFWQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4bDRc43kNkz12Zp; Fri, 06 Jun 2025 16:29:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 556GTeuR067625; Fri, 6 Jun 2025 16:29:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 556GTeC1067622; Fri, 6 Jun 2025 16:29:40 GMT (envelope-from git) Date: Fri, 6 Jun 2025 16:29:40 GMT Message-Id: <202506061629.556GTeC1067622@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 6e7a6a66b239 - main - LinuxKPI: 802.11; update frag_threshold and rts_threshold List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6e7a6a66b239180778bb31da9fa8544bbd977cde Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=6e7a6a66b239180778bb31da9fa8544bbd977cde commit 6e7a6a66b239180778bb31da9fa8544bbd977cde Author: Bjoern A. Zeeb AuthorDate: 2025-04-16 21:16:06 +0000 Commit: Bjoern A. Zeeb 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 "