Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2904255pxb; Tue, 24 Aug 2021 10:15:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzi02xfWB1l6wuO3gVaeOLrflTLV6eaql9Tu6fq71c14rs5zfdcAUY7f63hIxuWdHxqM/wZ X-Received: by 2002:a05:6602:200f:: with SMTP id y15mr31034748iod.64.1629825343774; Tue, 24 Aug 2021 10:15:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629825343; cv=none; d=google.com; s=arc-20160816; b=PknlxBsVxG1LFchFXo9QAV7sjIMCXra7wc2JdlmHNg97KH0LPHJvwOiqVWmF2M+NDL MBAmT7lLkYgKkjCh5BNxNk+mP71SV/JP073WzHBd0SImo7Zrb9Oz/SKvPUdspC6Q4myS taXK1acKPlOYNNXji3VBkLcnrWXURPc/8V9TCHC+G+K0Kqzt1kjZcPpajhYwJiwwBf9r Dbb61pnGfEUl71a/nmwckvVaz1iJARnbdhz8UZRjYlMOFFl6uGXn1bRzuKG1i61du1zP lmwH7Chl4De8uEyKrwvhS+eSHzkcHCjGha5ia9NUeTM0jGFc1wnqKHLSu15KQVLxMo3Y 7RTw== 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=eUerlHjxIN2xruTv48RotZERMAr0613jPGFiajrGZic=; b=D1/E/RthXAJiVnyV8Z9jevgIYdLIDkSIMCJwtMq3xsTSxH1RNGlE8xtKM/ITC8NL5v sYyv4ut8My3D8CkCbmSalm225p+HEND8SCRSOY0W3uX0sIE9WbhgCVaEqFOPanhkcb+/ YOVMpGwOWroEXFDwou1nxCgIDwcMkNKN0+K57LZ/Jm4A7S2rPUMxBJ7ikJxJ7PDo4qg9 XlJdnqtvgocX/LNmdXzc+S8QJhXmkkYOMTi0fe7e5+Nu/Xq/cupY1y2APnos7FiciUvY Xm9tcauiGjTA9k1YvqV9MvSTRQKWwTqcpnxSqb4rMjUmoE4LyzXdxiklDv8x6cDSRWi+ 9mRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=llVGXWiq; 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 y20si198463jao.34.2021.08.24.10.15.29; Tue, 24 Aug 2021 10:15:43 -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=llVGXWiq; 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 S238647AbhHXRPa (ORCPT + 99 others); Tue, 24 Aug 2021 13:15:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:52016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239550AbhHXRMB (ORCPT ); Tue, 24 Aug 2021 13:12:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 04415613D3; Tue, 24 Aug 2021 17:01:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824473; bh=9JlFOErq7JLjtELfPuF4gJ1Nvsj3R1q+4TsDMP1trYc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=llVGXWiqyorLsJzsss0fEmKslOHlU3GE+90pxxpYB/DC2lwzu25gGmYZ0fnQKTb9S DsDD+sSPHwzKFUBHlpQ2D9UKxu3/yVNmJfRawbTsIqlu2mtWix2XiFkv9Tee53VWnx 5xwkg/WuBFf0StGSUT9U2vUAUBEz+oCgZW/KX5zWR94fbi2Ox2iX/WPXYbvCUN88VM JDOhXjpitqExzH8NQXr7o53NYswz1+uGTRfq4aF+kyrIPAHZWo++tsVr+//8R44+Pr +px2nRE83wkE57tlarYfyhmWdLSsE8u5BBVvqDrMibe5Lwa44YjA2ngaPixd3Sj2pK R+8+yGFYQxgBw== 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 5.4 05/61] ath: Export ath_hw_keysetmac() Date: Tue, 24 Aug 2021 13:00:10 -0400 Message-Id: <20210824170106.710221-6-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824170106.710221-1-sashal@kernel.org> References: <20210824170106.710221-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.4.143-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.4.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.4.143-rc1 X-KernelTest-Deadline: 2021-08-26T17:01+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 7a364eca46d6..9d18105c449f 100644 --- a/drivers/net/wireless/ath/ath.h +++ b/drivers/net/wireless/ath/ath.h @@ -203,6 +203,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