From patchwork Fri Mar 19 16:15:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bryan O'Donoghue X-Patchwork-Id: 404819 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1511264jai; Fri, 19 Mar 2021 09:14:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIG//YX/CAVdM1DqYG16+XHRLNhWUWKrsgk8oFSL5PXVGA35hKhrkzdf0NSpVomtcai+v8 X-Received: by 2002:a1c:9d96:: with SMTP id g144mr3297903wme.46.1616170452820; Fri, 19 Mar 2021 09:14:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616170452; cv=none; d=google.com; s=arc-20160816; b=ePswK7yA/dN5wQmg+QnFaIUhaVxd1yvklNn6CGf70XNXIDzPfJVFF9c3+Z7D5b6Mqh z6lsQ5zvbDCpsjaCyzgxqVIUzDxUgBcN5PsN4VknVnvCdmwjGWKY+HZ+KHzgKd/ctWuc BQLSwreJXUpiERpNFKkV5b3gmOcr+fLQ2MWRwQl1Sg1AZob71QcHxkqAH5hP/5t6u3JJ KWzKSNqDV36zw2GiqvPHMOBUJtjcJa2lDki/4DhG+6gZsQ37xPhV5MwmYu03tN2NbQbS F+YAKLyF6O0pRf+N0SyXj5eaA/Mvucesg6V97KsBLgOtH5xQJwJ+mcyvkINd1VqHE/jM 3apA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dkim-signature; bh=7g6v3y4EqVt8ZvdJTfK/Xnvz6OTFe7L+f9gyq+Sp+vc=; b=EWxaqerZjJTpVV7ZHfq3Pd2ZbkbYXGqOv/n5Arb/PSL7ZGrgWi0DT0pvsAhn4k3FBJ aU7jxNKYNyfNgFdvIJIWlMDlokk5VlZw0dAuEu9LvSk/vUawRYbOIhk7oRr2S/3zZ7Gr /xcUvK9CztvP1FlGbsGyIilXG2VSYQZA/rq+WS2Uh7ISgxDtJAmcYu3M2+wv8H7VamE6 ATOBQRZkGJ5i/RNaiBibBP3Y0wqkzxPhTU63lzQYJqDKRlQn/iBtDSMfjTvic1nGp23i uFFVoMNt4IfgX0aoHkST8JG1xsjSI3ac4bjwXaRl6sRqc8TP8w2D6cjP4R9zvzY2HaOl XbWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=desiato.20200630 header.b=ordyNJ0L; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FJSdSqNZ; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1:d65d:64ff:fe57:4e05 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from desiato.infradead.org (desiato.infradead.org. [2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by mx.google.com with ESMTPS id k6si5225429wrl.254.2021.03.19.09.14.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 09:14:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1:d65d:64ff:fe57:4e05 as permitted sender) client-ip=2001:8b0:10b:1:d65d:64ff:fe57:4e05; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=desiato.20200630 header.b=ordyNJ0L; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FJSdSqNZ; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2001:8b0:10b:1:d65d:64ff:fe57:4e05 as permitted sender) smtp.mailfrom="wcn36xx-bounces+patch=linaro.org@lists.infradead.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7g6v3y4EqVt8ZvdJTfK/Xnvz6OTFe7L+f9gyq+Sp+vc=; b=ordyNJ0LQZqq7eMC//KdqAdNl iF9QV0PriECy+/RMdkanypS0AzEMYbpGIE6RsIHTRG5hofvQol3vYTGyqXC56n/tVkju61zq3usQq pTAHk9ZIziUfWrMfWyq6/cbXVH8WMr/McK1CxC8FsMHQ9ZCg7xiSiFdNMNGAUFRX01hig78tEpPsU bXHcF0oFbp2Ars9NakCPzZSN56/8kOIb4/heOf85mwESDFPK91f8em3ordZA+wLac1WZPACziv4Gw 5vkJ5D6CuVyZzJOiZkZHM5a2qAJeR70G9674GmGuUZEprJr2eD1zxhyAShWZsd336Fuw7EkIN8mDI KVcAwwa8Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lNHlL-007fuy-LX; Fri, 19 Mar 2021 16:14:11 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lNHlE-007frw-Ag for wcn36xx@lists.infradead.org; Fri, 19 Mar 2021 16:14:06 +0000 Received: by mail-wr1-x42a.google.com with SMTP id t9so9655327wrn.11 for ; Fri, 19 Mar 2021 09:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mV90VGp68UpB1XdgClwAqFevTATKxZfnnJBOM1WpO7w=; b=FJSdSqNZFiH/vI0np1Ctn/xVLQ06o4mNg6aH3Vi5uniaZ/nzoLLNuKdqM9yD/W2EtI 6ARINNL0XzrXZcH6tToNhW5WJMaEwDsNcDVgGGSFl/AG07lRbzalSF4MczRPxsYMFWgz 45Pc6pz7T6kitwbeidHuIqi/SWML0xGXyyzij5kW5FsMO17I/upT+R3CulJSbQsPXc6U 8XOSddWHB1TjZrcj1rz4gXAl/6RZsj1PapanvEGrB6K0u0JsItdMCqAPmUKN543y3T+a Sb73QVjRMX71wKIusaCmGYCrMRssfU2s3Zubsn5FL7OkfX1FpAUJSCQYzK1KJWNuqn/H oWuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mV90VGp68UpB1XdgClwAqFevTATKxZfnnJBOM1WpO7w=; b=KrJDQueNhJRF/RQqXeUkLiZ09JPTQFFFYoCf4Ev4yjXZYZypdLkXMtqehv+uZ7hHK8 KqlJuXiseLxwbQSFC2YFl8ConUqX/Op3PUU6gMD8+bEB8yckajnXkf+N76PRLJHGEA5z crEZp5pbmQkc32byOXg3vlBI1wXdN9yl3RLVEwoSRLfwRLPNFyAEwMZSKIQBdqTiK4yl D3Nauamo/R17ldRneY53eexJLN4DTP2eH8u42jjeTtjFRt5h4/emYpzu2c9tuBYL7CI3 pclc4qrWin2tz9xact9GBwfQ9phctf4XwjEjb7wR6i5epJU4n8vbCUuga3lEBN04hAKW yytA== X-Gm-Message-State: AOAM532ReI6j78w9L1hSibgzuP0TPST7YzH+xR5UxiA3v0TgLtvUuPl6 w7CmVRuxJZSo8fVZFG4NSJvykA== X-Received: by 2002:adf:ef4c:: with SMTP id c12mr5413318wrp.112.1616170443791; Fri, 19 Mar 2021 09:14:03 -0700 (PDT) Received: from sagittarius-a.chello.ie (188-141-3-169.dynamic.upc.ie. [188.141.3.169]) by smtp.gmail.com with ESMTPSA id h8sm8432495wrt.94.2021.03.19.09.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 09:14:03 -0700 (PDT) From: Bryan O'Donoghue To: kvalo@codeaurora.org, wcn36xx@lists.infradead.org, linux-wireless@vger.kernel.org Cc: bryan.odonoghue@linaro.org, shawn.guo@linaro.org, benl@squareup.com, loic.poulain@linaro.org, bjorn.andersson@linaro.org Subject: [PATCH v3 12/12] wcn36xx: Enable WOWLAN flags Date: Fri, 19 Mar 2021 16:15:20 +0000 Message-Id: <20210319161520.3590510-13-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210319161520.3590510-1-bryan.odonoghue@linaro.org> References: <20210319161520.3590510-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210319_161404_475368_FD859DAB X-CRM114-Status: GOOD ( 12.87 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "desiato.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Enable flags for - Magic packet - GTK rekey Previous patches implemented the necessary code to switch these two on. Standalone magic packet absent GTK rekey is pretty useless, so it makes sense to flag both at once. Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:42a listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain X-BeenThere: wcn36xx@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "wcn36xx" Errors-To: wcn36xx-bounces+patch=linaro.org@lists.infradead.org Enable flags for - Magic packet - GTK rekey Previous patches implemented the necessary code to switch these two on. Standalone magic packet absent GTK rekey is pretty useless, so it makes sense to flag both at once. Once done it is possible for wcn36xx firmware to 1. Respond to ipv4 and ipv6 ARP/NS lookup requests 2. Bring the system out of suspend when a magic packet is received. Magic in our case is a simple ipv4 or ipv6 unicast. 3. GTK rekey whilst in suspend Once we wake from suspend the GTK will be updated as necessary Signed-off-by: Bryan O'Donoghue --- drivers/net/wireless/ath/wcn36xx/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.30.1 _______________________________________________ wcn36xx mailing list wcn36xx@lists.infradead.org http://lists.infradead.org/mailman/listinfo/wcn36xx diff --git a/drivers/net/wireless/ath/wcn36xx/main.c b/drivers/net/wireless/ath/wcn36xx/main.c index ddfc60e02389..7838d2056e54 100644 --- a/drivers/net/wireless/ath/wcn36xx/main.c +++ b/drivers/net/wireless/ath/wcn36xx/main.c @@ -173,7 +173,9 @@ static struct ieee80211_supported_band wcn_band_5ghz = { #ifdef CONFIG_PM static const struct wiphy_wowlan_support wowlan_support = { - .flags = WIPHY_WOWLAN_ANY + .flags = WIPHY_WOWLAN_ANY | + WIPHY_WOWLAN_MAGIC_PKT | + WIPHY_WOWLAN_SUPPORTS_GTK_REKEY }; #endif