diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-07-29 13:58:48 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-16 14:39:45 -0400 |
commit | 68e887ef21dfd9adcf896ef92a9676bf9036a0aa (patch) | |
tree | e030e63faf8f6fc1118fea1b1721dc4bda7c2bb1 /drivers/net/wireless/zd1211rw/zd_chip.c | |
parent | dd358c9a45fc27f90e77992cf77117ab6e2fb467 (diff) |
zd1211rw: update fw version info in wiphy struct
This makes the information available through ethtool...
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_chip.c')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_chip.c | 5 |
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 | ||
974 | static int print_fw_version(struct zd_chip *chip) | 974 | static 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 | ||