]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: iwlwifi: rename struct iwl_mcc_allowed_ap_type_cmd::offset_map
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 11 Jan 2026 17:39:26 +0000 (19:39 +0200)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 21 Jan 2026 12:23:03 +0000 (14:23 +0200)
This was poorly named, probably a copy paste mistake.
The real meaning of this field is a map of the MCCs to describe the AP
type allowed for each country.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260111193638.6ed558b09581.I6560b8cfb36b68cea1afe8f89f87dded99d2caf7@changeid
drivers/net/wireless/intel/iwlwifi/fw/api/nvm-reg.h
drivers/net/wireless/intel/iwlwifi/fw/uefi.c
drivers/net/wireless/intel/iwlwifi/fw/uefi.h

index f6b59e0090362c6ded1f789fded0f9e6893c170f..bd6bf931866f8f9bbe9ce7f57942367450959c19 100644 (file)
@@ -702,11 +702,11 @@ struct iwl_pnvm_init_complete_ntfy {
 
 /**
  * struct iwl_mcc_allowed_ap_type_cmd - struct for MCC_ALLOWED_AP_TYPE_CMD
- * @offset_map: mapping a mcc to UHB AP type support (UATS) allowed
+ * @mcc_to_ap_type_map: mapping an MCC to 6 GHz AP type support (UATS)
  * @reserved: reserved
  */
 struct iwl_mcc_allowed_ap_type_cmd {
-       u8 offset_map[UATS_TABLE_ROW_SIZE][UATS_TABLE_COL_SIZE];
+       u8 mcc_to_ap_type_map[UATS_TABLE_ROW_SIZE][UATS_TABLE_COL_SIZE];
        __le16 reserved;
 } __packed; /* MCC_ALLOWED_AP_TYPE_CMD_API_S_VER_1 */
 
index b7532494d4e031a8031391036762a80d62f29244..a7ba86e06c0930401cbd5d9a8cf6b301e94c1a0b 100644 (file)
@@ -402,8 +402,9 @@ static int iwl_uefi_uats_parse(struct uefi_cnv_wlan_uats_data *uats_data,
        if (uats_data->revision != 1)
                return -EINVAL;
 
-       memcpy(fwrt->uats_table.offset_map, uats_data->offset_map,
-              sizeof(fwrt->uats_table.offset_map));
+       memcpy(fwrt->uats_table.mcc_to_ap_type_map,
+              uats_data->mcc_to_ap_type_map,
+              sizeof(fwrt->uats_table.mcc_to_ap_type_map));
 
        fwrt->uats_valid = true;
 
index 5a4c557e47c7febcce7896fe3d702ac068102ad2..349ac1505ad74767b79224155969cd9979d565c2 100644 (file)
@@ -60,7 +60,7 @@ struct uefi_cnv_wlan_sgom_data {
 
 struct uefi_cnv_wlan_uats_data {
        u8 revision;
-       u8 offset_map[IWL_UATS_MAP_SIZE - 1];
+       u8 mcc_to_ap_type_map[IWL_UATS_MAP_SIZE - 1];
 } __packed;
 
 struct uefi_cnv_common_step_data {