projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b28e82
)
wl1271: update hw/fw version info in wiphy struct
author
John W. Linville
<
[email protected]
>
Wed, 28 Jul 2010 21:09:41 +0000
(17:09 -0400)
committer
John W. Linville
<
[email protected]
>
Thu, 29 Jul 2010 16:46:51 +0000
(12:46 -0400)
This makes the information available through ethtool...
Signed-off-by: John W. Linville <
[email protected]
>
Acked-by: Juuso Oikarinen <
[email protected]
>
drivers/net/wireless/wl12xx/wl1271_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/wl12xx/wl1271_main.c
b/drivers/net/wireless/wl12xx/wl1271_main.c
index 374abf0f5cc77dc18855089146b65846efb20fd9..9d68f0012f05af67317ff6cfc9668b833e1c9d00 100644
(file)
--- a/
drivers/net/wireless/wl12xx/wl1271_main.c
+++ b/
drivers/net/wireless/wl12xx/wl1271_main.c
@@
-839,6
+839,7
@@
static int wl1271_op_add_interface(struct ieee80211_hw *hw,
struct ieee80211_vif *vif)
{
struct wl1271 *wl = hw->priv;
+ struct wiphy *wiphy = hw->wiphy;
int retries = WL1271_BOOT_RETRIES;
int ret = 0;
@@
-892,6
+893,12
@@
static int wl1271_op_add_interface(struct ieee80211_hw *hw,
wl->state = WL1271_STATE_ON;
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;
irq_disable: