wifi: iwlwifi: fw: increase fw_version string size
authorGregory Greenman <gregory.greenman@intel.com>
Thu, 12 Oct 2023 12:41:48 +0000 (15:41 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 23 Oct 2023 10:25:53 +0000 (12:25 +0200)
commitc3745ee2e3506b75051f9d427cba24d95f75d6bf
tree3971dd4c2ba2c7348488bd46b2714e967954ee59
parent74a7c93f45abba538914a65dd2ef2ea7cf7150e2
wifi: iwlwifi: fw: increase fw_version string size

In reality 64 bytes are enough to hold fw version string,
but some compilers can complain (with W=1) that output may be
truncated when building this string with snprintf.
Increase the size to avoid this sort of warnings and state
explicitely that we want the size to be trancated to 32 bytes.

Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Tested-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231012153950.f4465b4b4e2b.Idced2e8d63c492872edcde1a3ce2cdd6cc0f8eb7@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/dvm/main.c
drivers/net/wireless/intel/iwlwifi/fw/img.h
drivers/net/wireless/intel/iwlwifi/mvm/ops.c