Commit 68e887ef authored by John W. Linville's avatar John W. Linville

zd1211rw: update fw version info in wiphy struct

This makes the information available through ethtool...
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent dd358c9a
...@@ -973,6 +973,7 @@ static void dump_fw_registers(struct zd_chip *chip) ...@@ -973,6 +973,7 @@ static void dump_fw_registers(struct zd_chip *chip)
static int print_fw_version(struct zd_chip *chip) static int print_fw_version(struct zd_chip *chip)
{ {
struct wiphy *wiphy = zd_chip_to_mac(chip)->hw->wiphy;
int r; int r;
u16 version; u16 version;
...@@ -982,6 +983,10 @@ static int print_fw_version(struct zd_chip *chip) ...@@ -982,6 +983,10 @@ static int print_fw_version(struct zd_chip *chip)
return r; return r;
dev_info(zd_chip_dev(chip),"firmware version %04hx\n", version); dev_info(zd_chip_dev(chip),"firmware version %04hx\n", version);
snprintf(wiphy->fw_version, sizeof(wiphy->fw_version),
"%04hx", version);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment