aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath9k/htc_drv_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/htc_drv_init.c b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
index 05d5ba66cac3..b2f85cb5ed30 100644
--- a/drivers/net/wireless/ath/ath9k/htc_drv_init.c
+++ b/drivers/net/wireless/ath/ath9k/htc_drv_init.c
@@ -783,7 +783,7 @@ static int ath9k_init_firmware_version(struct ath9k_htc_priv *priv)
783 priv->fw_version_major = be16_to_cpu(cmd_rsp.major); 783 priv->fw_version_major = be16_to_cpu(cmd_rsp.major);
784 priv->fw_version_minor = be16_to_cpu(cmd_rsp.minor); 784 priv->fw_version_minor = be16_to_cpu(cmd_rsp.minor);
785 785
786 snprintf(hw->wiphy->fw_version, ETHTOOL_BUSINFO_LEN, "%d.%d", 786 snprintf(hw->wiphy->fw_version, sizeof(hw->wiphy->fw_version), "%d.%d",
787 priv->fw_version_major, 787 priv->fw_version_major,
788 priv->fw_version_minor); 788 priv->fw_version_minor);
789 789