iwlwifi: set hw_version in wiphy
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Sat, 10 Dec 2011 19:33:52 +0000 (11:33 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 19 Dec 2011 21:33:46 +0000 (13:33 -0800)
Set the hw_version in wiphy structure

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-mac80211.c

index 8dc50dd0b36f67165ffbdf40cbbaa949ef16adae..f980e574e1f90dc38b2c9bc426107b9bb1fd400a 100644 (file)
@@ -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);