From nobody Thu Mar 5 13:44:32 2026 X-Original-To: dev-commits-src-all@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 4fRW4130RBz6T3JS for ; Thu, 05 Mar 2026 13:44:33 +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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fRW406rmRz3JPt for ; Thu, 05 Mar 2026 13:44:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772718273; 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=4mGx5vLyNW3FDbq9hoBT9zPy6nE2nGAUMuy6YYcpfdU=; b=WK3YyLDGOX3e7YPBa6tCDpWr330cxa3rrBZZ/zQRZkXFLXAskjneeAZFzKwRRa0qglCdXc WJVG1KjItkbNjEzbN9attOt0pWDDI8QOwDTyprYpGb57iArEwd0GVZ9McK380D3R+Fv61a 3LVDmsIBVhwWp71U9M6Vap9aW5VnXZ0qpEZInE2tmlc01hF8i0LzADAqFbfQ6mqEzkwlE1 fLIhMhARU2w6PK9fmjVc8THQN8DPRBBKRzDDwqGIN3H4eaYvkcPPlecKTHtXmxwOFk4P7/ TJMSW/upxuI9b2onD0uGiZvz9qwiXP+DIoJy4whrS046cqwSjxFVQ4VdRttcFg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1772718273; a=rsa-sha256; cv=none; b=UqUYEd19UUjPzjTlNiG2zy0w4SKb1IK2wfSpXUIVbeliQgSYoPhIorhLsEDcNIq5YuZEkI 8YwamwJ0pssz5BY6LDY3Qz2pC0EcqRfIsVTnbI56TmAn5O9l8/SHTQzX6XxLwdbP/HWr9D zCwY4MQG+slnELIBgzpQWcPLSUHOG+z07gAmsVjNHsmDMQVPPLFhA74rAuyphbgysmKkQl hTNo8MgKV5SNVRclg2ShYk38m8VIjatIy3tUfDlLGiXDS0aPDFCLWrP8TcNrY6/AwnSvPn eyENaPSWOj2aKx5YeCzRC5yiZGU/F2bzwGu4tgp8vQ3gaHHcrOZ8kCE6v9A2QA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1772718273; 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=4mGx5vLyNW3FDbq9hoBT9zPy6nE2nGAUMuy6YYcpfdU=; b=uSrDdcG3L43P13ZkI4U04lbIWGLevT7Lk0/1rDxeR/UxTpeMLQZxw/q5adizaGXwGbFBS8 e507zt8ok/2PRRRfdlWLxxD1CnRlKzg6jyQylxRGsdv/ozaik2j9yq1bR1uhXYMzmtnylP tFgHZmM1cO3VY3uuup3jKMhobOqZAL/a+cxSVKIPJaqPlE9v+Hw0czKmChs1og3sBoJ+w3 Q+gUUMZI1y3bap0XyzQUolwG2dK9Hd766xTfaZAYwRP+mBBGpJ57YNqia+YF3mTV2TPKZ5 +6Gq6yskYRUpGPHYg70NFXU97jyWPEMGfHoCYD8/1y9NqEni6dwNx97GwVJzqw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4fRW406Rkqzfnt for ; Thu, 05 Mar 2026 13:44:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 20e36 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 05 Mar 2026 13:44:32 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Bjoern A. Zeeb Subject: git: 760e0a18d303 - main - iwlwifi: fixup link_id for certain cases List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: 760e0a18d3033152899fbd0e3f587dfe3c28d6bf Auto-Submitted: auto-generated Date: Thu, 05 Mar 2026 13:44:32 +0000 Message-Id: <69a988c0.20e36.66aa516e@gitrepo.freebsd.org> The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=760e0a18d3033152899fbd0e3f587dfe3c28d6bf commit 760e0a18d3033152899fbd0e3f587dfe3c28d6bf Author: Bjoern A. Zeeb AuthorDate: 2026-03-05 09:47:10 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-03-05 13:44:01 +0000 iwlwifi: fixup link_id for certain cases In iwl_mvm_mld_vif_cfg_changed_station() if we do not do MLO (which we do not do yet at all), dtim_period is not yet set but asssoc is (our common case) the link_id can become -1 as active_links is always 0 for the non-MLO case. This leads to logging of a WARN; Invalid link ID for session protection: 4294967295 Fixup the link_id if it is -1 to be 0. This is the deflink link_id so that should always be fine in this case. For Linux 7.0-rc2 that code is already gone so this is a local temporary stopgap measure for the mvm-mld devices (e.g., some AX210). Sponosred by: The FreeBSD Foundation MFC after: 3 days --- sys/contrib/dev/iwlwifi/mvm/mld-mac80211.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/contrib/dev/iwlwifi/mvm/mld-mac80211.c b/sys/contrib/dev/iwlwifi/mvm/mld-mac80211.c index bf24f8cb673e..8b88f211066d 100644 --- a/sys/contrib/dev/iwlwifi/mvm/mld-mac80211.c +++ b/sys/contrib/dev/iwlwifi/mvm/mld-mac80211.c @@ -838,6 +838,14 @@ static void iwl_mvm_mld_vif_cfg_changed_station(struct iwl_mvm *mvm, */ unsigned int link_id = ffs(vif->active_links) - 1; +#if defined(__FreeBSD__) + /* link_id is gone in Linux v7.0. + * For us it can become -1 if this is non-MLO + * and dtim_period is still 0. + */ + if (link_id == -1) + link_id = 0; +#endif /* If we're not restarting and still haven't * heard a beacon (dtim period unknown) then