Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1219380lqh; Mon, 6 May 2024 00:05:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUjLSiZCbqiYjWMXroqzJ3I1nrimhfPzgbAG41EPCKs4styE0GZ8XSIkWE1aX7lRNRJVv7T39rzWCVbrVcxrwEHm6v1+S8s7Da7lvvEcg== X-Google-Smtp-Source: AGHT+IF0ttnAZIFu7cHHeYkA+u0pXOJR9Tnt02IOZU0liMnO4tUUweZq3tPKDlyTyi1Az8AJF7Ti X-Received: by 2002:a17:903:58b:b0:1ea:1d2:90bc with SMTP id jv11-20020a170903058b00b001ea01d290bcmr7116134plb.24.1714979135376; Mon, 06 May 2024 00:05:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714979135; cv=pass; d=google.com; s=arc-20160816; b=PjlVlJpO3oP3fHiozLTdvg6elHBB+7jLWuWHzpv5jxeDTI0HcsSWZOGOT+qop/bQAt MyUHVP22gyPUgXJ3mnYw2tJ3KqutorNNAVLITZSsW44lTCMr9mYTzRufF7HP00p81Dgk pwd+hdTCGwqoIlySZywRyjdfrGFPA3jz0KCF2+GlcwyWDdqowCaO76MUkAgabR9TjxqR zvgDTp25PiK42+I8l2a0XO6tvQvtcYSFEPKEny8EJHXU65OIchkdn86+5d1we3D3g4y3 J1tw1Ch8JsDcElHwlS5XEJt7J4pwfETfPNhUaLX10iEm+F7f4Dfhl35WUvzL6Ig8fgTg BuOg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:organization:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=1lEBUngrbTNkyYHfrXzSfnQph4Jk0Qvcfddqc5K86dc=; fh=TquNsOiV+zNY1csTpltVB6A9QFW5SbuNs6JlqcKCQkw=; b=tN59b3gchy49F150YyVUYb2/UmdupNkwIQWCM6wvG1cC6v+jg85Q6thg662Stbzfgy VDRbkqpeTtSBP8iEIXgul2PM90m+LPFoIfEKG4KvFom58iLHKJPDdIv+EHQ0jPjR0bxT K1rzAFaFgyi450euG9FdM1kTc2gtTA5jTb/EyUZ8ZNlHS3gJ0Dzy6NZX1rux6C3r3l7V GYnEwrykG5Q0J3PQKg5lo3C8YSt0cmdZSvQ3NjDCG3QDGLlyHan3xKIcvFXG3S6sX+/V EzzPuvO6wjbQc4V/5f+GShKIafXFL9xHqTT/H6k2G3FyrqlOr3afpDRnJiqO8+NkNIaS qJKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="H3c/9DqT"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-7208-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7208-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id im23-20020a170902bb1700b001eb5472b214si7579837plb.619.2024.05.06.00.05.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 00:05:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7208-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="H3c/9DqT"; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-wireless+bounces-7208-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7208-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id F21E628150D for ; Mon, 6 May 2024 07:05:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0901140369; Mon, 6 May 2024 07:05:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="H3c/9DqT" X-Original-To: linux-wireless@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 33AE184DFA for ; Mon, 6 May 2024 07:05:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714979104; cv=none; b=PG0+vDEe1MxCjFt1K6fqLLxBIAL8mroJ7lO0SHP3C+MsjJ9wvWQ3bktZC7heF1RxkU4/rIsgwxFLFEXaeHjhV49N7oezQUe3tNhjtM94aiN0I0ZMnM+TJn2b13fihhXpvtW9ZdCoT2YthV5lpSoqZm/xzfr5RuuKp91Abq2jHbU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714979104; c=relaxed/simple; bh=jRVwnHxKIwZHdZWVps26pPuLu5rVFlQanT1/nnl7FaA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YtOWOtHS8xcl62x7ciTUxGr1kGdlAp0p1OzzhqLIChaxuEpASBdk5HeF8ia1yuHP5K2z1wPh7dLcoNgvbYJK9BDLWMx2XZKppwPwcJzm7HcHbS1TdObY4yTxotgHCP342+AuycOdN/bdeCj4h15rAo5TH3725zyeCWZQTsqkUdM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=H3c/9DqT; arc=none smtp.client-ip=198.175.65.21 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714979104; x=1746515104; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jRVwnHxKIwZHdZWVps26pPuLu5rVFlQanT1/nnl7FaA=; b=H3c/9DqTkyyNjVeKKMY1QB3iqEKbvypm/J+KUGCNCfRMXDFEPfWmaPJI Ip9JtzBJUGnBjlApRXN0qyHPDAM5HhJre0cUsXzKZcNJZdxO675EzQrLn fx/SXJSPfW3HCeI3qt1iJqyocjV91+XzKLegK5JNS4qfuddYSFQS1LxGv HaPilMr/zI259Ac6TZaG5MLI7HxouIq38peJIU4f46frwMsl9pj1KBdeg 4Ygu7y+nR9VgpiVFo/ei2aWJrH5lOXlkI2C3PE2yVmXIxcWHQxWaHUCEq TlJB/aPEqeKUCox6Y87HnXwk1yPuKmjDI/azk5Nm2e2IOi85aFAZaBI+s w==; X-CSE-ConnectionGUID: EhWtTNMRQE+F35PX1SSuMQ== X-CSE-MsgGUID: wsua3YY+QhqLwlHEqeI86w== X-IronPort-AV: E=McAfee;i="6600,9927,11064"; a="10638243" X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="10638243" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 00:04:49 -0700 X-CSE-ConnectionGUID: vMktc04KQ0aFJY38zgpbfQ== X-CSE-MsgGUID: gFXadkw6SDeDZPwf/hUNgg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="59264958" Received: from weis0040.iil.intel.com ([10.12.217.108]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 00:04:47 -0700 From: Miri Korenblit To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg Subject: [PATCH 11/15] wifi: iwlwifi: mvm: align UATS naming with firmware Date: Mon, 6 May 2024 10:04:15 +0300 Message-Id: <20240506095953.b0dfe17d5f44.I8f5f5a831c7b934ce3140f838315827c018103bb@changeid> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240506070419.1821330-1-miriam.rachel.korenblit@intel.com> References: <20240506070419.1821330-1-miriam.rachel.korenblit@intel.com> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: Intel Israel (74) Limited Content-Transfer-Encoding: 8bit From: Johannes Berg The firmware has different names for this, which is confusing as even the convention of having the firmware name in a comment after the struct definition wasn't met here. Fix the naming, but keep UATS in some of it since that's the BIOS name. Signed-off-by: Johannes Berg Signed-off-by: Miri Korenblit --- drivers/net/wireless/intel/iwlwifi/fw/api/nvm-reg.h | 10 +++++----- drivers/net/wireless/intel/iwlwifi/fw/runtime.h | 2 +- drivers/net/wireless/intel/iwlwifi/mvm/fw.c | 9 +++++---- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/fw/api/nvm-reg.h b/drivers/net/wireless/intel/iwlwifi/fw/api/nvm-reg.h index c9c0329f5778..a08497a04733 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/api/nvm-reg.h +++ b/drivers/net/wireless/intel/iwlwifi/fw/api/nvm-reg.h @@ -46,9 +46,9 @@ enum iwl_regulatory_and_nvm_subcmd_ids { SAR_OFFSET_MAPPING_TABLE_CMD = 0x4, /** - * @UATS_TABLE_CMD: &struct iwl_uats_table_cmd + * @MCC_ALLOWED_AP_TYPE_CMD: &struct iwl_mcc_allowed_ap_type_cmd */ - UATS_TABLE_CMD = 0x5, + MCC_ALLOWED_AP_TYPE_CMD = 0x5, /** * @PNVM_INIT_COMPLETE_NTFY: &struct iwl_pnvm_init_complete_ntfy @@ -701,13 +701,13 @@ struct iwl_pnvm_init_complete_ntfy { #define UATS_TABLE_COL_SIZE 13 /** - * struct iwl_uats_table_cmd - struct for UATS_TABLE_CMD + * 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 * @reserved: reserved */ -struct iwl_uats_table_cmd { +struct iwl_mcc_allowed_ap_type_cmd { u8 offset_map[UATS_TABLE_ROW_SIZE][UATS_TABLE_COL_SIZE]; __le16 reserved; -} __packed; /* UATS_TABLE_CMD_S_VER_1 */ +} __packed; /* MCC_ALLOWED_AP_TYPE_CMD_API_S_VER_1 */ #endif /* __iwl_fw_api_nvm_reg_h__ */ diff --git a/drivers/net/wireless/intel/iwlwifi/fw/runtime.h b/drivers/net/wireless/intel/iwlwifi/fw/runtime.h index 4204e999bbf2..9122f9a1260a 100644 --- a/drivers/net/wireless/intel/iwlwifi/fw/runtime.h +++ b/drivers/net/wireless/intel/iwlwifi/fw/runtime.h @@ -182,7 +182,7 @@ struct iwl_fw_runtime { u8 ppag_ver; struct iwl_sar_offset_mapping_cmd sgom_table; bool sgom_enabled; - struct iwl_uats_table_cmd uats_table; + struct iwl_mcc_allowed_ap_type_cmd uats_table; u8 uefi_tables_lock_status; bool uats_enabled; }; diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c index 74b299139391..e7f5978ef2d7 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw.c @@ -494,7 +494,7 @@ static void iwl_mvm_uats_init(struct iwl_mvm *mvm) int ret; struct iwl_host_cmd cmd = { .id = WIDE_ID(REGULATORY_AND_NVM_GROUP, - UATS_TABLE_CMD), + MCC_ALLOWED_AP_TYPE_CMD), .flags = 0, .data[0] = &mvm->fwrt.uats_table, .len[0] = sizeof(mvm->fwrt.uats_table), @@ -516,7 +516,7 @@ static void iwl_mvm_uats_init(struct iwl_mvm *mvm) IWL_FW_CMD_VER_UNKNOWN); if (cmd_ver != 1) { IWL_DEBUG_RADIO(mvm, - "UATS_TABLE_CMD ver %d not supported\n", + "MCC_ALLOWED_AP_TYPE_CMD ver %d not supported\n", cmd_ver); return; } @@ -529,9 +529,10 @@ static void iwl_mvm_uats_init(struct iwl_mvm *mvm) ret = iwl_mvm_send_cmd(mvm, &cmd); if (ret < 0) - IWL_ERR(mvm, "failed to send UATS_TABLE_CMD (%d)\n", ret); + IWL_ERR(mvm, "failed to send MCC_ALLOWED_AP_TYPE_CMD (%d)\n", + ret); else - IWL_DEBUG_RADIO(mvm, "UATS_TABLE_CMD sent to FW\n"); + IWL_DEBUG_RADIO(mvm, "MCC_ALLOWED_AP_TYPE_CMD sent to FW\n"); } static int iwl_mvm_sgom_init(struct iwl_mvm *mvm) -- 2.34.1