Commit ac01e948 authored by John W. Linville's avatar John W. Linville

wl1271: update hw/fw version info in wiphy struct

This makes the information available through ethtool...
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Acked-by: default avatarJuuso Oikarinen <juuso.oikarinen@nokia.com>
parent 8b28e822
...@@ -839,6 +839,7 @@ static int wl1271_op_add_interface(struct ieee80211_hw *hw, ...@@ -839,6 +839,7 @@ static int wl1271_op_add_interface(struct ieee80211_hw *hw,
struct ieee80211_vif *vif) struct ieee80211_vif *vif)
{ {
struct wl1271 *wl = hw->priv; struct wl1271 *wl = hw->priv;
struct wiphy *wiphy = hw->wiphy;
int retries = WL1271_BOOT_RETRIES; int retries = WL1271_BOOT_RETRIES;
int ret = 0; int ret = 0;
...@@ -892,6 +893,12 @@ static int wl1271_op_add_interface(struct ieee80211_hw *hw, ...@@ -892,6 +893,12 @@ static int wl1271_op_add_interface(struct ieee80211_hw *hw,
wl->state = WL1271_STATE_ON; wl->state = WL1271_STATE_ON;
wl1271_info("firmware booted (%s)", wl->chip.fw_ver); wl1271_info("firmware booted (%s)", wl->chip.fw_ver);
/* update hw/fw version info in wiphy struct */
wiphy->hw_version = wl->chip.id;
strncpy(wiphy->fw_version, wl->chip.fw_ver,
sizeof(wiphy->fw_version));
goto out; goto out;
irq_disable: irq_disable:
......
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