diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-07-29 13:44:44 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-16 14:39:45 -0400 |
commit | 37269e805267ba68fe8c5d693ccf0ec5727155fa (patch) | |
tree | ba0ed13b88930839dc63329d233008014f061464 /drivers/net/wireless/p54/fwio.c | |
parent | bcf3c7c5264f06cd2542e6bece94c65bf0ac482b (diff) |
p54: 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/p54/fwio.c')
-rw-r--r-- | drivers/net/wireless/p54/fwio.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/fwio.c b/drivers/net/wireless/p54/fwio.c index 47006bca4852..6f027ab4c775 100644 --- a/drivers/net/wireless/p54/fwio.c +++ b/drivers/net/wireless/p54/fwio.c | |||
@@ -123,10 +123,14 @@ int p54_parse_firmware(struct ieee80211_hw *dev, const struct firmware *fw) | |||
123 | bootrec = (struct bootrec *)&bootrec->data[len]; | 123 | bootrec = (struct bootrec *)&bootrec->data[len]; |
124 | } | 124 | } |
125 | 125 | ||
126 | if (fw_version) | 126 | if (fw_version) { |
127 | wiphy_info(priv->hw->wiphy, | 127 | wiphy_info(priv->hw->wiphy, |
128 | "fw rev %s - softmac protocol %x.%x\n", | 128 | "fw rev %s - softmac protocol %x.%x\n", |
129 | fw_version, priv->fw_var >> 8, priv->fw_var & 0xff); | 129 | fw_version, priv->fw_var >> 8, priv->fw_var & 0xff); |
130 | snprintf(dev->wiphy->fw_version, sizeof(dev->wiphy->fw_version), | ||
131 | "%s - %x.%x", fw_version, | ||
132 | priv->fw_var >> 8, priv->fw_var & 0xff); | ||
133 | } | ||
130 | 134 | ||
131 | if (priv->fw_var < 0x500) | 135 | if (priv->fw_var < 0x500) |
132 | wiphy_info(priv->hw->wiphy, | 136 | wiphy_info(priv->hw->wiphy, |