]> Pileus Git - ~andy/linux/blobdiff - drivers/net/wireless/iwlwifi/iwl-5000.c
iwlagn: add statistic notification structure for WiFi/BT devices
[~andy/linux] / drivers / net / wireless / iwlwifi / iwl-5000.c
index 7d89d99ce19c56b34ca528940c0c9d154c1bbc39..a7077cd7afeeadbad6295012fded19ef4196445d 100644 (file)
@@ -265,7 +265,7 @@ static void iwl5150_temperature(struct iwl_priv *priv)
        u32 vt = 0;
        s32 offset =  iwl_temp_calib_to_offset(priv);
 
-       vt = le32_to_cpu(priv->_agn.statistics.general.temperature);
+       vt = le32_to_cpu(priv->_agn.statistics.general.common.temperature);
        vt = vt / IWL_5150_VOLTAGE_TO_TEMPERATURE_COEFF + offset;
        /* now vt hold the temperature in Kelvin */
        priv->temperature = KELVIN_TO_CELSIUS(vt);