Skip to content

Commit

Permalink
zd1211rw: update fw version info in wiphy struct
Browse files Browse the repository at this point in the history
This makes the information available through ethtool...

Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
John W. Linville committed Aug 16, 2010
1 parent dd358c9 commit 68e887e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/net/wireless/zd1211rw/zd_chip.c
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,7 @@ static void dump_fw_registers(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;
u16 version;

Expand All @@ -982,6 +983,10 @@ static int print_fw_version(struct zd_chip *chip)
return r;

dev_info(zd_chip_dev(chip),"firmware version %04hx\n", version);

snprintf(wiphy->fw_version, sizeof(wiphy->fw_version),
"%04hx", version);

return 0;
}

Expand Down

0 comments on commit 68e887e

Please sign in to comment.