Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15F8BC433EF for ; Wed, 15 Dec 2021 09:24:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236389AbhLOJY4 (ORCPT ); Wed, 15 Dec 2021 04:24:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236254AbhLOJYz (ORCPT ); Wed, 15 Dec 2021 04:24:55 -0500 Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9ED4AC061574 for ; Wed, 15 Dec 2021 01:24:55 -0800 (PST) Received: by mail-pg1-x535.google.com with SMTP id a23so15091206pgm.4 for ; Wed, 15 Dec 2021 01:24:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4sUvgkrF0BMRks7H4ZZOL7siKWIQ0a4qAeRlXkRUWg8=; b=ppVCKVaxu4PPkl8pzbDFxgS4ir057qbVQo/7QrIxW6WBzrt8a67IRF3c2+koZYG3yP uS6xfn4MBRJZb/4W3PN2IHZI7ax6gML7BChYpKjzFitS86KEWc0d7LyuqmmeCymi4KuJ 3+pUbNccnBbHkA43XcRABPRMzikyjlCpmfsGJDt9/wKA68ndSViKUxyRhigEZIG+8WjR lzsjs27bMjBbJV3yLlnsSJaSnrp/D3CoskM2xk7I74EhiNW3iNGlJLvXtNN8lg6FUS9Y jd45hsV46+4pKDi2ZU8731UgW4IBjFCMz+/Vvc78L2D5mDXxYx8i1oS4W9JW0NmFGpPh 8GDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4sUvgkrF0BMRks7H4ZZOL7siKWIQ0a4qAeRlXkRUWg8=; b=WuqbQd+Epa452n3HHmsxb62ptLPGg9hMT1diwen/wGmUHeF5YW4w3fg9h5GCotCtfB lXJyz+yiQTY9xiINpos26tSGk6wsgnIFWO68AFItxNEWzydunDBDmSEoem68zFSHWLci Sb3fnii/3yiJiVOZecZSaJ1C1z+F8pfgXCCg4qsNW1Q5xWPRxJHrYrGAJ4kAx47fzD+y p3d8vyq0AlF8HvKhORkAPAGA/xTzhZpnnGDiItwG0U/QHKBVMewFrs9h7R/F3KAZakGx bTETZ0+Py+cvDeT6u1u8A6LcWkyt9uZEFRbJVn37v/1ed7+MLMMu/FpozAaSG5/tzjHc B8qA== X-Gm-Message-State: AOAM530i7CNtUv3+UTbdw75rUrK7sEMSOKET229H9anXsjVxd4hCgKyH fzBg8i6ZfB63KGrXndALda260gU8nPBVaXaxQBT++6OmIY4UwHcW X-Google-Smtp-Source: ABdhPJxmY36Pokl0BNS+p4Oz9b7iNRfHVN6DaayYUHun5IaZ32qUoakG3f3BB7cdDn3jXI3Li2ml/FMPxVN9Sh8eKxI= X-Received: by 2002:aa7:8b07:0:b0:4a4:d003:92a9 with SMTP id f7-20020aa78b07000000b004a4d00392a9mr7995483pfd.61.1639560294958; Wed, 15 Dec 2021 01:24:54 -0800 (PST) MIME-Version: 1.0 References: <20211214134630.2214840-1-bryan.odonoghue@linaro.org> <20211214134630.2214840-4-bryan.odonoghue@linaro.org> In-Reply-To: <20211214134630.2214840-4-bryan.odonoghue@linaro.org> From: Loic Poulain Date: Wed, 15 Dec 2021 10:36:28 +0100 Message-ID: Subject: Re: [PATCH v3 3/3] wcn36xx: Implement downstream compliant beacon filtering To: "Bryan O'Donoghue" Cc: kvalo@codeaurora.org, linux-wireless@vger.kernel.org, wcn36xx@lists.infradead.org, linux-arm-msm@vger.kernel.org, benl@squareup.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 14 Dec 2021 at 14:44, Bryan O'Donoghue wrote: > > Downstream facilitates the direct programming of beacon filter tables via > SMD commands. > > The purpose of beacon filters is quote: > > /* When beacon filtering is enabled, firmware will > * analyze the selected beacons received during BMPS, > * and monitor any changes in the IEs as listed below. > * The format of the table is: > * - EID > * - Check for IE presence > * - Byte offset > * - Byte value > * - Bit Mask > * - Byte reference > */ > > The default downstream firmware filter table looks something like this: > tBeaconFilterIe gaBcnFilterTable[12] = > { > { WLAN_EID_DS_PARAMS, 0u, { 0u, 0u, 0u, 0u } }, > { WLAN_EID_ERP_INFO, 0u, { 0u, 0u, 248u, 0u } }, > { WLAN_EID_EDCA_PARAM_SET, 0u, { 0u, 0u, 240u, 0u } }, > { WLAN_EID_QOS_CAPA, 0u, { 0u, 0u, 240u, 0u } }, > { WLAN_EID_CHANNEL_SWITCH, 1u, { 0u, 0u, 0u, 0u } }, > { WLAN_EID_QUIET, 1u, { 0u, 0u, 0u, 0u } }, > { WLAN_EID_HT_OPERATION, 0u, { 0u, 0u, 0u, 0u } }, > { WLAN_EID_HT_OPERATION, 0u, { 1u, 0u, 248u, 0u } }, > { WLAN_EID_HT_OPERATION, 0u, { 2u, 0u, 235u, 0u } }, > { WLAN_EID_HT_OPERATION, 0u, { 5u, 0u, 253u, 0u } }, > { WLAN_EID_PWR_CONSTRAINT, 0u, { 0u, 0u, 0u, 0u } }, > { WLAN_EID_OPMODE_NOTIF, 0u, { 0u, 0u, 0u, 0u } } > }; > > Add in an equivalent filter set as present in the downstream Linux driver. > For now omit the beacon filter "rem" command as downstream does not have an > explicit call to that SMD command. The filter mask should only count when > we are inside BMPS anyway. > > Replicating the downstream ability to program the filter table gives us > scope to add and remove elements in future. For now though this patch > makes the rote-copy of the downstream Linux beacon filter table, which we > can tweak as desired from now on. > > Signed-off-by: Bryan O'Donoghue Reviewed-by: Loic Poulain