diff options
author | Jiri Pirko <jiri@resnulli.us> | 2013-01-05 21:12:51 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-07 00:06:31 -0500 |
commit | 81135548e697a24ab41944c4354953a71b0b9efe (patch) | |
tree | e909fe6680a88c12251e505e2bf0cfd09cbff976 /drivers/net/wireless/ath | |
parent | 7826d43f2db45c9305a6e0ba165650e1a203f517 (diff) |
net: use ETHTOOL_FWVERS_LEN instead of ETHTOOL_BUSINFO_LEN for fw_ver strings
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/htc_drv_init.c | 2 |
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 | ||