Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1059282ybs; Mon, 25 May 2020 06:19:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzW10QgBc38djNQ+RQcIMaVQdiXU0HaZfH0bhruL1/RTpvlwNeIyXcJe8lPP0IypTJ1h87n X-Received: by 2002:aa7:d71a:: with SMTP id t26mr9960282edq.123.1590412754774; Mon, 25 May 2020 06:19:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590412754; cv=none; d=google.com; s=arc-20160816; b=eITRaIKv3K76qqh7BJhffjszz08G/P4hFob8xy3Cfe0hqY+fnrRO5Qqh0SWOPbwht4 BCJDavCO5LtuI3zhDNZSUZHjkXlkDNmYIerxO3RAFWXzPohq3q0VUmHbNvC+CJdXnrrM d+Daku1IXK2NR8v7cN690gXvtaU27M/byXzWkzvrkhqI1af2bV4M9YETUMibX3ejjBuQ aMkkp3Xz3xcUCRmBiC91LEsJpxEIW4XmD62YcTsjyNvuO3JIcowbUWYIoMc9GP/tiGve R4m52RzBMCZa5EI8NEUXz2jRF8jnK3ptTeDDwQgXEVhXcg0xHb1VzwFrfQntmcds8Gbi WXvQ== 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=OKXKXeClpeVWlzqwG3feFMhMj6jJ+eiTQpmbgogjZrA=; b=nEysSv08SlF1mPefOBydJo2croaPGwkhaW7SBozZVmHQ74w4/PUDma7fTbvXttMfG0 UUH3POIqr3Umx+roLGhzOl+yLRIaGOQ0tt189lHOgArQKxd8ShKecfpbWZhjOfzxUhwv ew0Ufqdzv/47hf7Is1jtKtC3PD/F/OCRa1YDqhBeGjSdMWDALae6CFROfv9kB4pyB7j4 0KgFno9lr+vxexpbVxAfEP/xrRPtlGnhMjjrAEHBDC3jVTeNK6z1ROhPvs/b+kP+b0/7 XKyhIQQlL7Dp9baaiUewjHOmBq7KuE30QG2/+hQAmjpb9Hma+eCl+1k4w+zC4DuCp7D4 RjTw== ARC-Authentication-Results: i=1; mx.google.com; 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 dn17si12749297ejc.125.2020.05.25.06.18.50; Mon, 25 May 2020 06:19:14 -0700 (PDT) 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; 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 S2390728AbgEYNOb (ORCPT + 99 others); Mon, 25 May 2020 09:14:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390626AbgEYNOa (ORCPT ); Mon, 25 May 2020 09:14:30 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABFDCC061A0E for ; Mon, 25 May 2020 06:14:30 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1jdCvv-002idp-D0; Mon, 25 May 2020 15:14:23 +0200 Message-ID: <9188b9f91d162146a61729b5b4fcc06530674810.camel@sipsolutions.net> Subject: Re: [RFC PATCH] rt2800lib: unconditionally enable MFP From: Johannes Berg To: Rui Salvaterra , Stanislaw Gruszka Cc: Julian Calaby , Kalle Valo , Larry Finger , linux-wireless@vger.kernel.org Date: Mon, 25 May 2020 15:14:21 +0200 In-Reply-To: (sfid-20200525_151341_366399_6ACF85B8) References: <20200524094730.2684-1-rsalvaterra@gmail.com> <20200524111751.GA914918@wp.pl> <20200524123931.GA915983@wp.pl> <640c254edb9fdaec2fd8987d1f2d345bd1d9276c.camel@sipsolutions.net> <20200525093142.GA926004@wp.pl> <9a8da74898b68fb63f65567068de0fcb2b5a57b0.camel@sipsolutions.net> <20200525105814.GA926693@wp.pl> (sfid-20200525_151341_366399_6ACF85B8) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) 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, 2020-05-25 at 14:13 +0100, Rui Salvaterra wrote: > On Mon, 25 May 2020 at 12:14, Rui Salvaterra wrote: > > Hi, Stanislaw, > > > > On Mon, 25 May 2020 at 11:58, Stanislaw Gruszka wrote: > > > Yeah, and at least without nohwcrypt=y we can still use HW encryption > > > for non-MFP stations. > > > > > > Rui, feel free to repost your patch with additional sta->mfp check. > > > > Sure, will do. :) > > Wait, scratch that. The additional sta->mfp check causes a NPE, sta is > probably null at that point. Not at this point - but the GTK comes with null STA, so you want (sta && sta->mfp) instead. johannes