iwlwifi: dbg: run init_cfg function once per driver load
authorMordechay Goodstein <mordechay.goodstein@intel.com>
Wed, 30 Sep 2020 13:31:21 +0000 (16:31 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 1 Oct 2020 19:01:00 +0000 (22:01 +0300)
Every time we call init_cfg driver appends the enabled triggers
to the active triggers while this should be done only once per
driver load.

Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com>
Fixes: 14124b25780d ("iwlwifi: dbg_ini: implement monitor allocation flow")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20200930161256.79bd622e604a.Ie0f79d2ea90ca5cdf363f56194ead81b0a2c6202@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c

index 9b64a12..ab4b194 100644 (file)
@@ -1018,6 +1018,9 @@ static void iwl_dbg_tlv_init_cfg(struct iwl_fw_runtime *fwrt)
        enum iwl_fw_ini_buffer_location *ini_dest = &fwrt->trans->dbg.ini_dest;
        int ret, i;
 
+       if (*ini_dest != IWL_FW_INI_LOCATION_INVALID)
+               return;
+
        IWL_DEBUG_FW(fwrt,
                     "WRT: Generating active triggers list, domain 0x%x\n",
                     fwrt->trans->dbg.domains_bitmap);