iwlwifi: allow debug init in RF-kill
authorJohannes Berg <johannes.berg@intel.com>
Thu, 19 Aug 2021 15:40:35 +0000 (18:40 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 26 Aug 2021 20:37:07 +0000 (23:37 +0300)
We can send this even if initializing in RF-kill, thus
suppressing a bunch of error messages about it. In fact,
we _want_ to, since we might still want to debug the
firmware even if in RF-kill.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210819183728.bcdb076609e2.I2d177c00772510b5338d8aa45af7558138b08448@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-dbg-tlv.c

index dc4bff6..125479b 100644 (file)
@@ -623,6 +623,7 @@ static int iwl_dbg_tlv_apply_buffer(struct iwl_fw_runtime *fwrt,
                        .id = WIDE_ID(DEBUG_GROUP, BUFFER_ALLOCATION),
                        .data[0] = &data,
                        .len[0] = sizeof(data),
+                       .flags = CMD_SEND_IN_RFKILL,
                };
                int ret, j;