Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1255279pxb; Fri, 18 Feb 2022 04:06:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8p0acWvAR6U9/2VWr7dhYLQ+FBeQOp6IPSO3E5StC8Hxh5GLFvCLpYhYG8LcgxcVXWyLv X-Received: by 2002:a17:906:b351:b0:6ca:8d27:526a with SMTP id cd17-20020a170906b35100b006ca8d27526amr6345349ejb.289.1645185965290; Fri, 18 Feb 2022 04:06:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1645185965; cv=pass; d=google.com; s=arc-20160816; b=d5zRPRFl1vZyAWakz+wtdKzcIwdzxBMU2Yw5wnWr2ODgiVr4lLNEx80JpFWWkEBSwQ uwi7iRuNdsZJ3MufAcgOYeCrJrkz5OhJfgSnvhVbICmE8vbLOw1UIwNsSq2KygF98v5u GfFSvZOOqEGihQ1lo1y8IVeS6zL9Yd3GobKq+Y2CXML2C4u7dLXNrdtNNpFTpJXIMEVh 2DjAK8ZBTRWcXcHsrgJyMKVK8h3ASSmAj3nktPywNrXJDtFasE9i6ZYLxUPc4SOGqGLv ge7pJzFBylnywVBabNxG1VyT2SlD+OCDQjnFaIoUev0Taj6ybArJMbXMCN5EC4W3Xlr2 MUlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=as18uPzOVO0WJD5g8Oej/Lj8iSdgUoHfcYMejQHYs3M=; b=TY8DaMtHMDMI2MFsFx2JacOYMUywMwmfQd7ynvn3nqSBvUmL01VPE7IEC1rdaa6kng HErNMAoWBYV5QtjOqcFPlqd2BKEe9gW5kQweE9y2RH7DoxiPYd1clX4ivVvfW90I8xih Jkv6RYeJCiV1W1PLxBf7IVAQyIjPJjQAbKjUtf36TB5UM/Hw6Mc0u24/+P5y8d+wuIX7 GY8hGnLO1n4e8492iowCMofW4+wJdykeFz3tJDbRYsNdcCq/et61plhztenEoPZakO/O skF4B8XGbWJbG6NLGWucv162OwNq4vyrYjbux4tEIaFGZHQYTwvtvVIOs9tjiLbjebHq d15Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@silabs.onmicrosoft.com header.s=selector2-silabs-onmicrosoft-com header.b="OOJs/HF1"; arc=pass (i=1 spf=pass spfdomain=silabs.com dkim=pass dkdomain=silabs.com dmarc=pass fromdomain=silabs.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp33si5682524ejc.530.2022.02.18.04.05.38; Fri, 18 Feb 2022 04:06:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@silabs.onmicrosoft.com header.s=selector2-silabs-onmicrosoft-com header.b="OOJs/HF1"; arc=pass (i=1 spf=pass spfdomain=silabs.com dkim=pass dkdomain=silabs.com dmarc=pass fromdomain=silabs.com); spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234194AbiBRK6P (ORCPT + 72 others); Fri, 18 Feb 2022 05:58:15 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232068AbiBRK6P (ORCPT ); Fri, 18 Feb 2022 05:58:15 -0500 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2084.outbound.protection.outlook.com [40.107.96.84]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 69A604617D; Fri, 18 Feb 2022 02:57:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RrN0gQt9hBMj065P2m+tCNsEfXrEjwlLGrr4wk9r5gbo++XFvHAL9FAa+nry4VS+e0hOe7whAsBBmaufJAEyWV/KEED8IHhNv5OBRqSwTA/Hvp3EOZS66MYNPrJsUQPPT5Y2NAFpoCFF77RaLlyj/XQDVo7ePqaC3RGd6MxXvGhPf1Q5+KMO+xZh4z6IsUckmhyGoinUY8nRiLt7hcLDxHNqwP70ShdGGqaZfD6dQlK1uxi2idmXPa95gYBX0YLbPhgsinukeF+Vb41Og+xRrQ+pdyOYBVjnMmuVNxYmkv3tIpFgcWrW7xKzRZOJgQKkIW82ci/q+wpcp+O8Tmp5NQ== 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:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=as18uPzOVO0WJD5g8Oej/Lj8iSdgUoHfcYMejQHYs3M=; b=TL+tmcj4LS52CgXlTB1sODdxSSLO5+95/Sw1FkMojLOIl5uK+GjPR2AmuW05E0h1VtBhK+qpZ0oLmzjmy1F76fkDrs5ggcmy/5q3MLYuHlwdGyYyPQd9cSobvlpfMJFmxpxLH9jyG5zhbsylPht3Y+A3H0Z0SgLsAbZ/h+DslsgbmyhakL/4kjKWtnOD+4DYB3Rl3cqAxK/v5e9eUPsXN+DIbDaD4M9wjuB/a4r+a9DRQq4UzyoPHFCJNiqAp3V5iVJiaFo51WdaPYrtA2Q9/Csi7ynns/0wxBoXUr51oV8GvyxV02usmqE1v+W4DJe5llGdEdL1XsJ27KV016Jy5g== 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=as18uPzOVO0WJD5g8Oej/Lj8iSdgUoHfcYMejQHYs3M=; b=OOJs/HF1aI4q8lwaJdvUNq0nvv5NzX+G3uduBs3X+xUY/8oQ3h5gFsGAmBsdFWpczPzrl8jvQP1IjZ1LjzuruXa+d6Ubwe03xz9ey1Tsy0pTW6jIQEFHtumE9FPp02m9eA+IH0mxXR/ktRzb+UrqhBtXcS//uhMvqU3qig4CW8E= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=silabs.com; Received: from PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) by BYAPR11MB2821.namprd11.prod.outlook.com (2603:10b6:a02:c9::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.16; Fri, 18 Feb 2022 10:57:55 +0000 Received: from PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::1b3:e483:7396:1f98]) by PH0PR11MB5657.namprd11.prod.outlook.com ([fe80::1b3:e483:7396:1f98%3]) with mapi id 15.20.4995.024; Fri, 18 Feb 2022 10:57:55 +0000 From: =?ISO-8859-1?Q?J=E9r=F4me?= Pouiller To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Kalle Valo Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "David S . Miller" , Riccardo Ferrazzo Subject: Re: [PATCH] staging: wfx: fix scan with WFM200 and WW regulation Date: Fri, 18 Feb 2022 11:57:47 +0100 Message-ID: <2535719.D4RZWD7AcY@pc-42> Organization: Silicon Labs In-Reply-To: <20220218105358.283769-1-Jerome.Pouiller@silabs.com> References: <20220218105358.283769-1-Jerome.Pouiller@silabs.com> Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" X-ClientProxiedBy: PR3P250CA0016.EURP250.PROD.OUTLOOK.COM (2603:10a6:102:57::21) To PH0PR11MB5657.namprd11.prod.outlook.com (2603:10b6:510:ee::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 96dc157b-3546-4af4-90a8-08d9f2cd845e X-MS-TrafficTypeDiagnostic: BYAPR11MB2821:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3513; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W2Ysf+qN5T/QxJBVT4BnqmMMfUC/oq4PeTSDNwgsO5uuBu6s4ujLkCt+Ys2bNyUqER+lrh3UGbedDESX3fwQFc2DhkEuei4pIx6o9qnYW+ccSjVgFL7/ywdrQgWzjbNHg4fhUztrqI3yFEaORJolxqgckEuJmYzVAH+2zEiRFZNEv3Zhwfogg4u49RNC7AKs7YmY4jFwQ9XlueINwTbsYQz3JZXHkOXzqUijUBR7Np4Ov1Y104/W/wCcmGNtiJdfSQqV5zWAxlziGwaJFZTpObVjwlf3Ph8VrCLPBGhM5/zDo+GO1992TFKAKpo3r1UpjFfo+L9FnBwxQhNOFNPb+Z4iT2zbSLC/Zg/6gyl7SyWjrDQXuPKtDlcyifW2+dM2eEc9n0UbM1ebtEI20cuvc/Bjsb7+wf+LRWANFxMdPugKLGZpUcDoZBG0BPaKaI7AwbBswKWJ4x09nsxHyfRj4LX4zBRLIMXM1jL/OKRW4WDrkspMkJnQvc8xycj1tgq77AUQ0kdhwkIQvzv8C+i7bojNEFwB6aIkkXdM/PoovTx3sb4pAlkhnZC5pv1T41ZD047Vhf1xe/YZWK5oK3Lpf50zDBNwe5lHJ6vt/RS810o9cvYsTjbhfK0MfdcMLcnZy358kd5qOE55HUhUnblGQZfaKugTV9Vk3H/0VMjEo41bYzIZ97PFt4v92Z5ZrLq7YZzMLuh0E6Bd9VAh5t3hcQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5657.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(7916004)(366004)(26005)(66574015)(83380400001)(186003)(6486002)(6512007)(9686003)(6506007)(36916002)(52116002)(508600001)(6666004)(38100700002)(38350700002)(2906002)(5660300002)(66946007)(86362001)(66556008)(8936002)(6916009)(54906003)(316002)(8676002)(4326008)(33716001)(66476007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?H9iqdVUrr4nZwaOdTYTaG3KuTmyXhUOhBl2Rs33aUbA/gq0bCZFiCQLlCa?= =?iso-8859-1?Q?ewv5fw97teIuEKRMPmc0SMGSXvH/cY7fQLLv7mK3TxycTUmey5DTAnG4xM?= =?iso-8859-1?Q?8/R8kOUWyoUFIWGT6tLnY2bgLs/nY261GI+nFs8k8aDVuaZOj4rDTySfyb?= =?iso-8859-1?Q?3nEWeKOmdNmJs3I+9l1xRx4+7Ie5lyrKe+8tpmIGfoKtu5uwqL0DM8kqNk?= =?iso-8859-1?Q?TUx4ZyTRRJUr3WXwWcSxo/U0oD75PCAPpdJ/uUpCjOobRCjqjdV9xqwGBA?= =?iso-8859-1?Q?dDdmIwOSdsNoaLk8lC7tGopTSbQMo8ri/Mp3Bqy+2VOIfL8muludbufSEG?= =?iso-8859-1?Q?bQc4ffBH0LhpKE1XG8E9ERS8rj/TMwOuO/8Amodb5g7TguA1kCrNSYT9WD?= =?iso-8859-1?Q?g4otfLhERT5NDxUXROciClmPpe4mAsdyxajVAtmzlNPic2y00iyMuB9ubG?= =?iso-8859-1?Q?kLknaQKSKkoMbV3HcvpBARZOonWS9GXKG2rnj8O6w3islQ/4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BrjDWz/qjlCfRXBPZIckKFDz4mIeTr1G5leoWPLbvbu5U?= =?iso-8859-1?Q?Fx9XCgenjBulsLyW31JB6Dz/fxBO7PmI+x+VdRs0aTaa5jx2qHi95Ceyml?= =?iso-8859-1?Q?ng6uuewJ/7gw0yq8ldRYm6uBYyM16bw45If8+Kpz0+C7B4J+LOP+oMNhGn?= =?iso-8859-1?Q?AVUkaxPcGNCv2GdkdNUsBKlhO6fPVyUtv/Z2uqSkM3drdm+NVTuU0M4QA1?= =?iso-8859-1?Q?zu8dZAF8Xvk7zfrp02eDaHjBJBb4LpSuTjY2gOeQgp/9+U5dBYvFc3w3ru?= =?iso-8859-1?Q?esLAoEjivn5IGkFaBXc=3D?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 96dc157b-3546-4af4-90a8-08d9f2cd845e X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5657.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Feb 2022 10:57:55.3893 (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: OFygOH0POiW7iEvdLEah5sjQvkFvhI8r5dXtVAkfb5CAYtYQ2OB1Nv0LZJQXazjkw/GBYWI+fptUOxbh4ycT+Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2821 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Friday 18 February 2022 11:53:58 CET Jerome Pouiller wrote: > From: Riccardo Ferrazzo >=20 > Some variants of the WF200 disallow active scan on channel 12 and 13. > For these parts, the channels 12 and 13 are marked IEEE80211_CHAN_NO_IR. >=20 > However, the beacon hint procedure was removing the flag > IEEE80211_CHAN_NO_IR from channels where a BSS is discovered. This was > making subsequent scans to fail because the driver was trying active > scans on prohibited channels. >=20 > Signed-off-by: J=E9r=F4me Pouiller I forgot to mention I have reviewed on this patch: Reviewed-by: J=E9r=F4me Pouiller > --- > drivers/staging/wfx/main.c | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c > index d832a22850c7..5999e81dc44d 100644 > --- a/drivers/staging/wfx/main.c > +++ b/drivers/staging/wfx/main.c > @@ -381,6 +381,7 @@ int wfx_probe(struct wfx_dev *wdev) > } > =20 > if (wdev->hw_caps.region_sel_mode) { > + wdev->hw->wiphy->regulatory_flags |=3D REGULATORY_DISABLE_BEACON_HINTS= ; > wdev->hw->wiphy->bands[NL80211_BAND_2GHZ]->channels[11].flags |=3D > IEEE80211_CHAN_NO_IR; > wdev->hw->wiphy->bands[NL80211_BAND_2GHZ]->channels[12].flags |=3D >=20 --=20 J=E9r=F4me Pouiller