iwlwifi: dbg_ini: set dump mask BIT(n) instead of n
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Mon, 26 Nov 2018 08:29:15 +0000 (10:29 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 29 Jan 2019 14:10:33 +0000 (16:10 +0200)
The driver sets dump_mask value instead of BIT(value).
fix it by updating dump_mask correctly.

Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: 7a14c23dcdee ("iwlwifi: dbg: dump data according to the new ini TLVs")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/dbg.c

index 02ad870..22efd94 100644 (file)
@@ -1216,13 +1216,13 @@ static void iwl_fw_ini_dump_trigger(struct iwl_fw_runtime *fwrt,
                        iwl_dump_prph_ini(fwrt->trans, data, reg);
                        break;
                case IWL_FW_INI_REGION_DRAM_BUFFER:
-                       *dump_mask |= IWL_FW_ERROR_DUMP_FW_MONITOR;
+                       *dump_mask |= BIT(IWL_FW_ERROR_DUMP_FW_MONITOR);
                        break;
                case IWL_FW_INI_REGION_PAGING:
                        if (iwl_fw_dbg_is_paging_enabled(fwrt))
                                iwl_dump_paging(fwrt, data);
                        else
-                               *dump_mask |= IWL_FW_ERROR_DUMP_PAGING;
+                               *dump_mask |= BIT(IWL_FW_ERROR_DUMP_PAGING);
                        break;
                case IWL_FW_INI_REGION_TXF:
                        iwl_fw_dump_txf(fwrt, data);