From patchwork Mon Mar 15 12:09:37 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: 400412 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3356687jai; Mon, 15 Mar 2021 05:09:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjmLFIG2gGeSkybR20QMc/03kHHBIQNZrI+xN/SE7dRoqF2iIoLqul9+v6Muk2v1lQMFNj X-Received: by 2002:adf:e791:: with SMTP id n17mr26877197wrm.322.1615810155402; Mon, 15 Mar 2021 05:09:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615810155; cv=none; d=google.com; s=arc-20160816; b=AGNzMa2EKjFVck9/w163OK1RzQlOoaCp4ziSAl9dZ0PGLquytJnrz+3YBmb4iqf3w5 /2IpSrZX7//z2b3YGD2S9/f81ZbTh15EXe83P2QNDbncPNjyvT+Kwmp3Yyb3jf1w5IDV f4LKXo03sDTQnur1VVy4JYqswqHhXzWybBE16BDK4wlj4xTAjNiIFu0HhP2mzy12tP3v 0DsPLEUw7YDYk9hZU2SsKqb3OhPf/COHo+8nkHQhsuQg4v3BjVcQd5IvoqfY+QkupIgD DyoN7vLuJxkHJiqLXE7bDdTzsAK1bHYAHyGfSMUSsfF2/YXKG0uFmOHT0PhkFdCUwr7L p7og== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=mV90VGp68UpB1XdgClwAqFevTATKxZfnnJBOM1WpO7w=; b=t9LDDOXYOL/qXqJINtDwTgZnpmuqiXqDz4wDlEr7qie8uwhCaWK5zYo6ShWX7SuzKO WS8QD2PwLNM6+OezKVI0G+RT+5PU1+KJyVxzQDRGMBdB7/eZbHMVlFM1GwG/sCYdp+bY 7vGFonZdpdnJIv9GSN9nuT+BXYnKkJflSCbDK3ZR2rTpSd5dcUuSVpNfkvbGpWqqhWRt RXXOs9iLtVhbF7KWJXl8xmT4Wpe5iYTAtY+xFnn145MTB8UB4zKvgz92fovcgQOkZyvG Ja8howtcGuRiCxaOoz10CK+qcs7HGQ7ht9esVRlcASFAo5my+u4lswrZG+OZZHsk72c3 0GxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HsdkJyjK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si9901547wmk.85.2021.03.15.05.09.15; Mon, 15 Mar 2021 05:09:15 -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; dkim=pass header.i=@linaro.org header.s=google header.b=HsdkJyjK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231176AbhCOMIp (ORCPT + 2 others); Mon, 15 Mar 2021 08:08:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbhCOMIX (ORCPT ); Mon, 15 Mar 2021 08:08:23 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B14E3C061574 for ; Mon, 15 Mar 2021 05:08:22 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id d15so8557734wrv.5 for ; Mon, 15 Mar 2021 05:08:22 -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=HsdkJyjKapsuHmADj0UbtPuLlN6DGjVY9sKHdYeHUqZLT6jVgdyZ0IZ9uIGuzxUiak z/6kAHWFvJ/TDWTfVIze1TCH9xDZabVLBbUakKvAZrDtA+aMFR+yLhlWf56jx1r408cc H4dAOnY6jpRLr49AKKAKzs2MmL09N/4rfO8M+ZNob9MsUqqDkA1VAp5TXIj8fFEPJuEy CEIYoZ+HrWmJjAsCg600CH7e793rAMSuS1OU0NBEOG3vrd1iM4fo9zvcOT8pyhiTXvjP TDE+BxxaeCvs/+Flb0+BhrYehXVKLVFmMnfi5fSStZiQjhr2iEoIa9MSS+AQ/YBZ3nbM HQWA== 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=PnYfXrHkYiU0fI5Si8rC5NcsgWK9BrUu6e02hs4fZjKor78U/GG3m6uER35UueMsAQ hpI+wO7W34uocfVhc91w7AFEtBSiOJ8yulvBEHBoSGmwy4+y5pdiQC7DdTY+VZu7bbyl 2hCCVeWt9jKUePr4wB2WgSks3TcF+PigRqprr0KyB8bse4ZGVbLEUBOjA3DaGO9537gX CaHljbf+IrwGRFBEpMdmNZx8wxylllc1OZb7PoWgXL2s6owmFd/1zXGvpfSRWGR7HAlc ug3LmbmaK/Y5B4+jtypBh+7dC/snaSSzoIHZ1/ldt+pAUY9esYvDU0RDdp7XFMqZTmNL hjWg== X-Gm-Message-State: AOAM530PJcfKT8XFyKIEVzcmfuWZZrBtPeQ09d1T8qEBBrBeF/H/Krrx LDysnNdZ/LWJ/4lN7oT/3dZ3vA== X-Received: by 2002:adf:f78f:: with SMTP id q15mr26502346wrp.383.1615810101502; Mon, 15 Mar 2021 05:08:21 -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 c18sm29239891wmk.0.2021.03.15.05.08.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 05:08:21 -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 v2 12/12] wcn36xx: Enable WOWLAN flags Date: Mon, 15 Mar 2021 12:09:37 +0000 Message-Id: <20210315120937.2512341-13-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210315120937.2512341-1-bryan.odonoghue@linaro.org> References: <20210315120937.2512341-1-bryan.odonoghue@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.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 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