Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp479276lqb; Wed, 17 Apr 2024 02:01:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX8FN01j7obZS8hj9vtISbLCMw8h9uwFSVDrxNV8fxCOrBAyQc4c2nKbcNH2tIhm6JYfqpoU8C2URCtT8vxxN5W1MAoMXwylRWL5TiPjw== X-Google-Smtp-Source: AGHT+IED7MGpKF57u9R7ky3XPK3p6a4CUhc9Mfw8ft+EdS7QfIHzFymzDmsxah6LxPdL9y4MLZfj X-Received: by 2002:a05:6a00:391c:b0:6ec:da6c:fd42 with SMTP id fh28-20020a056a00391c00b006ecda6cfd42mr17280493pfb.5.1713344504312; Wed, 17 Apr 2024 02:01:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713344504; cv=pass; d=google.com; s=arc-20160816; b=SNYNih4iECuVfpRzwklJ4uRKaoTmxCV4bM8aS2ztbuup+Yqgix7I52tGcYlSvpRiuy 84i2IydQcGTOGQe8vJqHPHsd3ynQNzyNjbhoF8uXGOxWcMvZZSRBjNBX7WtQAlpE8E9H NkhwbE+eQKw8qg0/EbhGZI3Sh3WzzUwAct/ecGxLthpX42fI02Gr4vobw4agVhsX7xTB 4GY+uVlm8TDuO4Zt8Kwcu9oWQ23hy3FlhXcNw95MFEKlgI7wK2DqjwqMaMdtjh8auBxk 2MrfFm4S0PHgQNYCpIrQqC/PMwUGmEViAD7h0PNWcyEWNUIIKJ4cLbr/0EYcKzLYT9Sf MdtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=3mmz3XdjUO82XpFzpu29jLMr1l24Jx/r7WOzfT4LW24=; fh=HUg66QM+WrcYjhrjAZO9Io78soUV0XNx50nXI3Hf4XU=; b=Tv4hnjCIS7AKTIhAIFg4fNSLnfX3G2ChmEnm2Z4DtxTZA+5/yO2e5ZQZ78wuJP5Cjr hfTvudb/QUWt8JUFiLTxFCMLX/09VXmgPtNvTFqN03AXE4uJoYn7RO/Ax1XlqT9nsFjI 3qnDYu7bWY4nDWgW+ODgtsP+5o78ZtBx49CToIzl6pUQj8bZtIxU32ksfDlSlurkOZRH rFWipvY3PZJL+E2RM7N5AQcGNDDWTVw11VQDtk4ljHKCh+TTPYdALtKwa3TAYKMypSKU lIeCpOOyVdoy3lXkKaJw7phvKaGfUdSH4TwD8IxqTMDoP1TSmc3nWiIpIIoYPiwgVKJ0 EbEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6428-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id s23-20020a634517000000b005e84e722293si11516934pga.493.2024.04.17.02.01.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 02:01:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6428-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6428-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C599BB20B4C for ; Wed, 17 Apr 2024 09:01:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66DDF127B40; Wed, 17 Apr 2024 09:01:03 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D7756D1CE for ; Wed, 17 Apr 2024 09:00:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713344463; cv=none; b=CkCO0+pZIJBrz5ufmlttyLi2BOrXrDIEN8bBKYrJ4S0+smkqWY3O5AnliDxt47RTuRDZL44enAAIzSNRaey3GsgDle0QKBWMa/q91bWe6mTlSeVovcJsPgACwM9jdBTpTKGFvw+N5nbTlmIuQUL1JDgNGa5GRcn72PTWd6I+HbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713344463; c=relaxed/simple; bh=yVDLIxOyAqwzuc5YWvXb2Ps9RoSfIaonSNgmDa05tDY=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=m6pJsKSkVvO1D6CFahrThIymd7JNmXUswkb2VCMPmqjnOf2xyZnpDo4wbtG9igIBH/N06ZnbUrGbu9ESoErZYHMkSP7m46DM5oklidbDzpwfo4zKqE++NEGwTb57lKWytiwlKQq7t8fzUFla0oUqDuX3FYPhVkdMQ99H0gmc+Jc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 43H90tnqE3193376, 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.95/5.92) with ESMTPS id 43H90tnqE3193376 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 17 Apr 2024 17:00:55 +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_256_GCM_SHA384) id 15.1.2507.35; Wed, 17 Apr 2024 17:00:56 +0800 Received: from [127.0.1.1] (172.21.69.94) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Wed, 17 Apr 2024 17:00:55 +0800 From: Ping-Ke Shih To: CC: Subject: [PATCH 1/2] wifi: rtw89: set WIPHY_FLAG_DISABLE_WEXT before MLO Date: Wed, 17 Apr 2024 17:00:50 +0800 Message-ID: <20240417090050.42607-1-pkshih@realtek.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: RTEXMBS02.realtek.com.tw (172.21.6.95) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback From: Zong-Zhe Yang We will support MLO on 802.11be chip, e.g. RTL8922A, in the future. At that time being, we will set WIPHY_FLAG_SUPPORTS_MLO according to chip info and FW features at runtime. But, with WIPHY_FLAG_SUPPORTS_MLO flag, cfg80211 will disable WEXT. In case inconsistent user experience, if 802.11be chip, we disable WEXT uniformly from now on. Signed-off-by: Zong-Zhe Yang Signed-off-by: Ping-Ke Shih --- drivers/net/wireless/realtek/rtw89/core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/realtek/rtw89/core.c b/drivers/net/wireless/realtek/rtw89/core.c index 52588f04155a..8c5081631d09 100644 --- a/drivers/net/wireless/realtek/rtw89/core.c +++ b/drivers/net/wireless/realtek/rtw89/core.c @@ -4509,6 +4509,9 @@ static int rtw89_core_register_hw(struct rtw89_dev *rtwdev) if (!chip->support_rnr) hw->wiphy->flags |= WIPHY_FLAG_SPLIT_SCAN_6GHZ; + if (chip->chip_gen == RTW89_CHIP_BE) + hw->wiphy->flags |= WIPHY_FLAG_DISABLE_WEXT; + hw->wiphy->features |= NL80211_FEATURE_SCAN_RANDOM_MAC_ADDR; hw->wiphy->max_scan_ssids = RTW89_SCANOFLD_MAX_SSID; -- 2.25.1