Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2918604pxb; Tue, 24 Aug 2021 10:34:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwteQ+SPCpwt78Cm3J1tffMGvt2Wyqarn5Hp6J7TgYhDT93yYkvNJ3XFcMAMtpmU4DV2W5h X-Received: by 2002:a05:6e02:214e:: with SMTP id d14mr27634845ilv.142.1629826489029; Tue, 24 Aug 2021 10:34:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629826489; cv=none; d=google.com; s=arc-20160816; b=OVr030sDHYtIJ5FguftUmMmTaromgCkSIDt83/GkeDy6pGZqnXsLcKBT8BHm5MRaW8 Fwlf0oTDSWub/FtJGdTcztIkW5RXbD2MEsllRnLasmqGAZRzYqXypubpAj4L1pqE/QkM VzT0EvpXkfqtCjdpDctYLnE9MWU0dZ131oTUo9RnZiayMrLQWHr8A64QASU+ULByMoAw bYcy30MVpSHlwNuWrz3MHi3ewSUFwMCopxjUxhUGFLYF2KA+kQ9JNXXE+zX7HvgCXBUN CEckCc0I4Gmrlv1nP5OndVleF26x6/o9VfdsQwKQR2k3VkGeVA1kz3UGAurmXTiLah/H fgbw== 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=gHSDKgjDu+qOWljNhDBObpMswzqylQrOpY13yVh+WpA=; b=CRbKTLdbGwW1N/eSWC+NWydveJqp+hkHSpZkbPvCrXzBHFtFcocWvCYMf9iZd+15rG G3zYrKFIrixYFfPxV60CYgcRcwRIPBuRIjmucyCkSXBoYC4gRgqk2EcbfQpa+2GVVjbh yjTV3ShNlIMNNLgv65b1H+OnlgeMVmeJvm1QI4vtnroqO4wcv+VpiOmB1dzxs0+vXal3 2OF9MkXM78LDJh9Gv3T7KsT1LTHtBag/pwlRpyeTBKRN253ZDFUjL3juOO+3pFaOFvDc skYG1rDSr41ko3ACFICx8HbUEvzz1cYv2QJJIVSGe5hU56g7yz43nhrKpwzOUagAnfFM GMEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IOmmxl8k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q74si12821214iod.9.2021.08.24.10.34.34; Tue, 24 Aug 2021 10:34:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IOmmxl8k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240281AbhHXRc1 (ORCPT + 99 others); Tue, 24 Aug 2021 13:32:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:36774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241692AbhHXR3o (ORCPT ); Tue, 24 Aug 2021 13:29:44 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B829061B44; Tue, 24 Aug 2021 17:05:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824733; bh=/oP4OrN/sR2q+/3ZtQW4BOw5KvcCIOZGz+DfgzJ39R8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IOmmxl8kVS2gEwZVii2ox7/NeY5LJIqLGTMdX30wl4KyeQmr1zfhjjvj8GRakBRTu i0bLR0bFrA++olyN5gMu69cWIXSbvlhT3c/MeICUQLH4x496xuQ64oookSyFjvuwm+ +bju2SlVGWoqctF/z7dXivCXPhBqn/8wecGNhiBUczcov1Ymj4aiuPaq0wRPo8luLa poMRNtHW1cKoRL84X8RyGpCMPWRqoO6IwkH48sikRZqwG6qMzYmCzEbCMKUj34lQ+P B9Nkp6Nc9+7MSonPikv5qzJZamYGaHaTaQ20pFkwbZvuXayO0VeLImkXzVfzN93Ihu U4FBuOEeSlk8A== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jouni Malinen , Kalle Valo , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Greg Kroah-Hartman Subject: [PATCH 4.14 36/64] ath: Export ath_hw_keysetmac() Date: Tue, 24 Aug 2021 13:04:29 -0400 Message-Id: <20210824170457.710623-37-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824170457.710623-1-sashal@kernel.org> References: <20210824170457.710623-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v4.x/stable-review/patch-4.14.245-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-4.14.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 4.14.245-rc1 X-KernelTest-Deadline: 2021-08-26T17:04+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jouni Malinen commit d2d3e36498dd8e0c83ea99861fac5cf9e8671226 upstream. ath9k is going to use this for safer management of key cache entries. Signed-off-by: Jouni Malinen Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20201214172118.18100-4-jouni@codeaurora.org Cc: Pali Rohár Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath.h | 1 + drivers/net/wireless/ath/key.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h index f3f2784f6ebd..3dffa0c3cae5 100644 --- a/drivers/net/wireless/ath/ath.h +++ b/drivers/net/wireless/ath/ath.h @@ -205,6 +205,7 @@ int ath_key_config(struct ath_common *common, struct ieee80211_sta *sta, struct ieee80211_key_conf *key); bool ath_hw_keyreset(struct ath_common *common, u16 entry); +bool ath_hw_keysetmac(struct ath_common *common, u16 entry, const u8 *mac); void ath_hw_cycle_counters_update(struct ath_common *common); int32_t ath_hw_get_listen_time(struct ath_common *common); diff --git a/drivers/net/wireless/ath/key.c b/drivers/net/wireless/ath/key.c index 59618bb41f6c..cb266cf3c77c 100644 --- a/drivers/net/wireless/ath/key.c +++ b/drivers/net/wireless/ath/key.c @@ -84,8 +84,7 @@ bool ath_hw_keyreset(struct ath_common *common, u16 entry) } EXPORT_SYMBOL(ath_hw_keyreset); -static bool ath_hw_keysetmac(struct ath_common *common, - u16 entry, const u8 *mac) +bool ath_hw_keysetmac(struct ath_common *common, u16 entry, const u8 *mac) { u32 macHi, macLo; u32 unicast_flag = AR_KEYTABLE_VALID; @@ -125,6 +124,7 @@ static bool ath_hw_keysetmac(struct ath_common *common, return true; } +EXPORT_SYMBOL(ath_hw_keysetmac); static bool ath_hw_set_keycache_entry(struct ath_common *common, u16 entry, const struct ath_keyval *k, -- 2.30.2