mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 12:21:37 +00:00
iwlwifi: dbg_ini: set dump mask BIT(n) instead of n
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: 7a14c23dcd
("iwlwifi: dbg: dump data according to the new ini TLVs")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
This commit is contained in:
parent
b2aea95c18
commit
55fbf0d21c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user