Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2767621pxu; Mon, 14 Dec 2020 10:23:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWXcvU197CJuM1gXU/0z9yJzx10ruKns749mT+D29iMcXa0/TwDTeVgRNU4VYN+/yeyhsq X-Received: by 2002:a17:906:5609:: with SMTP id f9mr10896171ejq.535.1607970209661; Mon, 14 Dec 2020 10:23:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607970209; cv=none; d=google.com; s=arc-20160816; b=KbSIBzjfeYxBYLJV+jMoI7wF8y+Hvik6UsGIhibGw7Zz4o2Xx4wg1yiYSmx7odReGc RJuR0i+ZMas1dP3fwMkZriTxkS77UKDU2eiQa0o7bhQAWWuP+8Hqa8rEKBtCpfNdqQoq CD3njGvHAAqe8PaevuSmdmtLS25DCTwt0IWrEUYPUtndo6WYfQ2aUlpMPMyEmDnHwSZO RW5LrJaDCABvVguD8NKHcr4aRETzsmwwrUoavSVKajMvZLr2xRFA1f/n6mdt5vfX1Yr8 YQarQRXC7y/YGRIg02xRFXHkH3JPCJPMktCj1OclkB+GBjgrVw1uG89DMTVrAys6reAO 4Y2A== 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 :dmarc-filter:sender:dkim-signature; bh=DXLfqPvuhj2DiSvXJSOSQ80E+MCQkLUCD7jGR33tBnU=; b=l8E2lnMoKaxcnsc/0lYKVlkMK4Cf0JiTgwOKn/Ob1SuO19ZZs/4u1N6U0qqNdW3oCm 5LoPFmKOC95jvmqOB/f5XGR2sIbig/tvaGUOpZsdZTI9QT+cYbMVvoMcjSF6/kr1uyYf nd/5g5fnuKw9lhC0hJcpfX5588JPkvwnVrv6VsToKgIp/PM+Sa6+quzS9ieLWhuevqLc YErGEQhlQleU+JWc1Rs1WbRpMyDF5ZWhHvNhB5CWycGgQzfixIgiNMLrx5eXpTEzGjoF Jdgnao8AL1o/fr1EklxM36P0S0MbE/9BUuVOeNqxPBxo4EL2v+N83uyl5rAREDLpZKZr CySA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=Bngs0HCg; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z3si3000471edp.327.2020.12.14.10.23.06; Mon, 14 Dec 2020 10:23:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=@mg.codeaurora.org header.s=smtp header.b=Bngs0HCg; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440374AbgLNR1N (ORCPT + 99 others); Mon, 14 Dec 2020 12:27:13 -0500 Received: from so254-31.mailgun.net ([198.61.254.31]:20222 "EHLO so254-31.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440353AbgLNR0K (ORCPT ); Mon, 14 Dec 2020 12:26:10 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1607966746; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=DXLfqPvuhj2DiSvXJSOSQ80E+MCQkLUCD7jGR33tBnU=; b=Bngs0HCgnU7Iua2Y+2V6C4DS4OXkHKDVQNqO/uASc8mf0CDD2by++r7w7JfHKjN/iI94Tg1A 5SCIcsKRUd8ITbf39tgbxoSMVEKt4uukA2l/LA2uAWs/oZe0tU4OHJv9TOxHKPptjGl6AFgd RzOg0zy2mG5UsucA0U+qk3TxJ90= X-Mailgun-Sending-Ip: 198.61.254.31 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-east-1.postgun.com with SMTP id 5fd79ffd9499561cc1521faa (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 14 Dec 2020 17:25:17 GMT Sender: jouni=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 6C468C433CA; Mon, 14 Dec 2020 17:25:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from jouni.codeaurora.org (85-76-35-200-nat.elisa-mobile.fi [85.76.35.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jouni) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8057CC43461; Mon, 14 Dec 2020 17:25:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8057CC43461 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=jouni@codeaurora.org From: Jouni Malinen To: ath9k-devel@qca.qualcomm.com, kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Jouni Malinen Subject: [PATCH 3/5] ath: Export ath_hw_keysetmac() Date: Mon, 14 Dec 2020 19:21:16 +0200 Message-Id: <20201214172118.18100-4-jouni@codeaurora.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201214172118.18100-1-jouni@codeaurora.org> References: <20201214172118.18100-1-jouni@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org ath9k is going to use this for safer management of key cache entries. Signed-off-by: Jouni Malinen --- 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.20.1