Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1130271iol; Fri, 10 Jun 2022 00:28:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJBYtjlTuRM/fjH3fNGyUiCapUIeyJfzF2OiyXzcFOBec3ux/dj/POJ+zb+9P57m7gl/Sz X-Received: by 2002:a17:906:7d48:b0:704:e88c:2af9 with SMTP id l8-20020a1709067d4800b00704e88c2af9mr38598676ejp.165.1654846085317; Fri, 10 Jun 2022 00:28:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654846085; cv=none; d=google.com; s=arc-20160816; b=yhmLV0xslPqi1Ab4A5x8hbY2i7h/GUaNff61N6H3oWNDmKmMazp2Hjq24E2LX0GbyN jSP2mpzegYw6KzgxZWL9Xu/ehwL8wYSOHlFW5OYJkEDlxNOGfOg7VDbzWh7bFp2BanQo DonS+xcQYF4dmdsOFxOCBknm+fbkLck/kqMXc9EfTTgOd9z3cGrrKxT+tysgwVNYSEKV Oj0Zlo1nJSJeBzVowsskHYZ6whnUjJPJU8vIgsjSxO5Ve+mg+sK/54erXbkDcfmUu++A 7A+ggEp4YIo++q0I52MpdYN9n5xg5rdx0y4UaDbJ4oBLT/8lm1vweiI5vtnDl4G4V4Qp nSGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=d+L8RDUc57zswB938Rem9ESZYqLQx0rt/LtldbcRR/g=; b=ox/516Z7v09ObGJD/q5eM4fWXw2+gvroqsjVTV/wTvNDBnu87RGG6R9V+mTnsjb7Ec pjQ3MuwVha4QuQFoRSV9qWgf5Sb+m+kmZuS6lQDPA361bakk1qWcsu2XTRmGZx8A08y9 c2wS61xxaZ5byjsjdPdtG4mM462/XiG7LxeoHUiMudF8Lcpf7t7fRnI0W9BaJ6ia2na4 F5umaLAtgpaUmSsxAYaQrYVUZ8MtG01umYgekov+I0KSxiF8CWLCudLZ54uln0GFKstX PbbhtQu+XaZmOwUbtiRgALAgHgIlgmotOavCTt39i7S6UtIMG7TKdxqEXVRV0lVI6a2C qPJA== ARC-Authentication-Results: i=1; mx.google.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 dm5-20020a170907948500b006ff17356288si5904027ejc.803.2022.06.10.00.27.47; Fri, 10 Jun 2022 00:28:05 -0700 (PDT) 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; 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 S1346738AbiFJH1T (ORCPT + 65 others); Fri, 10 Jun 2022 03:27:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346810AbiFJH0z (ORCPT ); Fri, 10 Jun 2022 03:26:55 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B39CB1356B2 for ; Fri, 10 Jun 2022 00:26:53 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 25A7QmceE010141, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.71/5.88) with ESMTPS id 25A7QmceE010141 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 10 Jun 2022 15:26:48 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Fri, 10 Jun 2022 15:26:48 +0800 Received: from localhost (172.21.69.188) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Fri, 10 Jun 2022 15:26:47 +0800 From: Ping-Ke Shih To: CC: , , Subject: [PATCH 04/11] rtw89: support TDLS Date: Fri, 10 Jun 2022 15:26:03 +0800 Message-ID: <20220610072610.27095-5-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220610072610.27095-1-pkshih@realtek.com> References: <20220610072610.27095-1-pkshih@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.69.188] X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: trusted connection X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Deterministic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 06/10/2022 07:06:00 X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIyLzYvMTAgpFekyCAwNjowMDowMA==?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, 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 Since we can allocate MAC ID, BSSID and address CAM to TDLS peer, declare we can support TDLS now. Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw89/core.c b/drivers/net/wireless/realtek/rtw89/core.c index b372e863f28f8..608c325ec62a6 100644 --- a/drivers/net/wireless/realtek/rtw89/core.c +++ b/drivers/net/wireless/realtek/rtw89/core.c @@ -3029,6 +3029,8 @@ static int rtw89_core_register_hw(struct rtw89_dev *rtwdev) hw->wiphy->available_antennas_tx = BIT(rtwdev->chip->rf_path_num) - 1; hw->wiphy->available_antennas_rx = BIT(rtwdev->chip->rf_path_num) - 1; + hw->wiphy->flags |= WIPHY_FLAG_SUPPORTS_TDLS | + WIPHY_FLAG_TDLS_EXTERNAL_SETUP; hw->wiphy->features |= NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR; hw->wiphy->max_scan_ssids = RTW89_SCANOFLD_MAX_SSID; -- 2.25.1