aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn.c
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2009-10-30 17:36:04 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-11-02 15:39:43 -0500
commit5ebeb5a676c864acf59caa166b3cc0a13b7cff93 (patch)
tree062b1eb905cad31fbd5eaae30c2b16bf2b2f84fe /drivers/net/wireless/iwlwifi/iwl-agn.c
parent9aa4aee30f4d155fc91abbaecfef9b3bb759699e (diff)
iwlwifi: provide firmware version
By setting the firmware version in wiphy it is possible to obtain this information via ethtool. Some examples, # ethtool -i wlan1 driver: iwlagn version: 2.6.32-rc5-wl-56840-g26d8540 firmware-version: 228.57.2.23 bus-info: 0000:03:00.0 # ethtool -i wlan0 driver: iwl3945 version: 2.6.32-rc5-wl-56840-g26d8540 firmware-version: 15.28.2.8 bus-info: 0000:02:00.0 Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c
index fa1672e99e4b..05d1070e22d0 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -1377,6 +1377,14 @@ static int iwl_read_ucode(struct iwl_priv *priv)
1377 IWL_UCODE_API(priv->ucode_ver), 1377 IWL_UCODE_API(priv->ucode_ver),
1378 IWL_UCODE_SERIAL(priv->ucode_ver)); 1378 IWL_UCODE_SERIAL(priv->ucode_ver));
1379 1379
1380 snprintf(priv->hw->wiphy->fw_version,
1381 sizeof(priv->hw->wiphy->fw_version),
1382 "%u.%u.%u.%u",
1383 IWL_UCODE_MAJOR(priv->ucode_ver),
1384 IWL_UCODE_MINOR(priv->ucode_ver),
1385 IWL_UCODE_API(priv->ucode_ver),
1386 IWL_UCODE_SERIAL(priv->ucode_ver));
1387
1380 if (build) 1388 if (build)
1381 IWL_DEBUG_INFO(priv, "Build %u\n", build); 1389 IWL_DEBUG_INFO(priv, "Build %u\n", build);
1382 1390