git: 7ff741003780 - stable/14 - iwlwifi: script to extract firmware details
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 14 Nov 2024 01:53:58 UTC
The branch stable/14 has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=7ff7410037807498c2f56151d5c93fcd80987a17
commit 7ff7410037807498c2f56151d5c93fcd80987a17
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-11-08 18:09:37 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2024-11-14 01:53:12 +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
(cherry picked from commit 52f8e99e7e5e6fab52b3fff535d62b873f8c02dd)
---
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
;;