From patchwork Mon Sep 13 08:30:21 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: 510321 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=unavailable 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 4B59AC433EF for ; Mon, 13 Sep 2021 08:33:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2EA7D60F3A for ; Mon, 13 Sep 2021 08:33:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238262AbhIMIeW (ORCPT ); Mon, 13 Sep 2021 04:34:22 -0400 Received: from mail-dm6nam12on2050.outbound.protection.outlook.com ([40.107.243.50]:38689 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S238118AbhIMIdd (ORCPT ); Mon, 13 Sep 2021 04:33:33 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NwvLRTpwsdaz699K95tFlYPtOh4pDTaTgtn+AjkUGdLMlp5R6yjU31x/PMYKfBJH0JAz6nMTCR+8PrNuWzGyv2nfKRKNYX6Rt0OnYSGmutNNXgdarjM6BvwJ3bgHptY2vOW6OdAaWivSV1RBXsSBfx659XvlI4dsFgLDs9WryaLJThxRv6MuHobJvkLl1OB72AMOIQ8G5veZb728BSY7kbCnHZZ17Jnd3ErS3TnTA4EqrfGcB18rAsTDDOnQvOaNBHvrcfxu6qExGCPynloxLmjBxJIXhPwHxF3rFxkF0sRHomOQ0VDa420dD3SofQtxQb2S29rGL1BKMthfvHip3Q== 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=eepPism/nItXBy/U//Hexet9/at+PVTNJbpv/UVfKSHtJkyHdPFZxqUbf54cJBr7ik8M2AhIJuWYaHzDopjExZMJR+VbwBYPBtK0V/YZwzj1toiefDxpdGMEfd53kSK6gInNjkVrMM1MlhAULYEF8vUCKswSwIxao4GCx+MdTk/s5+0vUWC81fwdsxhq1DzIgPpBHI+1YFmqj5o4ke+bQ4rlkegV9fPasQm6UGwLPyzkD+muf4hmy8iyQ9SHksvfSo5Wu4yMMxami0tPLZK41YZtNkHxUfJtk/FApvltv3bFTa5BO5CQmiIyu2Q1aD+6HYUV5pznXNhZQsdvQS/9DQ== 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=DbSe4pEtG0VzbCm1eShWjwPZEE/k8KVEMpQpVVDTnRAlHmbIJJD/qJMRUgtlurOmWf/V9lROQ5W870+3o5HJ6iSiEkzftwfWPHPhkmKM5d7jeABn4KYUeI4FgXwWzDrbU7xUKEFUPEIaPU3TM3xG0sXJICXsBPk5henfT+TNTfE= 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 (52.135.97.18) by SN6PR11MB3263.namprd11.prod.outlook.com (52.135.109.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.18; Mon, 13 Sep 2021 08:31:48 +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 08:31:48 +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 v2 09/33] staging: wfx: declare support for TDLS Date: Mon, 13 Sep 2021 10:30:21 +0200 Message-Id: <20210913083045.1881321-10-Jerome.Pouiller@silabs.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913083045.1881321-1-Jerome.Pouiller@silabs.com> References: <20210913083045.1881321-1-Jerome.Pouiller@silabs.com> X-ClientProxiedBy: PAZP264CA0067.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1fd::10) 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 PAZP264CA0067.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:1fd::10) 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 08:31:18 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5f96e9e0-fdcf-42ad-1a19-08d97690dcc9 X-MS-TrafficTypeDiagnostic: SN6PR11MB3263: 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: TC0AKGLsV7CbGnwCjHiGrNOdPXJgyEoVmvb+mvtVj4BQ+njTBb2YiLMCg4iNND/A83LZPylINf+9zKUOveZLFXoz3rrULr8Bs04Gi/sG41h1aSfuWSLkBs64pUfAKhv3JWqHk/GlAg6SeKycSFlANwbknEwznr2Qd7jreB6Jv4xOP1KrEMBLnbY3zbXz7kqBqnkIr6/cpZOt3OJ6u2wR83Z/p3LYMn1T+89RHlqiMJ7CGvlDAagMto2KZkjY6hQY+jfwg7bYivwschWJVzuRvaosJvB2g/H3yVa+el1UNM5OG6EZPqCkGBPlvz8JgZJaoA/jKqtsidIZw5uVyQzOCF38JxGzPsl1GW/QAB90Xk3cOK6U3H+KcO8E5ZnJcwNTgYrKeZjltjqsy3eJ+3lXPs2zPJMYjvHmCfKOUZnG0CBeykU8qQV13J9QOJtOQf3edo585Zzo8roZ73ZAbXEDHkvn5INr4OHC9iYsi1JzU3Bvd8BoCDNgL08xsFV1f+iBXPL6BsM9sgrycGOskSeyhicM5uQq57dCu3zQ657rvBces2Zw/2ReFkU7MB+UXHUJu5CfGkbE0qayAdSjf29orL96WQlsajttJrOl4U82XVb1+s2PuQ4VOUCMZOoghWDh0mhDc5xZRaeUF7pToFqidw5OgyiyRrxKm6oYH7dfVpiPiuEvDqYpVOBlNtF/D2c/0pIPA9rLgBbh2eKhNGiVPQ== 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)(107886003)(956004)(2616005)(5660300002)(54906003)(38350700002)(4326008)(6666004)(316002)(38100700002)(66946007)(26005)(66476007)(66556008)(186003)(8676002)(36756003)(8936002)(86362001)(4744005)(508600001)(52116002)(7696005)(6486002)(1076003)(2906002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?mtJMdXnRNCYQS/FbSrivqEr+l?= =?utf-8?q?agNDkIlbT+Dn39C0MTJlKt1jjUMx4trL9hSyHJlhXW6eW8zsV876iFQ4?= =?utf-8?q?q4T8a4nMVCWxPZ3JgbYapUlNRuZWl/k9VPp54l4EmbvUMnF9MpjmYV9D?= =?utf-8?q?QrJ3GSbwl+vvI18aPEpOrBGodK89WBbA6LCJTxq+GFOhO4dKG4zUKJmb?= =?utf-8?q?ab/DNc8TAvxhAExhwtz/88VHp6G+Kt806xMNv5kihgGcwaPdSeMXKmFM?= =?utf-8?q?zT4ZPmM/7ggzrvVntveDZSvhTIxGVOWt18i1Pb+0EHFgJR+aLad1MStG?= =?utf-8?q?zWNlsA9DRJs4ve1OS9NqeuG3Jdt/2NMvnA127M+7DHNaS6gCgotLjK9C?= =?utf-8?q?wvnXN5g182Wr/Flu7dmrX2+4/0sgwj0bHGGDYC63mFS/AuH6v8Q5xqTC?= =?utf-8?q?7FARDuY9UP9Bv/6Hmv0UcaysTHTPutxjBQ1gBD8aonvjr+RSMYIsEMAu?= =?utf-8?q?tKm4Z9UQdNaNiwEkxQ7Tb86ghcuCNyulrEGLvzQTagoxvJm9cSZYiT5w?= =?utf-8?q?L+o6WzYUBSMPJZBCoAHr34uV4mDqKJ4HL00EFuTAqM9D6vsrNGc87F/1?= =?utf-8?q?Umj8o4qTUKLDJR9nKhuM8qAlLAXCA0Xzg2cxyl43rSVgdBYKZ1k78vvc?= =?utf-8?q?D8ybW0q4ntbm9m6F5SBGY4bOH6MCMXLj+NiOigRHdu5V0osYddgd4SlX?= =?utf-8?q?M3AD+mZ+Kc8xZJv+XiWGsPG6k0fXF75azYSbp3lmdUIRw5Sw1e1P7JTA?= =?utf-8?q?nksFXI+YhQ71xO7phRzILduV5HJwsgiqc7CIKc8qYFE0mx8R8Pdsndub?= =?utf-8?q?0fGcPNeRU3QiLdLifyh2SY2qPwTFOD2Z7/4FikgPWL9AAZ1S2Jw9p8k+?= =?utf-8?q?6bCI8wkGLrimihxrGgWjJNMxYj1BgTkmv/jy1h/wgln62xTuyxvThL8M?= =?utf-8?q?/zFWqm9ON34flksdDMCBu11q+fxjRhuVhnFcD13pRCiYTS2DJ13lAnGV?= =?utf-8?q?d3SgjiS0j6txecY0rvIeZHceahBmrNpFz2uqMAbPtXxUtZhHT9UFA9Yi?= =?utf-8?q?uibc1H/yZbu2QRv1z94twOAq+AKYS2BVmjNzTUVUkJvCigHCR4tg5WpV?= =?utf-8?q?UHtx44p925kK0GzZ5hSx28XLYfhY8LjrgfyLoL2X2MK72ZYqO/CEj9rh?= =?utf-8?q?jo3qMb+utxmMDQ8/aN+S8W3qosK6NIieDQWK5SfI6hi4YlxPt+Q/wIYI?= =?utf-8?q?s7nrxSfBX7EhpUA8cwCaJqka5UBPu1htOuewuQNW75majmWVqw/DA471?= =?utf-8?q?68VoLyzt3e6WGl4cy7Wvdr40zU8UVyahT14TGUNKQ7H/UCb7us/GRmz2?= =?utf-8?q?zwK7/SsnyKBeEcmBubvZAR52fv3OalN?= X-OriginatorOrg: silabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5f96e9e0-fdcf-42ad-1a19-08d97690dcc9 X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2718.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2021 08:31:20.3599 (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: aLgfR1o5jDLqvONGplaM33Aa1AABjX6J7td6cEixvBaKC7xi08kBk98fSqmu2KscChcC8u5q5+UF4oANWKhnTA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3263 Precedence: bulk List-ID: X-Mailing-List: netdev@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;