From nobody Fri Nov 08 18:13:17 2024 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 4XlRrY5MNCz5cbLy; Fri, 08 Nov 2024 18:13:17 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XlRrY4n3gz42rJ; Fri, 8 Nov 2024 18:13:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731089597; 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=tjpE0V/uobuYkqmHurwPEK47VscKo/M3YiYbrKvfCmA=; b=e3MffsDIqnIGtblxU61C+YjcSZqsO/tFSNSxYqUzfY/q+WfO9rAn5R8tb7JBPwJ/KiT9jT W9r0bv6DMad2dyvbL4occHm17Z+ADdWxLv0Ss0eWjCkyuIJsUtCPvJ31srqC9mva5U/NBc RVepjp9SCqu8xn/lGzlpo3h+pW2SjaLHk+NWAuaARIgThQ7auHTMm6D2fhmX5emlNZPCjI y8snIbM+J82pw8gmSAPCMt+0v42/MYqSE3EzDfUXFnNMfZhkaZhqjjc+fYHaJ/e0YkbfQ3 uJTHfdnmtqewkrwaF0zF2qO82Sij6kxm72xrF3vfF+ueixWbxJ7HebHHLUuSKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731089597; 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=tjpE0V/uobuYkqmHurwPEK47VscKo/M3YiYbrKvfCmA=; b=HNMKtUBJczv4AXhxlJpJopVEtxDt9A3WY/cDWOb2qqGFm6hZjvORe5Z11iWWwm95itsvVz 7lOtlkRhTiveGIb+GKgAZ//gZswhzzQUWY2RmwUEtH44IwyeVXpFMytHZl/tSoWkpO8TjE 11CU2T7ACalifry0P/BlEdunQ0PHv6I3Tn9nvBuE827KJwJ1LE6vB7em+RhM9phQ4Ntqx+ At4trUojcaAIBuFOZuKMoRbQsTr3GvXM5svtDt3VyU9BsSEnJmHe2WiXKV+pO/WW4GQB6H bb89zcpU0s/GgE8vu5PL7U0+Tx2sS0RyDFaXbfAy9mIB6a+c5KiZyXyiS9qX9w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731089597; a=rsa-sha256; cv=none; b=aWD7DX4aejyZS8MMaRaGdmkFvEgwc6RI21QcbJYU6kiIxyDxkO1RAtE5NozWYM5heDSo12 y/t9G6fITc7NisyeER+iQUzxCFeEMm2Ea/XS9dROXPQZyhIKJ9KN39BloDHTPtrJvdLyaY 3Jb9WTnJsi6ZrqtzqmmdGJKoaPNMppKn0kV0dcXHoC6ijQwbGucRE/Og5+OViPFMKkRexa 19P+1//AANG2tz5ZyBoq3btKLMavUV0Ipbz/GViBPRCJv2JtXfNXMNRXyk7UWQKInB3LqU vtNDGbu+belWlAhnUMBV2/9wUdpugW7Tokx8UZj7msijGwE2IDyFEAl/Sie2Qg== 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 4XlRrY4HlMzgYF; Fri, 8 Nov 2024 18:13:17 +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 4A8IDH6c033743; Fri, 8 Nov 2024 18:13:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4A8IDHmi033740; Fri, 8 Nov 2024 18:13:17 GMT (envelope-from git) Date: Fri, 8 Nov 2024 18:13:17 GMT Message-Id: <202411081813.4A8IDHmi033740@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: 52f8e99e7e5e - main - iwlwifi: script to extract firmware details 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: 52f8e99e7e5e6fab52b3fff535d62b873f8c02dd Auto-Submitted: auto-generated The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=52f8e99e7e5e6fab52b3fff535d62b873f8c02dd commit 52f8e99e7e5e6fab52b3fff535d62b873f8c02dd Author: Bjoern A. Zeeb AuthorDate: 2024-11-08 18:09:37 +0000 Commit: Bjoern A. Zeeb CommitDate: 2024-11-08 18:09:37 +0000 iwlwifi: script to extract firmware details When having to find a firmware image with a lower version number we must only break the inner but not also the outer loop so we keep looking at any possibly remaining firmware details. While here also try to find a version from max..1 and not from 1..max. Sponsored by: The FreeBSD Foundation MFC after: 3 days --- sys/contrib/dev/iwlwifi/zzz_fw_ports_fwget.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/contrib/dev/iwlwifi/zzz_fw_ports_fwget.sh b/sys/contrib/dev/iwlwifi/zzz_fw_ports_fwget.sh index 60c75c00cbc7..6b6798aae49e 100644 --- a/sys/contrib/dev/iwlwifi/zzz_fw_ports_fwget.sh +++ b/sys/contrib/dev/iwlwifi/zzz_fw_ports_fwget.sh @@ -155,11 +155,11 @@ list_fw() vn=$(echo ${fx} | awk '{ gsub(".ucode$", ""); gsub("^.*-", ""); print; }') #echo "BN ${bn} VN ${vn}" # Single digits are not zero-padded so just ${i} will be fine. - for i in `jot ${vn} 1`; do + for i in `jot ${vn} ${vn} 1`; do xn="${bn}-${i}.ucode" if test -e ${LFWDIR}/${xn}; then lx="${lx} ${xn}" - break 2; + break fi done ;;