summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwmc3200wifi/fw.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2009-10-16 07:18:59 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 21:48:27 +0100
commit5dc53163c24ad288cfa2369b14a073992e069908 (patch)
tree91af11beac51db9e396bdb8f77a18468cf9fda82 /drivers/net/wireless/iwmc3200wifi/fw.c
parentiwmc3200wifi: Support unexpected reboot barker (diff)
downloadlinux-5dc53163c24ad288cfa2369b14a073992e069908.tar.xz
linux-5dc53163c24ad288cfa2369b14a073992e069908.zip
iwmc3200wifi: Set wiphy firmware version
Our wiphy firmware version is a combination of the UMAC and LMAC ones. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwmc3200wifi/fw.c')
-rw-r--r--drivers/net/wireless/iwmc3200wifi/fw.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwmc3200wifi/fw.c b/drivers/net/wireless/iwmc3200wifi/fw.c
index f02d571b0a13..49067092d336 100644
--- a/drivers/net/wireless/iwmc3200wifi/fw.c
+++ b/drivers/net/wireless/iwmc3200wifi/fw.c
@@ -217,6 +217,13 @@ static int iwm_load_img(struct iwm_priv *iwm, const char *img_name)
IWM_BUILD_YEAR(build_date), IWM_BUILD_MONTH(build_date),
IWM_BUILD_DAY(build_date));
+ if (!strcmp(img_name, iwm->bus_ops->umac_name))
+ sprintf(iwm->umac_version, "%02X.%02X",
+ ver->major, ver->minor);
+
+ if (!strcmp(img_name, iwm->bus_ops->lmac_name))
+ sprintf(iwm->lmac_version, "%02X.%02X",
+ ver->major, ver->minor);
err_release_fw:
release_firmware(fw);