From patchwork Mon Apr 20 13:29:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Bouganim, Raz" X-Patchwork-Id: 11498957 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 16FEA14B4 for ; Mon, 20 Apr 2020 13:30:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA510214AF for ; Mon, 20 Apr 2020 13:30:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="tG49U34D" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728103AbgDTNag (ORCPT ); Mon, 20 Apr 2020 09:30:36 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:38714 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726389AbgDTNaf (ORCPT ); Mon, 20 Apr 2020 09:30:35 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 03KDUW48042761; Mon, 20 Apr 2020 08:30:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1587389432; bh=87wiUSfArn2rE9kQ7PMRrstvJVNl1i+cKBfPizt7ZGQ=; h=From:To:CC:Subject:Date; b=tG49U34DhVDzcDS9PLkCKWkcgiuwqJC1ASYgqhWI6g038da+kAzBX8BDClOBTRFMJ gtiwpWdiBOjf53GfQRMO5AtUHKW5Gh6teDI0eVVR9blgVbJ13HqmBohDh3OyJTGV7l SHlRosPPK1Ny9fgKqM4Kv1HWIdwx3H88TMtxZXYU= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 03KDUWJG032560; Mon, 20 Apr 2020 08:30:32 -0500 Received: from ild153790.dhcp.ti.com (137.167.21.153) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Mon, 20 Apr 2020 08:30:31 -0500 From: RazB To: CC: , , RazB Subject: [PATCH] wlcore: Adding suppoprt for IGTK key in wlcore driver Date: Mon, 20 Apr 2020 16:29:50 +0300 Message-ID: <1587389390-29407-1-git-send-email-r-Bouganim@ti.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [137.167.21.153] X-ClientProxiedBy: DLEE115.ent.ti.com (157.170.170.26) To DLEE105.ent.ti.com (157.170.170.35) X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org [PATCH] wlcore: Adding suppoprt for IGTK key in wlcore driver This patch adding support for new cipher suite - AES-CMAC in wlcore driver. This patch is required for support PMF/WPA3 connection to install IGTK key. Signed-off-by: RazB --- drivers/net/wireless/ti/wlcore/cmd.h | 1 + drivers/net/wireless/ti/wlcore/main.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/drivers/net/wireless/ti/wlcore/cmd.h b/drivers/net/wireless/ti/wlcore/cmd.h index f2609d5..1d14bd1 100644 --- a/drivers/net/wireless/ti/wlcore/cmd.h +++ b/drivers/net/wireless/ti/wlcore/cmd.h @@ -458,6 +458,7 @@ enum wl1271_cmd_key_type { KEY_TKIP = 2, KEY_AES = 3, KEY_GEM = 4, + KEY_IGTK = 5, }; struct wl1271_cmd_set_keys { diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index f140f7d..1a75959 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -3547,6 +3547,9 @@ int wlcore_set_key(struct wl1271 *wl, enum set_key_cmd cmd, case WL1271_CIPHER_SUITE_GEM: key_type = KEY_GEM; break; + case WLAN_CIPHER_SUITE_AES_CMAC: + key_type = KEY_IGTK; + break; default: wl1271_error("Unknown key algo 0x%x", key_conf->cipher); @@ -6214,6 +6217,7 @@ static int wl1271_init_ieee80211(struct wl1271 *wl) WLAN_CIPHER_SUITE_TKIP, WLAN_CIPHER_SUITE_CCMP, WL1271_CIPHER_SUITE_GEM, + WLAN_CIPHER_SUITE_AES_CMAC, }; /* The tx descriptor buffer */