]> asedeno.scripts.mit.edu Git - linux.git/commit
iwlwifi: incorporate firmware filename into version
authorJohannes Berg <johannes.berg@intel.com>
Thu, 31 Oct 2019 09:28:32 +0000 (10:28 +0100)
committerLuca Coelho <luciano.coelho@intel.com>
Sat, 4 Jan 2020 10:46:14 +0000 (12:46 +0200)
commit55b514b479ff8a6e2473e7ef2349d49380c5fa61
tree438e9817972c8d9489bb98aaede219cb77bdd46a
parente701da0c2320148a378ed1d191b6c4f7e8e82c4c
iwlwifi: incorporate firmware filename into version

We have many different firmware images with the same version,
and it's sometimes cumbersome to figure out which image was
really used, especially as the marketing strings that we do
print out can be the same for (slightly) different hardware
using different firmware images.

Incorporate the firmware filename into the fw_version so it's
printed out all the time. Unfortunately, this will make the
string be longer than the 32 characters for ethtool, but we
almost never really use ethtool, so strip the "iwlwifi-"
prefix (if not overridden), and the remaining data that may
then be stripped at the end is not usually useful anyway.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/img.h
drivers/net/wireless/intel/iwlwifi/iwl-drv.c