From: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Date: Sat, 10 Dec 2011 19:33:52 +0000 (-0800)
Subject: iwlwifi: set hw_version in wiphy
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0ba958ebf1440411a052bfeedd5b80f7645b3541;p=linux.git

iwlwifi: set hw_version in wiphy

Set the hw_version in wiphy structure

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
---

diff --git a/drivers/net/wireless/iwlwifi/iwl-mac80211.c b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
index 8dc50dd0b36f6..f980e574e1f90 100644
--- a/drivers/net/wireless/iwlwifi/iwl-mac80211.c
+++ b/drivers/net/wireless/iwlwifi/iwl-mac80211.c
@@ -234,6 +234,8 @@ int iwlagn_mac_setup_register(struct iwl_priv *priv,
 		priv->hw->wiphy->bands[IEEE80211_BAND_5GHZ] =
 			&priv->bands[IEEE80211_BAND_5GHZ];
 
+	hw->wiphy->hw_version = bus_get_hw_id(bus(priv));
+
 	iwl_leds_init(priv);
 
 	ret = ieee80211_register_hw(priv->hw);