From patchwork Fri Sep 10 16:04:43 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: 12485429 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, 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 25F9DC433F5 for ; Fri, 10 Sep 2021 16:08:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 072F361207 for ; Fri, 10 Sep 2021 16:08:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231319AbhIJQJR (ORCPT ); Fri, 10 Sep 2021 12:09:17 -0400 Received: from mail-mw2nam10on2082.outbound.protection.outlook.com ([40.107.94.82]:58752 "EHLO NAM10-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229682AbhIJQIF (ORCPT ); Fri, 10 Sep 2021 12:08:05 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MlAiNE2CCPS6dduMVvtj0Hg4brQKpkak5uhOs3FFJkJSe1ok7gvc2sG1hIlrsbrzGJlsGvZ/vitkL3PTTLMhWeveO0TspbNjrx/EoeY5yu8/bkiI04cPv2zlbDf3yBdvs33E5HnZgcm5tEdBwSKmGIBw8CsknahZhEAdvcUaJ5odlBSAIa56vfhGGsLCH7JhqkMw9i6HAmHkguhHD3nfgS9yTHpvkQIuQFYJ/Z9n+mwhv6K7tCLXRwWEorGwmoelfhSBzpJR2+/FxrgMvpn6GWy4CAWSBGb4qotv8XKlqmt1f9p5W9SBcwC36vvaxHuZxLKxZzH0ITF9/Ur+5ZnvIg== 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=A18LMnOuxb9qak/i7j4FnpOPO3I3PNxrXWqfHesfWhU=; b=ke8laFruT92bwK7FCA7/yQjjkzMz3X+0h/QJYy1dgUInLrBEs4IjoJ0TLYNOY/zw2ci6ZWJVDYmcThdYx2u5qd3Ml8BgLgz62NfnV4HJtpmQqXEjdpFgiWXJ/FWsXjpoCIjnYsNP1YinVFS3WcHCJbZrY+4B5WTIDrueDahtvMdBrTkNH/dQ5umdXp772uEHHbBN7z53xxUY9O45SBhnNmusYamw1f3BVW7eqJMxmKWYEuigSGA7PbFplnwRoN2FD9/u3iy+anDcVSOXiAA/Yi/0XpQsslwvLBXLRlJSaovxZVGbFoFRoKYgWnaWiTUlIuiOtShu7mOHViXkyG6ZvQ== 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=A18LMnOuxb9qak/i7j4FnpOPO3I3PNxrXWqfHesfWhU=; b=Iwy81M+5hC5ktpoqwunxLG/WtnFDpz+UYbwS9Mp51d6IMN5gDgLogKZT4LwkIWDDGZEXUB2eEoIdeZYijfllHtnYjRPHgggmh7k+hRIXLkoVL8/qu7XOO4Wlj3ApJt+TBoVxYcXYx+W19YNaP4TVf27Ios7npTWZqYXHMIdLfMw= 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 SN6PR11MB3118.namprd11.prod.outlook.com (2603:10b6:805:dc::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Fri, 10 Sep 2021 16:05:52 +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; Fri, 10 Sep 2021 16:05:52 +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 10/31] staging: wfx: fix support for CSA Date: Fri, 10 Sep 2021 18:04:43 +0200 Message-Id: <20210910160504.1794332-11-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> References: <20210910160504.1794332-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) To SN6PR11MB2718.namprd11.prod.outlook.com (2603:10b6:805:63::18) MIME-Version: 1.0 Received: from pc-42.silabs.com (2a01:e34:ecb5:66a0:9876:e1d7:65be:d294) by SN4PR0601CA0006.namprd06.prod.outlook.com (2603:10b6:803:2f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.15 via Frontend Transport; Fri, 10 Sep 2021 16:05:50 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 439380e2-1337-47ad-63bb-08d97474dcbc X-MS-TrafficTypeDiagnostic: SN6PR11MB3118: 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: LvJAr5BK2gItl7nu+rM3OgRyWPs2aJo8opXbKQMdSC4LbTcm0PNyUpQ76zBj6Fuuy+jhZAxO4Qt5tvhoWg/qNozu09TWsTU0Sqh+cDOz43jnXkvWUffZxXVc4PzqBgTSpPXMipp4o8zL+hAz4QuatQayOEII/kPw5Kja+IxHEs6awLOMe8eN1XCFX8xJslyeUUBASskRrL9VncR5D2HMk8NzrtHcN2qqe13hWCL92hewlg6xq0Psc4pSJg7e0SM6izzO13cF4D7UsgmUR1YvUNMFFrmiCM11oFQ3XWsIWdIAl+XWVhtrGiwLBACRsJG5cF4ETA5FrPOoS2dOxKetr/Y0vtNfTxWpyMznK+qogdkCCDb6bB5SVEBHi1533o8QrUhMsH+1ThBrhRwW6xAjk1cddRHmXehLMURNHg51HgNEBM3K5LtusDZirtqqInzH7rAk4WEgWXcLY6bHZybLzAjWbUl9XzCBpmNrB/Du9l2i5g+BflQHVXqP1e3YaKTuMM2z5iA1Qp0JXXw//ZHDasXydjgrmpsdBBd2U8X3xtpXywkqXprrhaEwnyAbo+Vs1ydr2NzWbrQjM+qTjuTmbAYLtsHcdJ9Y+eU8dIqlo/Y93jAbLeCKClI9BrxkP68a2oqKa0lzg5mD6sakRfEalg== 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:(136003)(366004)(376002)(346002)(39850400004)(396003)(4326008)(66476007)(107886003)(36756003)(186003)(316002)(6486002)(66556008)(8676002)(6666004)(86362001)(2906002)(54906003)(38100700002)(83380400001)(8936002)(66574015)(5660300002)(66946007)(1076003)(2616005)(52116002)(7696005)(478600001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?zm+FGlBiOHdCfTHPCJty797acfDW?= =?utf-8?q?scissUDVUhZ0mJt4CrcaMNxmZoBsS/vtFNEU8U90RCr8RqG4QLi2s6vaS8put0KnA?= =?utf-8?q?CoZLyyv8i7aRoPi1fxWv1M5CQCCiN+d4jgIHA/FISZdh3tHW0y5KswPF/uK7X+t7f?= =?utf-8?q?/yr7m1UKcNByBfUCUelQtN81QL4ipI6EHcDSnSqdS33IvoTSuIXrlfiDGv6QbPGu/?= =?utf-8?q?OEBuiIQvjqx3VcmcumrvcH6nRiG23BIdiHuLJv1tpGaX2uOluVRUdlJtIOwVX1jXc?= =?utf-8?q?KNTPOk5kuIsJPxCB4H181mJv7s6k/WVExSKXEhwk3AgWqU3I4/oZtYfPp33RB5pcF?= =?utf-8?q?curQgDj28Z6J5RROdq2x9/P2pfqXdhLRdRVVWilZ1bOcgZgKMYvTNFEsbWYYbUe/a?= =?utf-8?q?K6Zqo3ezb2+nOL24XIeAHOXeLgnd19z8cZ+kDbc5qIunnPD1D4/xl3e+105BAppMp?= =?utf-8?q?PcFTYUJWrUvbqS1P2bZlvOwxOnqKjOckaKluPn7b7bbItW11YhLMYBiayP0ofKAbk?= =?utf-8?q?tvaNlTKX7daLLc0Mwm/fS6gYkatgIMwh+VKqYuqmaT1MVEZmyz+iIRErsMKxAAauL?= =?utf-8?q?5CbwZ8yqzDmyMRVh3bn/oNGBlm7A1LpddfjuXlV6eNfK3iOavIZLXScftZPmcoHNZ?= =?utf-8?q?A9RZrx9Vzqzz3tSY4qcPEv8e2tpOIC3tdQUhu5+wBXkwn2eKxTAGs0f51ySosqKhu?= =?utf-8?q?eMn98Beh/Ou7RsESIn4NWfmWK/gA8MVvK8fWyjxYWBFuJ0xFexhn2BJRka6lRQ7gh?= =?utf-8?q?LheftolMN7dboedYn7rKRLbCImnRvorBkfiOrNxlB3h0goK0nOOSK8ZkqOYsPMYvG?= =?utf-8?q?LT5qdY9muTdwCJQVKvCCjqSyQisa/Vsp61oVoRS1Zapm7QZbvkQmgYRESwlpVNQZ3?= =?utf-8?q?EJVsCTWdCuGIYAkjXezSTv2ux9lbTnhnK2pdvAJ91sOxdrdQlPcuui5ab9Qp0vrwu?= =?utf-8?q?OReXkP5eqN+3bG7qO/Qc9qi2QB2sC1Xn6QtksIp1ho0lAewpb8/AfG9iuMDQqCjdy?= =?utf-8?q?nAbKGX0Z3ARO3iqWsmX3YfY47SLOaitK9TbU7DVXrWW0TNZH0J4D0MPe1xUzBrMNe?= =?utf-8?q?4T6EsNwBK7euFktevI4HB8NTjBcoJZAlp2rvpk6GwcNxnKKXw5vlHUpqQwRs3FAfF?= =?utf-8?q?WjOI7lQj6WTFzarzRwbbsDwfzHKJCve19aiCihllpWBf3EIS/FNUpC24c9FkivMfh?= =?utf-8?q?AfA5FecGk4crRNxdkzGjE81w3t1ZtPz9sT3bjT8n/+Cs4DDjm5ZVuN9NdFSSLP5Bp?= =?utf-8?q?8GKPJ1xsFb3TK44nywvSOpt274jpYV3bBmETDS7RjX62jgrgnNPS/Rkp/re7H4Nht?= =?utf-8?q?gTAkEOJm4WghPQo?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 439380e2-1337-47ad-63bb-08d97474dcbc X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2021 16:05:52.0336 (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: 6PrEpHI64pzkXRRkGRSF2gvT4tQ1+DQPFT0ttDrBt06ofXRMd1t30CWkO+2o7xs5mzY5Evb/m4/Kmb3qIK+n1Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3118 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 58446f78d648..464a67a9b41c 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); } }