From patchwork Tue Jun 1 15:10:01 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: 451394 Delivered-To: patch@linaro.org Received: by 2002:a02:c735:0:0:0:0:0 with SMTP id h21csp1870893jao; Tue, 1 Jun 2021 08:08:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd65Dc1SICUK2VMQKfN4zrmpOGLrvzAhv9z/Nwzzz09Y/1sxI9p6k3EMERbTql99dyxTRn X-Received: by 2002:a65:6256:: with SMTP id q22mr28631322pgv.391.1622560123207; Tue, 01 Jun 2021 08:08:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622560123; cv=none; d=google.com; s=arc-20160816; b=qDC0Vnm8qDZ1wRGvmNcltKjGGuIUOE2hyvT4HDkKc9DWTK/nmDGuwNdOvcZ2188ycZ 7fU5k5eVh+eGifQePXcA1/ApWfM46Eh71ZY4Nvb9SnFht2uQmf20jIMYQReMie/jyCRi Ngw3tr/LZ62o4VqvTsNfHFiMsGVtKxp8Vo3l/kkIVPISAuCPj1OtcuK7wQkwCRx3L5DJ IGV+1gml6MZxcqTSNLaK4JoLt5AA9B1yI6hxbHWvdAmVpn/xDsHVLcb+dayRHPI4MMAG ee7soH2ae2LsAE1hr3oAiYMTE8x8tKfA/CkbCTT3V/FkRJdxICSIdNdq75hCKq910CYj k8tA== 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=l6d2mR3ZhAdnAoAbH0n0WXUkWehM4bOPP92/ylPwMjw=; b=V3rtDW7DUdVCd/rRNclqovP3TueeeohNYgAmSh06vLrR5mfR7gpeyciIytuoIxB6pq ys3u4rr6YvoAKxmMXCMCUr6+Dv9BBqeCHyETUorjExcalzQ4fN5SgVFT9jyclX6O+aCj PGoeHGktL75NJfnbkCP6PWD2UOdGlp21I7l9GBKHjxhWedZIhztIOvkLMPHHpOLdB8yl 3VLQIeR7ylCyqUhDry9Z9a6EcI0YMD5OYjfM5L/QVTkF6RSNTJhm2fgZkKAyYCwLai1O efepeSlOjkP7MEzHNvJU0tENKHpIwrUORtDUvJ5ZAR01UgkuoDRTKmR4TL38lXpm285A xOYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=qFGvDduP; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=td7Ky7vI; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 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 bombadil.infradead.org (bombadil.infradead.org. [2607:7c80:54:e::133]) by mx.google.com with ESMTPS id m9si19725579pgv.271.2021.06.01.08.08.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 08:08:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 as permitted sender) client-ip=2607:7c80:54:e::133; Authentication-Results: mx.google.com; dkim=pass header.i=@lists.infradead.org header.s=bombadil.20210309 header.b=qFGvDduP; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=td7Ky7vI; spf=pass (google.com: best guess record for domain of wcn36xx-bounces+patch=linaro.org@lists.infradead.org designates 2607:7c80:54:e::133 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=bombadil.20210309; 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=l6d2mR3ZhAdnAoAbH0n0WXUkWehM4bOPP92/ylPwMjw=; b=qFGvDduPBmgEAt MSunq+35ehbs+Tk3PMnnLhgVu41Ji3wo+f2aVgmpKxrI2NndaQ7J6Kht7pWyofkXlPcbxW8O65BKX QRRs3VpOCxgBQtQ8dhnjxTbe9pDpi87/wp2weWWmb8gVMVdOg7PgJAtl5+sfuhr3nqGP0QXvsq+qt OWBrtlTXuC9zscIGYJFpYyZcMqtqVHfMBYXoPgHkUvrCe15IDshZSC6eCtRqKeLg8lv1B/Lx/Vi/M odATKzk0FFFd+kxqYGfrwqFgEE4079cG9OjQkIFn8hYQtJ42TA+fdlQ45eyqkCjI/dNizIaUe5wg5 592Ch7ymzCaR+cuOaurg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lo60X-00H7gV-B9; Tue, 01 Jun 2021 15:08:41 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lo60S-00H7b3-9c for wcn36xx@lists.infradead.org; Tue, 01 Jun 2021 15:08:37 +0000 Received: by mail-wm1-x329.google.com with SMTP id b145-20020a1c80970000b029019c8c824054so1804970wmd.5 for ; Tue, 01 Jun 2021 08:08:35 -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=oAnhL/rLVHOlPObR2Xdk1DvWetZIgbSOpJEsqp74oTI=; b=td7Ky7vIlMGR0lzB9NGPGL4DZjzHaMJwurupmI6h/cvMBTHZd5bT55tplls//PeW3r NQQFaw9Iqpf41xUP6IlbAkhxbl2y5YUyoP3LbQHZHBNhj6nNDFn/sBbPZoo9xBI6GCpV bMd5+BJyY0YHfBtzilzIwN+9BQQ2idaM+THk8nixSlUBtiDrx+dZ2DfKOkIevtAEJXLf xxFRiKkB8SXfO+JW0pOguRDmiQ/WTqNu6c97ZscjQnWjL4FV1rW6NlY3JpLZko9t8DbQ K/+ezRt5IF8/cmDI6E9hcHkNtQHPKP7/73V44zlBZ/DfBcbUwYC9K6eKNgH+V9x3lnoV w87g== 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=oAnhL/rLVHOlPObR2Xdk1DvWetZIgbSOpJEsqp74oTI=; b=Z0oD9uAXr+WlzUwbCJrQIGlmkW5malBfoibE0V6d5i82toju8UceVeo4hc33QtTRcL WrKhL8xFBySmjK2BaP4bFxS4s1kqPCPyP0EEdil7sLpxDUoKBKgl+Btvr5NiRKlPh1DZ 2zWoWwZsw9Db3Z8Q7KLjGBc+Z7bgvIobS85VCSTjwoFajqd2ptonCdl30tbv+64GUj8t gucRtFqqUvHHFANzmv20vhik2+eYWy/7GHhmsUohaLMWEJRxuezbxS7Wf5rKSSTKRAsI 99rsgnj8DmF0atXZjBkopZg4DBgv4BYV+gI8cnUj66Mu0vtlenC9tVs+T9shSasxlXr9 GGQA== X-Gm-Message-State: AOAM531tuJkeNFrrqVy84qTVFat/iir4oLyd2A3OqRTswVI0EG8HWdip 53MbMDxLdHu8R+dxYI0ysvWsyg== X-Received: by 2002:a1c:4b0d:: with SMTP id y13mr7381400wma.179.1622560114474; Tue, 01 Jun 2021 08:08:34 -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 o129sm2822237wmo.22.2021.06.01.08.08.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 08:08:34 -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 v5 12/12] wcn36xx: Enable WOWLAN flags Date: Tue, 1 Jun 2021 16:10:01 +0100 Message-Id: <20210601151001.1450540-13-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210601151001.1450540-1-bryan.odonoghue@linaro.org> References: <20210601151001.1450540-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-20210601_080836_376374_727576B6 X-CRM114-Status: GOOD ( 13.60 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.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:329 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_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from 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 Tested-by: Benjamin Li --- 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 c697b9f3633a..3a4e383b3a6c 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