1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/ath/ath9k
Kalle Valo 359342795d wifi: ath9k_htc: fix format-truncation warning
On v6.6-rc4 with GCC 13.2 I see:

drivers/net/wireless/ath/ath9k/hif_usb.c:1223:42: warning: '.0.fw' directive output may be truncated writing 5 bytes into a region of size between 4 and 11 [-Wformat-truncation=]
drivers/net/wireless/ath/ath9k/hif_usb.c:1222:17: note: 'snprintf' output between 27 and 34 bytes into a destination of size 32

Fix it by increasing the size of the fw_name field to 64 bytes.

Compile tested only.

Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20231012135854.3473332-3-kvalo@kernel.org
2023-10-23 20:24:40 +03:00
..
ahb.c wifi: ath9k: fix printk specifier 2023-07-25 17:31:37 +03:00
ani.c ath9k: Replace HTTP links with HTTPS ones 2020-08-14 17:44:14 +03:00
ani.h
antenna.c
ar953x_initvals.h
ar955x_1p0_initvals.h
ar956x_initvals.h
ar5008_initvals.h ath9k: ar5008_initvals: Move ar5416Bank{0,1,2,3,7} to where they are used 2020-08-27 13:17:40 +03:00
ar5008_phy.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9001_initvals.h ath9k: ar9001_initvals: Remove unused array 'ar5416Bank6_9100' 2020-08-27 13:17:35 +03:00
ar9002_calib.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9002_hw.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9002_initvals.h ath9k: ar9002_initvals: Remove unused array 'ar9280PciePhy_clkreq_off_L1_9280' 2020-08-27 13:17:32 +03:00
ar9002_mac.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9002_phy.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9002_phy.h
ar9003_2p2_initvals.h ath9k: ar9003_2p2_initvals: Remove unused const variables 2020-11-07 10:07:48 +02:00
ar9003_aic.c ath9k: use true,false for bool variable 2020-01-26 12:19:02 +02:00
ar9003_aic.h
ar9003_buffalo_initvals.h
ar9003_calib.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9003_eeprom.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9003_eeprom.h wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9003_hw.c wifi: ath9k: fix AR9003 mac hardware hang check register offset calculation 2023-04-28 19:51:31 +03:00
ar9003_mac.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9003_mac.h
ar9003_mci.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9003_mci.h
ar9003_paprd.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9003_phy.c wifi: ath9k: use u32 for txgain indexes 2023-09-20 16:16:12 +03:00
ar9003_phy.h wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9003_rtt.c
ar9003_rtt.h
ar9003_wow.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
ar9330_1p1_initvals.h ath9k: ar9330_1p1_initvals: Remove unused const variable 'ar9331_common_tx_gain_offset1_1' 2020-11-07 10:07:39 +02:00
ar9330_1p2_initvals.h
ar9340_initvals.h ath9k: ar9340_initvals: Remove unused const variable 'ar9340Modes_ub124_tx_gain_table_1p0' 2020-11-07 10:07:42 +02:00
ar9462_2p0_initvals.h
ar9462_2p1_initvals.h
ar9485_initvals.h ath9k: ar9485_initvals: Remove unused const variable 'ar9485_fast_clock_1_1_baseband_postamble' 2020-11-07 10:07:45 +02:00
ar9565_1p0_initvals.h
ar9565_1p1_initvals.h
ar9580_1p0_initvals.h ath9k: Remove set but not used variable 2020-09-29 11:29:20 +03:00
ath9k.h wifi: ath9k: Remove unused declarations 2023-08-22 16:39:23 +03:00
ath9k_pci_owl_loader.c ath9k: owl-loader: fetch pci init values through nvmem 2021-09-16 11:07:41 +03:00
beacon.c wifi: mac80211: return a beacon for a specific link 2022-06-20 12:57:08 +02:00
btcoex.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
btcoex.h
calib.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
calib.h
channel.c wifi: mac80211: extend ieee80211_nullfunc_get() for MLO 2022-09-06 10:14:24 +02:00
common-beacon.c
common-beacon.h
common-debug.c ath9k: remove trailing semicolon in macro definition 2020-12-07 18:13:18 +02:00
common-debug.h
common-init.c
common-init.h
common-spectral.c wifi: ath9k: consistently use kstrtoX_from_user() functions 2023-08-22 16:37:53 +03:00
common-spectral.h
common.c
common.h wifi: ath9k: Remove unused declarations 2023-08-22 16:39:23 +03:00
debug.c wifi: ath9k: fix clang-specific fortify warnings 2023-09-20 16:16:53 +03:00
debug.h ath9k: add option to reset the wifi chip via debugfs 2021-10-05 17:27:31 +03:00
debug_sta.c mac80211: prepare sta handling for MLO support 2022-04-11 16:42:03 +02:00
dfs.c ath9k: replace ternary operator with max() 2022-05-22 15:31:18 +03:00
dfs.h
dfs_debug.c wifi: ath9k: consistently use kstrtoX_from_user() functions 2023-08-22 16:37:53 +03:00
dfs_debug.h
dynack.c ath9k: work around false-positive gcc warning 2020-11-10 20:12:42 +02:00
dynack.h
eeprom.c ath9k: remove redundant status variable 2022-01-17 14:43:02 +02:00
eeprom.h wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
eeprom_4k.c
eeprom_9287.c wifi: ath9k: Remove unnecessary ternary operators 2023-08-22 16:38:40 +03:00
eeprom_def.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
gpio.c
hif_usb.c wifi: ath9k: clean up function ath9k_hif_usb_resume 2023-09-21 11:03:58 +03:00
hif_usb.h wifi: ath9k_htc: fix format-truncation warning 2023-10-23 20:24:40 +03:00
htc.h wifi: ath9k: use proper statements in conditionals 2022-12-20 15:02:37 +02:00
htc_drv_beacon.c wifi: mac80211: return a beacon for a specific link 2022-06-20 12:57:08 +02:00
htc_drv_debug.c wifi: ath9k: fix clang-specific fortify warnings 2023-09-20 16:16:53 +03:00
htc_drv_gpio.c
htc_drv_init.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
htc_drv_main.c wifi: ath: remove unused-but-set parameter 2023-08-23 17:12:09 +03:00
htc_drv_txrx.c wifi: mac80211: rename ieee80211_tx_status() to ieee80211_tx_status_skb() 2023-10-23 12:26:51 +02:00
htc_hst.c wifi: ath9k: don't allow to overwrite ENDPOINT0 attributes 2023-05-25 20:04:32 +03:00
htc_hst.h
hw-ops.h
hw.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
hw.h wifi: ath9k: fix repeated to words in a comment 2022-09-22 10:19:51 +03:00
init.c ath9k: fix an IS_ERR() vs NULL check 2021-10-13 08:48:14 +03:00
Kconfig ath9k: fix build error with LEDS_CLASS=m 2021-01-28 09:29:34 +02:00
link.c
mac.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
mac.h wifi: ath9k: fix fortify warnings 2023-07-25 17:28:03 +03:00
main.c wifi: ath: remove unused-but-set parameter 2023-08-23 17:12:09 +03:00
Makefile wifi: ath9k: Remove -Warray-bounds exception 2022-10-11 07:39:11 +03:00
mci.c wifi: ath9k: Don't mark channelmap stack variable read-only in ath9k_mci_update_wlan_channels() 2023-04-19 17:24:47 +03:00
mci.h
pci.c wifi: ath9k: fix printk specifier 2023-07-25 17:31:37 +03:00
phy.h
recv.c ath9k: Set RX filter based to allow broadcast Action frame RX 2020-05-30 17:17:20 +03:00
reg.h wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
reg_aic.h
reg_mci.h
reg_wow.h
rng.c wifi: ath9k: remove most hidden macro dependencies on ah 2022-12-22 19:13:39 +02:00
tx99.c wifi: ath9k: consistently use kstrtoX_from_user() functions 2023-08-22 16:37:53 +03:00
wmi.c wifi: ath9k: protect WMI command response buffer replacement with a lock 2023-08-22 16:35:17 +03:00
wmi.h ath9k: convert tasklets to use new tasklet_setup() API 2020-08-27 13:16:18 +03:00
wow.c
xmit.c wifi: mac80211: rename ieee80211_tx_status() to ieee80211_tx_status_skb() 2023-10-23 12:26:51 +02:00