Skip to content

Commit

Permalink
p54: 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 bcf3c7c commit 37269e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion drivers/net/wireless/p54/fwio.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,14 @@ int p54_parse_firmware(struct ieee80211_hw *dev, const struct firmware *fw)
bootrec = (struct bootrec *)&bootrec->data[len];
}

if (fw_version)
if (fw_version) {
wiphy_info(priv->hw->wiphy,
"fw rev %s - softmac protocol %x.%x\n",
fw_version, priv->fw_var >> 8, priv->fw_var & 0xff);
snprintf(dev->wiphy->fw_version, sizeof(dev->wiphy->fw_version),
"%s - %x.%x", fw_version,
priv->fw_var >> 8, priv->fw_var & 0xff);
}

if (priv->fw_var < 0x500)
wiphy_info(priv->hw->wiphy,
Expand Down

0 comments on commit 37269e8

Please sign in to comment.