Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37269e80 authored by John W. Linville's avatar John W. Linville
Browse files

p54: 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 bcf3c7c5
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -123,10 +123,14 @@ int p54_parse_firmware(struct ieee80211_hw *dev, const struct firmware *fw)
		bootrec = (struct bootrec *)&bootrec->data[len];
		bootrec = (struct bootrec *)&bootrec->data[len];
	}
	}


	if (fw_version)
	if (fw_version) {
		wiphy_info(priv->hw->wiphy,
		wiphy_info(priv->hw->wiphy,
			   "fw rev %s - softmac protocol %x.%x\n",
			   "fw rev %s - softmac protocol %x.%x\n",
			   fw_version, priv->fw_var >> 8, priv->fw_var & 0xff);
			   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)
	if (priv->fw_var < 0x500)
		wiphy_info(priv->hw->wiphy,
		wiphy_info(priv->hw->wiphy,