From patchwork Mon Sep 13 13:01:40 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: 511486 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 36910C433EF for ; Mon, 13 Sep 2021 13:05:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1971A610A6 for ; Mon, 13 Sep 2021 13:05:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239551AbhIMNGQ (ORCPT ); Mon, 13 Sep 2021 09:06:16 -0400 Received: from mail-mw2nam12on2088.outbound.protection.outlook.com ([40.107.244.88]:10209 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S239552AbhIMNEG (ORCPT ); Mon, 13 Sep 2021 09:04:06 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V0ChSjLs0T/ngQUAoC68jz2XhNORl9rRr5F0wYlEx/c4ndeA086Lg58Ahq1yyha91UmZr2Z8+nwnNxmfwDdsLjI8DO+tRxTQ+u7WMckXyo/L5E7mUA4WEidpbbPoFEYUFi+QStLwy3KMspvxiRdxDgulBMTHtQzYSJZQrVsPzzMhDOrMsEyaL4gUYp1tb+Sd/TKpu42Nj2gFb/Lq7PDtQgOcEQMhxrNRYrJUh5viLUbzpYV8IRwBclDxX6YUoQCuWn1q+UiwgNV7wMsXLzgnodMN3Ucm8cnyGm27iH96hmsmvj9ossP2y8KKNYUxPpJLTgooiif8FUoBz3xvRKVanw== 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=Jgm7gufk4MiTW/E5bnLdLTFb9rL4DssoymnMgDzNeZw=; b=G14tYnDwz9VkMDPCOkQ3pR5gsKjcrrZoxhGUpr/pFAg2NXlMqSS34dbeY0s8xfea64qVR50SCRzzJ3+DzovWfBou2ajGiiktxjm+HBkNgcaWqqzQXdCNxHD4VfIf4+ctDQZwSsJHVqR24QoUGM7eFR7EyFEYhKaw05Rz9sDx2WEkom9X7laZdxpWzF9gB3b2lpsxMJ4eNJrmzPST6bZQUTJt6brqz7ie1f0qUnVPEUzqaiYtBIf/sT7GXOb8gFmQ7RtT/8ipl6XAFIM4YtHcaNrUytu44T7i6DQauxfqjIs88m37hgq/v0l8U0Z22Od6Q7uloN1l2eTZ4rjGiM6yWQ== 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=Jgm7gufk4MiTW/E5bnLdLTFb9rL4DssoymnMgDzNeZw=; b=ZtFbSeZfL2sR2FULv3bdxnWyKogTjUzLJzLvtVhsvVhBnMjJ2BChBC9MJW15CAMRLNtc40O26y+lDp4SzJWXZFhQMGCv+JM7YCplXiGUGkhSWd0uDCr4y3n0XJaK9wS9gD0mqHqMcmi1426ItIwHuAhwhCTawnxL9CxtvDcQ7HM= 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:33 +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:33 +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 09/32] staging: wfx: declare support for TDLS Date: Mon, 13 Sep 2021 15:01:40 +0200 Message-Id: <20210913130203.1903622-10-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:32 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 78756b84-2275-4793-5384-08d976b6c076 X-MS-TrafficTypeDiagnostic: SA2PR11MB4860: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1360; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DfZmINL0bOEBvVaDUHt6535l9jYBJ3qADcCQQ5i3Fq49xpUH4fV+1e1x3JDJliALvxVVU5Qw7VWZrfMnZ9bGUUR8M1dv1143DYj/U/KyYsIJvBLbyDrr3WmH+T9GnCgeyHQimzwvRB2ZoDKTeFrQ5xa40na+IOIwikj8pG52CxsGwLY0MCAIk9r/kh9IupAmOA13nhp3bxbnao7bhjU7vw1eGKkB1A8Nvma3IkTiGIHkIhLyMXp1eAfas92boPL+Y52irViSvfARXP0hb9UNC09cpjqpEJuNM5D77cfF4XQ6Lp0R23M2DsIzx+01A/EelVXH3wKEDlhVQpo3fyPIoU5OhDNibikU7Zqo/0lLbz48QdqPx7zIqH5uo9WmN3jdSOfLZBa9821911CQ6fYaSIuZtTxdH47CX/11oRoVT9sPvRRCTCiXt4fqGeFnku/1UXZj12a8Vw/GzjlqiW+6JJghwKX0/iY2sIl2nY+klmsMi9Ih8Vt40Gi89fP5rg69yes99KpZyRopCkOTj4LbsGuxS2eoTYB1E/KTifJAVryEixc1FEjdA7nwTKJObt5aqmXDFPlU+GrOg3OwkZG96UthiySsYEPhZMmewIQ1oU6t5hWNi46m7UOM8payg/tHKZiniy5QX+Kertk+FhRuCJA0HYRjMqB2pW3UkNB5NfcCUHcM6we4x4kDMORYnXX+2qmOZ5+OQehlDPZ4bmUvXQ== 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)(6666004)(4744005)(66946007)(2616005)(26005)(36756003)(38100700002)(38350700002)(316002)(4326008)(107886003)(7696005)(54906003)(5660300002)(52116002)(66556008)(1076003)(66476007)(6486002)(508600001)(8936002)(86362001)(2906002)(8676002)(186003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?HH6xSalZgb3H64wUkIE/AUolI?= =?utf-8?q?Vt/pImxj0vqux66qUlUD6ngvXVraRJTI5l9rk8beSk4uHMi6SWkpE+ay?= =?utf-8?q?njEMeen73NrYMSaHEi/aIavvl8PKBtfNkXL9ZMtcQpZaeJWTWZ8LiUpJ?= =?utf-8?q?7jxk6n2OTzfgST8ybrQbntAS19tfSHg6wmiPKFhqKpUXbpz8xxRmDJSg?= =?utf-8?q?3yFP2ZuVDWKd06LXblosS2+3F25ElHsDxY72BLFSsdZFnE6UNBcPNevR?= =?utf-8?q?25QCE+fiQEka/+zurPt0HGUcROleUwIgX+tlu8UWrYrSQIcZXMfLY6MZ?= =?utf-8?q?WW/N+CiHcM45LKxZG3RSPsFcM0YOAII0X5rYvom4A2vX8aFnRXF4SZwO?= =?utf-8?q?zAoIx1RCjWg90KbDOPQ/fIQUINoQseuLsaelvSlymQna0JOJzdTYObuo?= =?utf-8?q?JEXKe4CQx5bzvzegmxnUC0OdAJIzXHdjuyq9cYzGy9HnU+J6g4x2lmAP?= =?utf-8?q?SEdvM5qPubNPrvnWULwkm+Ds1VxugD1/4q3qTMyjtmc+yl9rkJxbZhpo?= =?utf-8?q?BMOh0wHBOMBxbAGdaa8PaFZ94N1gsH5pjnLYw0nU65hQ5ZowVm5feGKv?= =?utf-8?q?1s3M8/Ytqcqrh2aV3svZy/27Ee5zlUgU8VDGgZopcA7MzXNDm8/HXMDh?= =?utf-8?q?Jr7KObXg+0zIUBHBomL+GfRX4cnbYFay9cRIeBOm0ac1n/qS2oiRg4bu?= =?utf-8?q?y/xRjpkDm3+oaWrrVogUbbY03Jfa9jTDjhC2j6uMxVSbynNh0OgGB0Cc?= =?utf-8?q?eWlfWBvjeHdosv/PE1jOHXgWCbmqPh/fsp+J/OZBZN/nePZr8yFOVTcF?= =?utf-8?q?kpjpQH1aa+wt8JTOCD3RecxRDZdL3Us5ANaxqcr4KHi4T2wyG/ugI/VK?= =?utf-8?q?DHKHC/Kisf78leDp34Eo4qnVIcKIv/NBL/JyDDybIsAKckdv6o+PMcPK?= =?utf-8?q?FXWkzMxvgn+AZYS8i9EqmBc6Dd46YQquiy9k5MLe/QzPLUqGN9qAU3o8?= =?utf-8?q?zi2ZzFwbzBcFr0Pw6+BnNcH2A6ASODvrVb6+f2oiytcI0/Ka6oDVMpC8?= =?utf-8?q?C6Zbz72yiZICbtKwivt5oE2vqmJEJpnUUa5e91vRdhs1ae3hPFrG6VPw?= =?utf-8?q?KfRr+FvdB48sRnrxHLpZfGc0gut7t9DY6MUiTPfmr8nYxmkmMJTlK3xd?= =?utf-8?q?rR5oezMDTuA52k90bDI/wb/kJ+q/L2c6p+2qHAJxeUT84tim2Khd4ev9?= =?utf-8?q?5eDBt9TGI7fpqY854UOiiFFnQmelhjhPndTj/hChCWlzYD9Fzptjm6A+?= =?utf-8?q?wGj9NaMs+73u/trQoRekVJJLgZZlSfh/ZjZKLTHqRyBF6i7kq1Rq1lNo?= =?utf-8?q?1+x+tEzz/zmopxYQ9mblypHZIx3aydz?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78756b84-2275-4793-5384-08d976b6c076 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:33.8389 (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: x5pQ0+nq/kzbK0eMMWT+/pbmWp6JNYGKuyXLgRjdufmyqm8n424IpQdN+71Dqbw5HFSxHGLvpB10IzKHHJ/oFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB4860 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Jérôme Pouiller Since the firmware API 3.8, the device is able to support TDLS. Signed-off-by: Jérôme Pouiller --- drivers/staging/wfx/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/staging/wfx/main.c b/drivers/staging/wfx/main.c index 4b9fdf99981b..0a9d02d1af2f 100644 --- a/drivers/staging/wfx/main.c +++ b/drivers/staging/wfx/main.c @@ -440,6 +440,9 @@ int wfx_probe(struct wfx_dev *wdev) wdev->hw->wiphy->n_addresses = ARRAY_SIZE(wdev->addresses); wdev->hw->wiphy->addresses = wdev->addresses; + if (!wfx_api_older_than(wdev, 3, 8)) + wdev->hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS; + err = ieee80211_register_hw(wdev->hw); if (err) goto err1;