Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1372227pxk; Fri, 18 Sep 2020 10:37:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC0MzHHB8/Mwi9bqQ669zBneCpzNb/2KEji70Ij9ZFMsbljUCfoteB6BNWmy02RM2gLFm/ X-Received: by 2002:a17:907:10db:: with SMTP id rv27mr35869977ejb.223.1600450671074; Fri, 18 Sep 2020 10:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600450671; cv=none; d=google.com; s=arc-20160816; b=q9MeAFWm07UXZTmWqvrJ6Cq1VkU9RFC5HuEN2Di+CBxWCUQSb/3JFQlShv2PdFVm3N 3T+deJO3SNvzfEQ/cgNiHtFFdAbg+y1KWUd35JnKlffNk2XZhN2ev5ptgGMVWGsoVN62 4ESZQHm+TgpLFuZj8X6PG1hjZO4yF6YCZrwDyg/+rlboKzobuQUcT8M0GLlbYTL3h2p9 xJ3cK1SS1FmhvXjLuf1ic/Ogvsi4zcHA9WXBAPmGekvaLV7+30dHi+ZlRMtY1Mffl4CG CJw0aLM9ecC8jmerdx6ag6iwQOvKUB8hD79ChNU64Rq3sh+Y44rMzgs19rpdKZF2CHSx 3Hdg== 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:date:cc:to:from:subject :message-id; bh=iskqRZuG91KsDA4urfdJtWJzosiA5mrKEXGhnNyVOkY=; b=WJtVPo83d20/cjqnzeWiHWklO9aN6KagKnivUq+ucGPsjm1tkogAgKg199sJMGKNyU QYfpe2uxsugef97FcTxvat8vV2G2uzqGcVaARE8M5EsgNK3ub83s2kkFe96qph6qkLP8 s8W/HTKTW3ZBAxiOnIIdL9WsA5LcjJsUJwv/T0cXjbuPf17dZBiuXwZi4js9sXiN7nad MkUSx6Ujszaa8idEcgQlE9q+UiOg+dNpEBmpkq4XSNJL5gHqYMrNgUsh1T18PfoXNzqw Xqa4n4rUfO8r0DiXmBLSV8OusXdpuyNaMJOZFAW823Ag/9/CPxRgfYRyn3Y2SLJTT/DC TE+A== 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 a18si2530546edy.407.2020.09.18.10.37.20; Fri, 18 Sep 2020 10:37:51 -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 S1726273AbgIRReq (ORCPT + 99 others); Fri, 18 Sep 2020 13:34:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbgIRRep (ORCPT ); Fri, 18 Sep 2020 13:34:45 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3831C0613CE for ; Fri, 18 Sep 2020 10:34:45 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1kJKHS-006OZo-MX; Fri, 18 Sep 2020 19:34:42 +0200 Message-ID: Subject: Re: [PATCH] iwlwifi: add NL80211_EXT_FEATURE_CAN_REPLACE_PTK0 support From: Johannes Berg To: Alexander Wetzel , linux-wireless@vger.kernel.org Cc: luciano.coelho@intel.com, emmanuel.grumbach@intel.com, linuxwifi@intel.com Date: Fri, 18 Sep 2020 19:34:41 +0200 In-Reply-To: <20200918171301.6942-1-alexander@wetzel-home.de> (sfid-20200918_192059_393491_AE270348) References: <20200918171301.6942-1-alexander@wetzel-home.de> (sfid-20200918_192059_393491_AE270348) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2020-09-18 at 19:13 +0200, Alexander Wetzel wrote: > > + /* GCMP and 256 bit CCMP keys the key can't be copied into the > + * MPDU struct ieee80211_tx_info. We therefore must flush the > + * queues to ensure there are no MPDUs left which are referring > + * to the outgoing key. > + */ > + if (key->flags & IEEE80211_KEY_FLAG_PAIRWISE && > + (key->cipher == WLAN_CIPHER_SUITE_GCMP || > + key->cipher == WLAN_CIPHER_SUITE_GCMP_256 || > + key->cipher == WLAN_CIPHER_SUITE_CCMP_256)) { > + ieee80211_stop_queues(hw); > + iwl_mvm_mac_flush(hw, vif, 0, true); > + ieee80211_wake_queues(hw); > + } Shouldn't the wake be after installing the new key? Otherwise new frames can race and be there again? johannes