Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2440789rwd; Wed, 14 Jun 2023 02:55:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5mIsssWDp8qvcCP9PySIXkRlU0F9ZHQVU/+rIA3m5vSj1I2LmIfhK0TYXpjSKOcrxt8qhS X-Received: by 2002:a05:6808:1281:b0:39a:ba14:3140 with SMTP id a1-20020a056808128100b0039aba143140mr12587567oiw.25.1686736530831; Wed, 14 Jun 2023 02:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686736530; cv=none; d=google.com; s=arc-20160816; b=vHxkb8Nl/0PKgoWzXdeFFGDQ27p9b26d3xpm146MwenJrc5GDUuJeGS/3spEjR932g Cu9WECEkVlN8uiLD+Vu0rpteaWp5ELZfkBNAGgMRKfNZ6dLWv3jll/oDAfra3j2DOYDe FyrPJJyRz3ahqWtUH4kXGV4XO2HgyyQjnZXN6FgzwRqK6qbwYBQanyNbHA9t8pEORRxi 0bylHL8Z1fS2rZU+RALmhjPGBnZA0c23RWxxUGvCAs1DQkc2JH33y6IM/yHvV1RxYfEi MpRe0I9jW+MIMTkUDeqZzS57lhkJb66Oodc2aVdF/IDYVCZrtCM6Gy7nQ9saqQcnXFKE ROFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=R3JC+ZFGGQ0bCHAnKTvzIiU9zDdhlEtxA7dUqSo/yM4=; b=h8Ha9pB4YTFfyvLYPOVXrOt4tBFvrAbci5SJNgChGVDPCm3tX55w/+srmYtiJBUOlH LiPmXKjBX03PsY/WhnaZawjikNODxhnguIFYcO/SgteZvfMtkILeS2KuWDgkHPabXxJX OGS4AEoxaBII5M2NKDjBrbc5wLcmPmrx1s1HcpkenF6Xqehvk5OtLbCRjyDuRVJXgIVG Yoq5VIvfEUdSRx8MijjOmQgWj01ax1aggkgvUWgzEJGiWHKbn8Cfg7UX2UIUP5qPXnHc wfRnYIHNIWt3B6jjIPrc72L12HlDXALZ4Bj4gfGs5DtMtdOgwaUrLJwHkAa0rPspqsAQ rimg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RmOIB+xe; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lr4-20020a17090b4b8400b0025066f45e40si7474517pjb.22.2023.06.14.02.55.22; Wed, 14 Jun 2023 02:55:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=RmOIB+xe; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243730AbjFNJpt (ORCPT + 61 others); Wed, 14 Jun 2023 05:45:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244310AbjFNJot (ORCPT ); Wed, 14 Jun 2023 05:44:49 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7240E2712 for ; Wed, 14 Jun 2023 02:43:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686735833; x=1718271833; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hL+OGXLwo2Va+5yYsooSBGEKMXV3AfpcFsayzF+ssj4=; b=RmOIB+xeFefBvi6i5A4RxHwkmlOnuShwxM+vysDDptkMVwTV72LTEeaI o6TRhyYKQ5regrOH++wKn77VWN7OHkTHJqy9DAuIIrZbEAOkZZdZWDici 1OwgiBXIjuhmcToAade6Stuy2Ainb8STS518ggUShVF/JYk15jzJhYRO/ aUwWscjBArspWx6yukhooDL92HUf7sO3osCJhAOb1dncpnYY0PT6XWVuU vdB6yQ+BpkCLcZRVvb+cNVaUFv5yDX6ZDtatJXXFUlRWMSdvjzX4K66Xv zrsZsia8dAY1agcfjBVsGLzr9P40Iz4qNqh+inWZu76NiDOIGjFr388YU A==; X-IronPort-AV: E=McAfee;i="6600,9927,10740"; a="361049869" X-IronPort-AV: E=Sophos;i="6.00,242,1681196400"; d="scan'208";a="361049869" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 02:42:21 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10740"; a="711989879" X-IronPort-AV: E=Sophos;i="6.00,242,1681196400"; d="scan'208";a="711989879" Received: from basharil-mobl.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.214.203.45]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jun 2023 02:42:20 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Johannes Berg , Gregory Greenman Subject: [PATCH 12/20] wifi: iwlwifi: use array as array argument Date: Wed, 14 Jun 2023 12:41:29 +0300 Message-Id: <20230614123446.6fb4a9743b1b.I801007d207f6539a9e0996366ec593e2038b1f90@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230614094137.379897-1-gregory.greenman@intel.com> References: <20230614094137.379897-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Johannes Berg When calling iwl_mvm_set_fw_qos_params() we explicitly pass a pointer to the first array element, but the function will treat it as an array. Simplify and clarify the code and pass the array instead. Signed-off-by: Johannes Berg Signed-off-by: Gregory Greenman --- drivers/net/wireless/intel/iwlwifi/mvm/link.c | 2 +- drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/link.c b/drivers/net/wireless/intel/iwlwifi/mvm/link.c index dc31f8de7d1d..af9ace787ec5 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/link.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/link.c @@ -183,7 +183,7 @@ int iwl_mvm_link_changed(struct iwl_mvm *mvm, struct ieee80211_vif *vif, &cmd.protection_flags, ht_flag, LINK_PROT_FLG_TGG_PROTECT); - iwl_mvm_set_fw_qos_params(mvm, vif, link_conf, &cmd.ac[0], + iwl_mvm_set_fw_qos_params(mvm, vif, link_conf, cmd.ac, &cmd.qos_flags); diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c index 61c1ec46a2fb..a2583d045525 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c @@ -563,7 +563,7 @@ static void iwl_mvm_mac_ctxt_cmd_common(struct iwl_mvm *mvm, cmd->filter_flags = 0; - iwl_mvm_set_fw_qos_params(mvm, vif, &vif->bss_conf, &cmd->ac[0], + iwl_mvm_set_fw_qos_params(mvm, vif, &vif->bss_conf, cmd->ac, &cmd->qos_flags); /* The fw does not distinguish between ht and fat */ -- 2.38.1