Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2508605pxk; Sun, 27 Sep 2020 10:13:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyvUXmRyco7j85eVKqAI1HuY7PMTfUMPEjyfb0lmnaVzTUZnrYrD2HaSpM3ctJdgumW4VEO X-Received: by 2002:a05:6402:696:: with SMTP id f22mr11617786edy.290.1601226815510; Sun, 27 Sep 2020 10:13:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601226815; cv=none; d=google.com; s=arc-20160816; b=kLvUfZUjPW39+45f/BVOfz2HN9Mr/FweohAw7SHMOzPxwnMX6R083GBiQTnXXK0vVM xRAd/4+erikLhlXUi4cFCzhRZ6MqSjTE9BJplXuItv8ljJM9b8vrOrfQ2QHymkBQvRO+ vA4RwxbIHo223KHjHYJeeQSadtI59+0TZyOb4Svrd6IIYH89rPhLjN0WjFIXjlAOPjfk 9TbZJYiHS9eH0xhkKkG30ixBSxAWKirHP6A3jzJonszqIv/zquybT3XlhgjykD+1u1AW oXHPJ4c5PbOtXR3RCd+YoBfWfiO6KANFjI1Hd8Wur4viCb2oigouPa3IuZkd6uQvWm4f zQCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:subject:from:dkim-signature; bh=cuBki/a01Gw312W1/MiJ2xljS95DMWfcUu7o+X3KNqc=; b=JMh0Jzr3fqKWnpAUnQNhOcaI1iLGQX5y86+xY+5JM71T4oJoWtAJqXdNH9C8Bat6tO 9I6tJ0Ez9W1/Aog2nqt07C9Psy5P7GHamxoM5ykMOyEQ+27CW1ZCkkkh0Xbb0buKCACl jJEJOi7+eDCL88/mq1JZhm6r6thdD1QLn2lMHOerCsDHq/iRopIpvZrcGICWZoG89NrD 41moMkHm2ZwbqAJyFMK/S0T9PnmVdjQ3oKf+3BYPhNBy7KWKiC2OiDs/wknzA71FHX6I G6W61Tpx5Xd6mmiOpF1JBOf1S1GCmk9n4i15kzPWdGVqUilWCiYkCYejqMidXcigeaKl ZstQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=RrEkrF8F; 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 b6si6846085ejb.204.2020.09.27.10.12.57; Sun, 27 Sep 2020 10:13:35 -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=fail header.i=@nbd.name header.s=20160729 header.b=RrEkrF8F; 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 S1726310AbgI0RKF (ORCPT + 99 others); Sun, 27 Sep 2020 13:10:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbgI0RKF (ORCPT ); Sun, 27 Sep 2020 13:10:05 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4AB7C0613CE for ; Sun, 27 Sep 2020 10:10:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:References:Cc:To:Subject:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=cuBki/a01Gw312W1/MiJ2xljS95DMWfcUu7o+X3KNqc=; b=RrEkrF8FxblepDdZLqqk3/QpI1 ze1uZJMGZdHVhCmrqPGklJwUKWKmuaD3C2mnJgLXtpOq7IDT/uHLqUzy2qNKViUSqoKp1sc39TUyz S8UrIkkV6ZkeQcQLlgznpP43V4CtMNqEIgJcESirDpBKRWaITldS25QAhlly5ERlpLn0=; Received: from p4ff134da.dip0.t-ipconnect.de ([79.241.52.218] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1kMaBR-00026h-HK; Sun, 27 Sep 2020 19:09:57 +0200 From: Felix Fietkau Subject: [PATCH] mt76: mt7615: enable beacon filtering by default for offload fw To: Lorenzo Bianconi Cc: Lorenzo Bianconi , linux-wireless , Sean Wang References: Message-ID: <80630d1a-c088-6204-eeb5-e9366be19b60@nbd.name> Date: Sun, 27 Sep 2020 19:09:56 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-09-27 18:27, Lorenzo Bianconi wrote: >> >> On 2020-09-26 17:22, Lorenzo Bianconi wrote: >> > In order to reduce cpu cycles, enable hw beacon filter by default if the >> > device is running offload fw >> > >> > Signed-off-by: Lorenzo Bianconi >> The beacon filtering part and runtime pm needs to take into account that >> there could be more than one vif and we might be running an AP as well. >> >> - Felix >> > > Do you mean we should run mt7615_mcu_set_bss_pm() for other vif types, e.g. AP? > IIUC the fw can manage the rx beacon offload even for other modes. > > @Sean: do we need to send any other message to mcu for rx beacon > offload for AP mode? Can the fw properly manage it? I think we need to clear MT_WF_RFCR_DROP_OTHER_BEACON (since it's a global bit) and maybe also dev->pm.enable if we have an active interface that is not in client mode. - Felix