From patchwork Mon Sep 13 13:01:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= X-Patchwork-Id: 12489017 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DBB36C433F5 for ; Mon, 13 Sep 2021 13:05:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C62996101B for ; Mon, 13 Sep 2021 13:05:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238571AbhIMNGL (ORCPT ); Mon, 13 Sep 2021 09:06:11 -0400 Received: from mail-bn8nam08on2055.outbound.protection.outlook.com ([40.107.100.55]:54369 "EHLO NAM04-BN8-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239557AbhIMNEH (ORCPT ); Mon, 13 Sep 2021 09:04:07 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hB4Rku8ttKmt5cIq2azaMadASayULCA+eZNrnEIfSp/ujbaqivWDu53pH2vJcA4i/n7lNHETMJmkyjrflXrCD26ShD/X6DWdaAX7c1lzp60pjYYnYh+TEBP2Fv+eLOKLASLJ94D8a+wWwbcHWXEQMxLRSeMaHdcByMkjYjFRe3Xy6e19A3g9wkSFdd+ZPqSYKYFXfnsIZwbWTdqoRytobdAniZ/EGlDe+0lAOibp+ygc+JmBrjpncjnZgUqvoeky3cF+VYDOUJpv1E/WO2LNxu+ACceK5kD23Z+DGsFkHwdBmTI+3+6CWO+856HcKA3GoXUkmBmROJy2d+OsH1j01Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=C31iDdiNELeUy/7hAICgB5wTgF2daKvEZIoAcBSDHBI=; b=Yazew4RVeaZHA9jHlPJKZFbz1o8DBmcGe5L1jlHCUVv3UsxwkC9IINohCbsYb0jws1crsY3RB11IxiKAYHs6I5VPJTmkq4X5qfGCzkMKVVceTFlKByv0ev/ymiXDT6Ltbh/AIfYlR36SPGHhJWhcwMr8w14XAIaw2bMveo0pvXlYIDMly/2MMya8Q+1ODag6d9mBxlEXkDXsMOpxmyv4RPG1y7xGWojPXS/qXmZ/5cJLTIoLYEEK4lZm1PjERXjo4YppsIr9GGFY4KaM4A++bCcSLbniGLdXAk0mDZvrE9o2uvSbi8PXkJHBPYo9QR2IlnC0bcN+J6Il5imU36dgdA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=silabs.com; dmarc=pass action=none header.from=silabs.com; dkim=pass header.d=silabs.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=silabs.onmicrosoft.com; s=selector2-silabs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=C31iDdiNELeUy/7hAICgB5wTgF2daKvEZIoAcBSDHBI=; b=fApnPK9KplgC4ZJ3rQprZgwMo6ReM6op5RRTfM1SCKzCUDjyGTelK13ubw9H0DEixdGM/jCSJ1K9n7EkqTkHOzVPOJcGV9j+K7axu1ys6UmxBSo8LYzduca2O0936SDl/b1W0dvCt4FUgsvtTOhTU63xaGVF4uVaWCFIdBhKQJI= Authentication-Results: driverdev.osuosl.org; dkim=none (message not signed) header.d=none;driverdev.osuosl.org; dmarc=none action=none header.from=silabs.com; Received: from SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) by SA2PR11MB4860.namprd11.prod.outlook.com (2603:10b6:806:11b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Mon, 13 Sep 2021 13:02:36 +0000 Received: from SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd]) by SN6PR11MB2718.namprd11.prod.outlook.com ([fe80::7050:a0a:415:2ccd%7]) with mapi id 15.20.4500.017; Mon, 13 Sep 2021 13:02:36 +0000 From: Jerome Pouiller To: devel@driverdev.osuosl.org, linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Kalle Valo , "David S . Miller" , =?utf-8?b?SsOpcsO0bWUgUG91aWxsZXI=?= Subject: [PATCH v3 10/32] staging: wfx: fix support for CSA Date: Mon, 13 Sep 2021 15:01:41 +0200 Message-Id: <20210913130203.1903622-11-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913130203.1903622-1-Jerome.Pouiller@silabs.com> References: <20210913130203.1903622-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PR2P264CA0021.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::33) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (37.71.187.125) by PR2P264CA0021.FRAP264.PROD.OUTLOOK.COM (2603:10a6:101::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Mon, 13 Sep 2021 13:02:34 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fff0c955-08a7-4630-504a-08d976b6c1d4 X-MS-TrafficTypeDiagnostic: SA2PR11MB4860: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4+hY7j507rbjwH8W0MxCj4LAWT2alfaltCqWIFXv2xXY6oN6csYiwTiUVr+9GtVGYRtkIqe9a3Wqg8Q3XS61KRjB66/3WeLB4CxST9ba34gf56L7K4bXVjpGQHtDbNqIbB51WJGP/QPSoAOfuP/CnEiyhFxtvNQgSfejRIWao2G24P28BNpwXZk1RCMEQUywG036+Fkt/jhqPL10VaWxFU0tBfS7dDT2ArnTHq/HI0sPAc845Tuj4ydFPPxr1mpPWBZeMPnW6x/D3w6XVCmhFZp27eHCmGIcvP750sf9F3hQCQe4GvV4OJSpuGGZVOLghpnTkuttOO9N/6EtaElz3WQzw/RFrELYEk8TvZ9hp6il0owcPHjPdRzmLH0/Mv2V+KVGjRa08mgSBlqvlMBOspb407T/WetZZ/1a0140gC/1mh1TDdS2MzD0ELz/woCYIpKIBKgaHWwBIDToECMAtdxXu1jT3RI89Wh7DhxhQONOjyfQJUVAacLInygpG5sCnt5WT9Sla23i6Y6Rz4JZVWoM/6lb3SF603p4VAhCI1+qrO+03mbyVSP839PF5rn0HYHJJgKs0DkzJm7DE/D6vXyVb5I0AfvuVP0VWFLo+o3jxCPowPAbtiiCeymu44AHhDC0I/zxuTe0aL8zS77Q5yXoJnHCHYIJ7ig4F5p04KxrhnG8rmzgyjal1r5DALgM+cNcL6DEwRU823rsyK9zIQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR11MB2718.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(956004)(66574015)(6666004)(66946007)(2616005)(26005)(36756003)(38100700002)(38350700002)(316002)(4326008)(107886003)(7696005)(54906003)(5660300002)(52116002)(66556008)(1076003)(66476007)(6486002)(508600001)(8936002)(83380400001)(86362001)(2906002)(8676002)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Csl6bIlqkDB4mK+0G/Nn9xT77DL8?= =?utf-8?q?KrLOG3SEy9ZKSdhdzCC3+6grAj7OXQz2hUP+NkzpIzRHRoV1ZVESW6nL0czy9rzn4?= =?utf-8?q?lBsOK7eXY4YEG1rlwScanX6avp9ARbCiA2lrQSF/WqtgQfLH5EI+HjSXBC/Mg8YQ8?= =?utf-8?q?LABgRzrRoeOPEt4VoW4USfrRke5V6vlnfJtOEfC/Qj2wJDjNNcU6bm8h7jwE/qVCu?= =?utf-8?q?8JoXLBMVaE9OpJF6tZjfmrKxL0WB0pvPk/emhFCq4EKDOG62v3QTZ7ZfQ7K8ewpzO?= =?utf-8?q?d+6J/vpjbA9aD24W7RWSXUvh1ps/UDOvMwezO29qHJqS4KpE90vZH2rP+JU65w1db?= =?utf-8?q?yYOhf/yzK9ZaTF5fFgxNx4C+lx2KccFsaw5NAyzhO7zd3ro14HF45yBAPQuWVwzjp?= =?utf-8?q?ggK6BTqacvGRHVI3wDmyxKlra+tlKvPiFT6BfmtuNAS+VzkY3N/8Lk+NyzpW5M3qI?= =?utf-8?q?CIlnvQ5dZKXihtjCDdM3Bw9yCPf7JzvyY5E/4BYJoAE9/YJNqkej7kB9Zk6pDMO+Y?= =?utf-8?q?l9/FKQ4OrKTtXgVEvGOFLFWtFl+mu4OZ683pMxWghl3/BO3GDcA6/1cGsaBH0BjZq?= =?utf-8?q?1z3xQNWYRkchHBRPCChJ2DB/YX2ZruGI9g/8w6qO1weaGj2CQ2b9mK7tSnB2hgMDH?= =?utf-8?q?KbQvMkFwbVobI0wIsyKD39Xnfawzi9Br+ViPw3J7cOOo/W4n9SLI394SggR38uLoe?= =?utf-8?q?4KbFgLRoClEy8L2oa3K4cZIgVKgPcyeeoYNPxzFc+oaJ2DfxNNnpxbzGEx5WhXPUI?= =?utf-8?q?Qe9yAFheqaEUdVPMAnuuzhednp7BUkWBUoe/ZIGCm6FPBpkH1lUL1/003MEMX8abn?= =?utf-8?q?c67xHRRCFSBROc5WOYrfGD46Ssk2OOJj4eXO69s9R7trdvm/3JoQaoz2Z3AyaIKrD?= =?utf-8?q?aP5/+IFQxy2QW5g7jnY21vsD6xnTD6QKMPxHmr4E/4gKyL+u9Y0nRzgakePQ2eGL0?= =?utf-8?q?tVJAP6oLeMDhAO1NWBy6XSgmTg2Iu1q2NhtjLW0gHWYPxC9erXPBFAaUfpGftf26Q?= =?utf-8?q?iKbKxFSh4w4mI1Z1P+IlmqaEbG7D9S9abTqMf9IYGi3XOumC6prbc5wz7J1EV/OXz?= =?utf-8?q?GYwJs3oz2Xii3LB8ZAsjQ/UMIe6Ej9S5DhLbNLx008goMQViYVAKy7Y3ktMSRTIT+?= =?utf-8?q?hhgy+VpzMliN98XeNlCgYTciPDkyhCv11tODgnnh2qsas+7izHGKilw9WiMNTTutB?= =?utf-8?q?TAtxeOmSLt0LB3XnEm1tui+i1k1nhPQsW8Luj08kk3ToUjySLUX81nzP3UWLBcMf1?= =?utf-8?q?uAPbnkkHUPwW+xv+?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: fff0c955-08a7-4630-504a-08d976b6c1d4 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2021 13:02:36.0516 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 54dbd822-5231-4b20-944d-6f4abcd541fb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kLqsA8AC72ZUod6OB5Yk+9LTeTzcArweroJvKHtaQY/bbrVebC89m4+rpF61Ms4afPACQ+H7uqN2ilkxPZ1JUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB4860 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller The WF200 is able to filter beacons. However, it uses a positive filter: any change to an IE not listed won't be reported. In current code, the changes in Channel Switch Announcement (CSA) are not reported to the host. Thus, it fixes the support for CSA in station mode. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/sta.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index aff0559653bf..5f2f8900ce99 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -80,13 +80,18 @@ static void wfx_filter_beacon(struct wfx_vif *wvif, bool filter_beacon) .has_changed = 1, .no_longer = 1, .has_appeared = 1, + }, { + .ie_id = WLAN_EID_CHANNEL_SWITCH, + .has_changed = 1, + .no_longer = 1, + .has_appeared = 1, } }; if (!filter_beacon) { hif_beacon_filter_control(wvif, 0, 1); } else { - hif_set_beacon_filter_table(wvif, 3, filter_ies); + hif_set_beacon_filter_table(wvif, ARRAY_SIZE(filter_ies), filter_ies); hif_beacon_filter_control(wvif, HIF_BEACON_FILTER_ENABLE, 0); } }