aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/zd1211rw/zd_chip.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_chip.c b/drivers/net/wireless/zd1211rw/zd_chip.c
index b2af3c549bb3..87a95bcfee57 100644
--- a/drivers/net/wireless/zd1211rw/zd_chip.c
+++ b/drivers/net/wireless/zd1211rw/zd_chip.c
@@ -973,6 +973,7 @@ static void dump_fw_registers(struct zd_chip *chip)
973 973
974static int print_fw_version(struct zd_chip *chip) 974static int print_fw_version(struct zd_chip *chip)
975{ 975{
976 struct wiphy *wiphy = zd_chip_to_mac(chip)->hw->wiphy;
976 int r; 977 int r;
977 u16 version; 978 u16 version;
978 979
@@ -982,6 +983,10 @@ static int print_fw_version(struct zd_chip *chip)
982 return r; 983 return r;
983 984
984 dev_info(zd_chip_dev(chip),"firmware version %04hx\n", version); 985 dev_info(zd_chip_dev(chip),"firmware version %04hx\n", version);
986
987 snprintf(wiphy->fw_version, sizeof(wiphy->fw_version),
988 "%04hx", version);
989
985 return 0; 990 return 0;
986} 991}
987 992