Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2318968pxb; Mon, 20 Sep 2021 18:41:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEuzCLKg89qNoiTFrRRx0SiqwyAn183EZLZt1n1MZqR6frM7PxgGbZgjw3ghQsRepWZoMR X-Received: by 2002:a6b:5a0c:: with SMTP id o12mr1851963iob.140.1632188497164; Mon, 20 Sep 2021 18:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632188497; cv=none; d=google.com; s=arc-20160816; b=mfHVDlmD1KGsUqn4alRCmlaTewAXUYwR9dF6qMm4Q9hVgcpEmrh+ue8SWGeHLTg/J3 268n7cr6s3Zs51xgOi3Vleg4KXEDpAZJuB+SgD64PH9YAfEJxeAE3FSpm3FNs/e6Nyoq C/gBDB9p7Fd1S7KmWwCwp+IpfE0xBkWLSB6MpfeAOv3DCgvyi841qWrT4yvTx2dBI5Xd dvz58+CDy110NpJCRnka5aJdifnCMPeXOtVtw7i8jAVMNcUawfOxYY241heD/c4/jU+H Gb9FvsDofSDJkTfWPC890HB4hyE1KT1MmhXJj71a5BO2E1Q3CFd7egPU29hKiQBEDW7K aM6A== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=VAQpBg9Xti5wu6n47k0PJ2NTJY976+Bv2v6Ie4krW40=; b=WmhMkfeQs0oYxEMXbZyyXfpZUuLxjIgk7UKHnQc98BIOI4YER3XqC4GIoO3dLTxv+G ZWjjrQFvf1GujItKcFYyJXEpXwW4LgAny+dtqjr6EBOqaLQhig882zaaVdses8/AAntm 9oKJ4om2YIlHKOJcdnk+skd+dsVXS8TVF38CujzbF+ycptBtmciUbenUWjzH07SDCVF1 bDmlD3i3VBjZ+u9so+yick9ZJVe/N2mY9VC05AzKUuIQK9TWuS4p0XN3zt7L8Br9hd1Q UgVCrH+M8rP5DhCcOeOLWqiR1Ijl1QvfPLJQhrMgtufEWE/VY3B4MKB5LX8cmc1xKdPH Vx6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WxhUKcon; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n14si13881831ili.128.2021.09.20.18.41.25; Mon, 20 Sep 2021 18:41:37 -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=@linuxfoundation.org header.s=korg header.b=WxhUKcon; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239735AbhITQrD (ORCPT + 99 others); Mon, 20 Sep 2021 12:47:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:34992 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237692AbhITQq5 (ORCPT ); Mon, 20 Sep 2021 12:46:57 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 19A94611AE; Mon, 20 Sep 2021 16:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632156330; bh=SXdcB+wnMpMouMRbowSBCr0qL7+JfhLwmHDUwFaS01w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WxhUKconbOX+ChbTHmLbT7N8Frwhs2fdsy8nD6+wZbpO/Hx7mFWk6Jou797F5qKLY gCzKXwSdYeVjxEDiScJ10KIILLFBf4P6HUbTr9A13Wa50MzokjkmVKPXY28+yqakxz bTvgp1454WHErkYZr1LpEWWdjxytIQkJ7C1gEUIs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jouni Malinen , Kalle Valo Subject: [PATCH 4.4 010/133] ath: Export ath_hw_keysetmac() Date: Mon, 20 Sep 2021 18:41:28 +0200 Message-Id: <20210920163912.938524021@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210920163912.603434365@linuxfoundation.org> References: <20210920163912.603434365@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 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(-) --- 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 *co 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); --- 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 * } 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_ 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,