iwlwifi: pcie: fix HW_REV saving for 8000 series
authorLiad Kaufman <liad.kaufman@intel.com>
Wed, 17 Sep 2014 10:28:50 +0000 (13:28 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 21 Sep 2014 10:25:47 +0000 (13:25 +0300)
Align the trans->hw_rev variable format with previous series
format.

Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c

index ae99240dcde49ef7780b16c79e7022993b753b90..1393bac0025c59de0b24b1453eb7932bebda1b22 100644 (file)
@@ -2190,7 +2190,7 @@ struct iwl_trans *iwl_trans_pcie_alloc(struct pci_dev *pdev,
         */
        if (trans->cfg->device_family == IWL_DEVICE_FAMILY_8000)
                trans->hw_rev = (trans->hw_rev & 0xfff0) |
-                               (CSR_HW_REV_STEP(trans->hw_rev << 2));
+                               (CSR_HW_REV_STEP(trans->hw_rev << 2) << 2);
 
        trans->hw_id = (pdev->device << 16) + pdev->subsystem_device;
        snprintf(trans->hw_id_str, sizeof(trans->hw_id_str),