Commit 55fbf0d2 authored by Shahar S Matityahu's avatar Shahar S Matityahu Committed by Luca Coelho

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: default avatarShahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: 7a14c23d ("iwlwifi: dbg: dump data according to the new ini TLVs")
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent b2aea95c
...@@ -1216,13 +1216,13 @@ static void iwl_fw_ini_dump_trigger(struct iwl_fw_runtime *fwrt, ...@@ -1216,13 +1216,13 @@ static void iwl_fw_ini_dump_trigger(struct iwl_fw_runtime *fwrt,
iwl_dump_prph_ini(fwrt->trans, data, reg); iwl_dump_prph_ini(fwrt->trans, data, reg);
break; break;
case IWL_FW_INI_REGION_DRAM_BUFFER: 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; break;
case IWL_FW_INI_REGION_PAGING: case IWL_FW_INI_REGION_PAGING:
if (iwl_fw_dbg_is_paging_enabled(fwrt)) if (iwl_fw_dbg_is_paging_enabled(fwrt))
iwl_dump_paging(fwrt, data); iwl_dump_paging(fwrt, data);
else else
*dump_mask |= IWL_FW_ERROR_DUMP_PAGING; *dump_mask |= BIT(IWL_FW_ERROR_DUMP_PAGING);
break; break;
case IWL_FW_INI_REGION_TXF: case IWL_FW_INI_REGION_TXF:
iwl_fw_dump_txf(fwrt, data); iwl_fw_dump_txf(fwrt, data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment