Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3166350ybl; Mon, 19 Aug 2019 13:24:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyJPuJr4AuEwn5NAACgdS+zi9HusCZkjTSA4EjffQyGtqXEyan5CwTw13mOL9p567OxhzZE X-Received: by 2002:a63:c006:: with SMTP id h6mr21395393pgg.290.1566246243724; Mon, 19 Aug 2019 13:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566246243; cv=none; d=google.com; s=arc-20160816; b=T2BHpYurBKIeeWnqVul5lxSSY1wfgrrwp2yr5ZwFBdlmVxmADoY0yxACq8gT3u+EqY t3Smp9JD8sBY9IJO32R0wr79foeNBtIJVq0Rsvb4B5ZcxTG8cswEvbj3GrChHijj8jzS T4pvOKT/PwmH2bwkSL0noNIOyI4k34N9TRZIuYjnpXgCsXquzoJw8PCxXE8zw8Lm0DFo 4JPT/sQm9aDv+0oGXEua5RYVINel6OgGmsTwCyC8es/bOKQToasII4ghNUXZfnQ4p0Ne +IkU+Q4O+azdaEtyhuMDO0/Ix+SYebCnNfHBtHf60/SVz0OgUHeMstSFFjnotEfxmaSS Hr/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=YelbeZ0zk5v9wi9xNPecsL5Hbfud6MJ4XOVBwjQHlhE=; b=QTi/VtzZcs17qWuYOvRi6v2bVaZ5g+R+54YZitu3QuuREmJvEaYCwKrLQYcax8WXV1 OVO6FKc8+h6zIW8uodXxEMIKAtjiV6T97moEo6W/aqh6dzsQaDzf4iw2f1WZLrjL6o0k ut5TX1roKtjJFgWR+n0Qy5MatTM7Suc+vE8Ygln4p1RQtjXVSy+0KqMXCN6GTzOp2TNA dUQ2/tUffOUxRlUQTFafpxg9U8Gn0ytKFk6iOrt2mInH8pCcd7NyYFJ+prIpGS0Vp7LF Ur/0QFOvRnjXHLexWFH/OyClVsq/LHQteHzWFPX0xq9Iczb6fy193bqqgKucvKQzv/CG xkiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 67si11329245pfv.74.2019.08.19.13.23.46; Mon, 19 Aug 2019 13:24:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728387AbfHSUXe (ORCPT + 99 others); Mon, 19 Aug 2019 16:23:34 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:47590 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728055AbfHSUXd (ORCPT ); Mon, 19 Aug 2019 16:23:33 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hzoBa-00044T-W5; Mon, 19 Aug 2019 22:23:27 +0200 Message-ID: Subject: Re: [PATCH 4/4] iwlwifi: Enable Extended Key ID for mvm and dvm From: Johannes Berg To: Alexander Wetzel , Luca Coelho Cc: linux-wireless@vger.kernel.org Date: Mon, 19 Aug 2019 22:23:24 +0200 In-Reply-To: References: <20190629195015.19680-1-alexander@wetzel-home.de> <20190629195015.19680-4-alexander@wetzel-home.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 2019-08-19 at 17:52 +0200, Alexander Wetzel wrote: > We may also get away by adding only means to pass the keyid of the MPDU > (zero or one) to the HW. That could be done quite simple, I think: > > We could add two new flags, e.g. IWL_TX_FLAGS_ENCRYPT_ID_0 and > IWL_TX_FLAGS_ENCRYPT_ID_1 to avoid the need to change the structures > iwl_tx_cmd_gen2 and iwl_tx_cmd_gen3. > When the firmware would check and use the key referenced by the STA + > flag-id prior to the "last installed" key that should be sufficient. > By still using the last installed key without any of the new flags set > we also would remain backward compatible. > > If you have any experimental firmware to test I'm happy to do so:-) > Till then I'm back using older iwlwifi cards. I'm not convinced that we can change the TX API at all, I suspect we have to go detect it as we saw in the other patch. If we do actually have the ability to change the TX API it might be simpler overall, but anyway, I'd have to go look at how this is all implemented before I comment further. Doesn't seem like an intractable problem, the only question is if we get to spend time on it :) johannes