wifi: iwlwifi: Add new TAS disable reason for invalid table source
authorPagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Sat, 8 Mar 2025 21:19:16 +0000 (23:19 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Mar 2025 09:54:01 +0000 (10:54 +0100)
The new reason is added to the iwl_tas_statically_disabled_reason enum
and the corresponding message is updated in the
iwl_dbgfs_tas_get_status_read().

Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250308231427.5e1272ef3508.I24f668ae716bee20cba15fdc73c3363693bbaf73@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/debug.h
drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c

index e1b6795c1f646a3810f0edbb256f219c044ed82f..0cf1e5124fba7f981b422ef601e12ea37749b37c 100644 (file)
@@ -518,12 +518,15 @@ enum iwl_tas_dyna_status {
  * @TAS_DISABLED_DUE_TO_BIOS: TAS is disabled because TAS is disabled in BIOS
  * @TAS_DISABLED_DUE_TO_SAR_6DBM: TAS is disabled because SAR limit is less than 6 Dbm
  * @TAS_DISABLED_REASON_INVALID: TAS disable reason is invalid
+ * @TAS_DISABLED_DUE_TO_TABLE_SOURCE_INVALID: TAS is disabled due to
+ *     table source invalid
  * @TAS_DISABLED_REASON_MAX: TAS disable reason max value
  */
 enum iwl_tas_statically_disabled_reason {
        TAS_DISABLED_DUE_TO_BIOS,
        TAS_DISABLED_DUE_TO_SAR_6DBM,
        TAS_DISABLED_REASON_INVALID,
+       TAS_DISABLED_DUE_TO_TABLE_SOURCE_INVALID,
 
        TAS_DISABLED_REASON_MAX,
 }; /*_TAS_STATICALLY_DISABLED_REASON_E*/
index b453ad0000c829b853f86c89d42ca00ed24b287e..6ffc04a23c6c1092f2605fd4d9425dbc5fabb786 100644 (file)
@@ -552,6 +552,8 @@ static ssize_t iwl_dbgfs_tas_get_status_read(struct file *file,
                        "Due To SAR Limit Less Than 6 dBm",
                [TAS_DISABLED_REASON_INVALID] =
                        "N/A",
+               [TAS_DISABLED_DUE_TO_TABLE_SOURCE_INVALID] =
+                       "Due to table source invalid",
        };
        const char * const tas_current_status[TAS_DYNA_STATUS_MAX] = {
                [TAS_DYNA_INACTIVE] = "INACTIVE",