Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2881736ybv; Mon, 24 Feb 2020 13:34:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwhibZY6z5Qfsoahcr9pzwsbmFhza3+HxIjGf4TdzGoiIoCgDnWFP3gs/T1prQ64vw7RK+x X-Received: by 2002:a9d:729c:: with SMTP id t28mr41402860otj.66.1582580088504; Mon, 24 Feb 2020 13:34:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582580088; cv=none; d=google.com; s=arc-20160816; b=f9sR7T3mFR9HatYnAW77RuvDJl8f6NaxMOJ0PeAB1ZOPdK8mjGCfzuYjuFKhz8ntOk RLJmASoBA38rNV3RoGufc0acJfGcN1r3m6KKCBq/z7h05J/MYxLkwL55lqDNtrPF4X7F Z+U696rRED79aJAexjIwhkQXzXgYdZnXCZgd8SE5fINcqsd5lruJxea/Gnw9ocHWmCxD IeVw682QMvXVrxryxFaut6bqxqJFVHOXhN4bYXxm01eEIqpiyxGNuB0gCdIDp9wPKcWA uc99Iqro+fJ1mFo1NIZW46z3FK5qq0U/FWvAjdJOmX04YVf/tDYSK48jG5UCwHyrskKO GIVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ol9mP/mNc/B093KYQ/yfySi+spT89kwBay5njJjbJBs=; b=fchWEwrbaW2GMcoKJvc8L/70MdG00svXnOikW62qc39AyykfYFOnntExwUNhyuMW4s pGHgdc4q9d34EOYJWhTIOjznaPKjU97gLZ1Vy55zz5RP7bIFd6fJwWXNC8FTK5qlQOKx EmEWUBkL5xZukSnMDyfOFu2T83RsR4EuCqsn8kia3T6+9EPw4oqVaJ8uzt6X009kYH3C Ppm1VR5a8bYc3Mv66EbWvnBVeOsPsReOIUYJYfrcjgYkz3qSnjTP24nh2+1/Eh/OjYn5 ulWZn91ZJCdda3D2kdC9JIcNPsSSI89dh1lPomX664pGaH5eU7zs2qs8syiZ/9ElMNMI /tig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=I6B1JyH1; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h138si5581443oib.6.2020.02.24.13.34.30; Mon, 24 Feb 2020 13:34:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=I6B1JyH1; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727896AbgBXVeK (ORCPT + 99 others); Mon, 24 Feb 2020 16:34:10 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:39757 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727742AbgBXVeK (ORCPT ); Mon, 24 Feb 2020 16:34:10 -0500 Received: by mail-lf1-f67.google.com with SMTP id n30so7119657lfh.6 for ; Mon, 24 Feb 2020 13:34:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ol9mP/mNc/B093KYQ/yfySi+spT89kwBay5njJjbJBs=; b=I6B1JyH1DxItKJyekTpKrtM4jGRiuw7CvR9YkTvluedbOfrU2QhSRstp5mp+Q/Tb1G Vzu2y2RvIu4H7BelrmXS/BorpclOYqmkgV2oMClQG0EjhUzdjcmiHvU6kb/jbpCRxh3G HsVailsVsCdD8JZpz0aqk0mmW8o06w0uyEG20= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ol9mP/mNc/B093KYQ/yfySi+spT89kwBay5njJjbJBs=; b=qoNp9R3H2SAzoZMvsH7kcv79n4aD5iCL2zHDohuxMvzbvlb3msBmOkFGqlQUgiGYJn /iCYrXw3GWhQkiDCIzSlGs0zevJF8n4nQOFBLEAUUh24QdMX0PQKv4EtiQqYPgqXzIC0 Km40GoqcjrHrNJa4aJhXuIpgBFMy7utM2R8/CXeUB9O9tS4YSHZcnBKmhRNvJ+Q23nit rLpzdxcq0SYCtIwbUbUk/HDPa9bdn1rOucwtpO6p9qzILHWtqN3FH1JAMKSmd/JYdfHB gpteQrB75Y8FRoM8lmDetRYd85UFfOYxGfR5TDzRoyLUsAZSEUq+kKwc4SZ59OxkbMIq bALg== X-Gm-Message-State: APjAAAVMs+94u8eaoBPoHZPw8EhlIi0REfOAcAiYc8qcGI07IMakVQIc bm/l8ExS/G165sUAQJJFZjYfEVcE3BE= X-Received: by 2002:a19:7b0a:: with SMTP id w10mr28386292lfc.90.1582580047550; Mon, 24 Feb 2020 13:34:07 -0800 (PST) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id z22sm6276604lfd.87.2020.02.24.13.34.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Feb 2020 13:34:05 -0800 (PST) Received: by mail-lj1-f177.google.com with SMTP id h23so11756449ljc.8 for ; Mon, 24 Feb 2020 13:34:05 -0800 (PST) X-Received: by 2002:a2e:8804:: with SMTP id x4mr29228335ljh.187.1582580045467; Mon, 24 Feb 2020 13:34:05 -0800 (PST) MIME-Version: 1.0 References: <20191219085816.20709-1-yhchuang@realtek.com> <20191219085816.20709-7-yhchuang@realtek.com> <20200222005242.GA100360@google.com> In-Reply-To: From: Brian Norris Date: Mon, 24 Feb 2020 13:33:54 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v4 6/7] rtw88: Add wowlan pattern match support To: Johannes Berg Cc: Tony Chuang , Kalle Valo , linux-wireless , Chris Chiu Content-Type: text/plain; charset="UTF-8" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Johannes, On Mon, Feb 24, 2020 at 1:21 PM Johannes Berg wrote: > > This also hints at a deficiency in the wowlan APIs: [...] > Yeah, well, we didn't dream up arbitrary restrictions when the API was > added :-) Sure, I didn't expect that sort of foresight ;) I was just highlighting that (if rtw88 can't fix it some other way) rtw88 may need to extend the current APIs. > It's maybe a bit harder now to add them, but we can do it in cfg80211, > and reject it if the conditions are not met, and then older userspace > will simply not be able to figure out easily why it was rejected, if it > doesn't understand some new features bits/capability advertisement, I > guess? Seems reasonable. > Ideally, this can just be fixed; Yes, I'd like to see what Realtek folks have to say. > if not, IMHO better to add some > advertisement bits, but if not then we can surely add some kind of > filter callback that's invoked at config time, rather than only at > suspend time when it's way too late to do anything about it. Yeah, I'd have to see what sort of restrictions we're working with -- sufficiently complex rules might not make for good "advertisement" bits. Thanks for your thoughts, Brian