git: 4e50831dc9af - stable/14 - iwlwifi: add message how to install firmware on FreeBSD

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Wed, 18 Jun 2025 07:16:59 UTC
The branch stable/14 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=4e50831dc9af6b1b30a41b35f0988501b89e3a5d

commit 4e50831dc9af6b1b30a41b35f0988501b89e3a5d
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2025-06-10 14:04:05 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2025-06-17 23:07:33 +0000

    iwlwifi: add message how to install firmware on FreeBSD
    
    While it is too late for 14.3-R point people at fwget(8) to install
    firmware if the driver cannot find any.
    
    Sponsored by:   The FreeBSD Foundation
    Reviewed by:    emaste, ziaee
    Differential Revision: https://reviews.freebsd.org/D50777
    
    (cherry picked from commit 8ac82ba19efbaeec065621215c3843f054fa419e)
---
 sys/contrib/dev/iwlwifi/iwl-drv.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/contrib/dev/iwlwifi/iwl-drv.c b/sys/contrib/dev/iwlwifi/iwl-drv.c
index b99204d87283..b5c5268f8ddd 100644
--- a/sys/contrib/dev/iwlwifi/iwl-drv.c
+++ b/sys/contrib/dev/iwlwifi/iwl-drv.c
@@ -277,6 +277,9 @@ static int iwl_request_firmware(struct iwl_drv *drv, bool first)
 
 		IWL_ERR(drv,
 			"check git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git\n");
+#if defined(__FreeBSD__)
+		IWL_ERR(drv, "On FreeBSD the firmware package can be installed running fwget(8).\n");
+#endif
 		return -ENOENT;
 	}