]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: iwlwifi: remember if the UATS table was read successfully
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Wed, 12 Feb 2025 05:43:29 +0000 (07:43 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Feb 2025 14:48:54 +0000 (15:48 +0100)
This will allow to read the table once, and not any time the command is
sent. The actual use of this will be in a later patch.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250212073923.61801b78a2cb.I710a766888f370a75b47116fec29d41c106b13ed@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/runtime.h
drivers/net/wireless/intel/iwlwifi/fw/uefi.c

index 048877fa7c71a499172f365dc1207a6b5664c0c4..a9e6bba2419e53de2de97db80f02d69e60b99a29 100644 (file)
@@ -104,6 +104,7 @@ struct iwl_txf_iter_data {
  *     the driver by calling &iwl_fw_set_current_image()
  * @dump: debug dump data
  * @uats_table: AP type table
+ * @uats_valid: is AP type table valid
  * @uefi_tables_lock_status: The status of the WIFI GUID UEFI variables lock:
  *     0: Unlocked, 1 and 2: Locked.
  *     Only read the UEFI variables if locked.
@@ -181,6 +182,7 @@ struct iwl_fw_runtime {
        struct iwl_sar_offset_mapping_cmd sgom_table;
        bool sgom_enabled;
        struct iwl_mcc_allowed_ap_type_cmd uats_table;
+       bool uats_valid;
        u8 uefi_tables_lock_status;
 };
 
index 434eed4130b901b2cd01a63950009fd1694de3eb..78bd0eb7aa92970c2d02bb244cb4fc2d17e43351 100644 (file)
@@ -402,6 +402,9 @@ static int iwl_uefi_uats_parse(struct uefi_cnv_wlan_uats_data *uats_data,
 
        memcpy(fwrt->uats_table.offset_map, uats_data->offset_map,
               sizeof(fwrt->uats_table.offset_map));
+
+       fwrt->uats_valid = true;
+
        return 0;
 }