From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796296287; b=xZiGE5YPdtx1tzWPssjsfRTs1CpWLa/aDpKNt6vHSnn4ZhBHpYm0jl6uRcqyNJ4NVlLt t6QTUOTLIHqwoxIAc7RVBiovoC1RxRSJovEYv3XMqCnGkXP0Gw4ttYMlfS6b2nIhb0TOk 6d45ymjYktWQ/JTfcaKkqiuC7Zs1kCydwSmhIXS8zpzr3nsYm9RBddxT/DxLFbxW7Gyw0 DJbqpxm8122tv/MjTx4+NZDqMGTjXr+c+mZkwRMGmERLaccwqjkofWNGxB7fy7jL5PI6z 7rG9wkNp73JflSBwYk+FtdP8Vaah6zIVmp4C0QLV/RwUtOML7vLIs0uIJt+X4/K8/Uw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796296287; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=aX+rZGKumirUjALe/W3zeoXlPSqmPJM58XRHbX03+BE=; b=i2OCrTPj4zEr1BrQhQXb/ASbdPAZcPgU19o3p6jNSRa6gCNRGnKL8waLwjv5S2/+AQvD fhRBNwUzpMIDfynagtJJOi6TvwgQKxnsbEfkUxGSszqlAm67o6q5sh3ScsBMyV3xqJUsF 4OlXBdxGAjo3/9VTV2LyYIlukeCfYm5BfQGoj0mw+uk8iNq20o2aUBJ6PMu8JshOs21JA kb6a8qkI0EZDnzC6zXf+gYAQtP9q/7SHYEQY5oy556R+EuJKPVrPKq5qsBLtA1SmAUOwZ lK2trUhrPMgys40uj6ean5mTnbz5oUpaGWsb6Dvrqd9WmyeV8Qo6tXHHEtP8GxCBGvA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=leHNdgMU; arc=none smtp.remote-ip=209.85.128.44 Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 193BE606A322 for ; Thu, 3 Dec 2026 11:11:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 193BE606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=leHNdgMU Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-4bb64c99d2fso123336545e9.3 for ; Thu, 03 Dec 2026 03:11:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796296285; x=1796901085; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=aX+rZGKumirUjALe/W3zeoXlPSqmPJM58XRHbX03+BE=; b=leHNdgMUBlYf+M6BRRbBITw0Lzb3DGMo4MWnqCvdIo8o24be7iYZfvs9S2bbm9OkHw m3B3FaqnyDf5gBtwV2ivR9CTRWoLiEI0tRRZ/6AIvYyl+YHv4H5zBKSNRQ7CgHJe+1wq VlIfacL56FpXY/7/Hx6a91hEd2hj87tHWNtg+3MrkHBjW4aM9HiSceUvH4OHp2V/UgNW jZ5zwSN3nbAos/SkcUEK+24EEaiqYDOCcZA6TWsp1Ed2ObThnPhnuvIQIrvYc7hGbjMi hknEbGMtwJxO7I2M46Bb/IulAAuY25qaS3LamOpSIN1L5ZpNnOkCaH/q855K5272qLAC KdPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796296285; x=1796901085; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=aX+rZGKumirUjALe/W3zeoXlPSqmPJM58XRHbX03+BE=; b=zCc6VxNhEDgRADAxDEO2kfOG82TU419SpuvWloaSMcYkFG/+q5fz7KYiZFoCOnkCnO 33cD/fE7fmy6jhbF21v3iHq8elvbWUW+4LTOC4ArY9EAKcqJApRuKO+tKamZHo4A10h+ HnR7nfaxmorxRoIdfeM+b5bxF3gI2lgk8y/35xpksC1Yu21m9dJkS5NrKGWaM94X5uoC OYm68aUuTHuy92Jy5T73JmqseMFmMLUG01EAGParhu6+mMoc4f3kZYtmXHhqY4mh/H5N Y/XroL1xOh2IXDC4v+atuxj852+RS6OFF08Or0Rk+L2EoT/DmI6cCumdN+M0cSLXiFXy AMwg== X-Forwarded-Encrypted: i=1; AL+hErEVW+aL32Xc033I0Q2OX08jBuAiG5Si9fDaasrqxi7T38HjJZ3YhYvEA5GWTzZSS1U1UZNLCukn4CJCYoAjIg==@vger.kernel.org X-Gm-Message-State: APuU4Z8sNFXmIPMKN+VP+LDkxKC44KIga3E2xw6/6AefzI7SoSJafvx/ jQuW2YTWNpQmW/T1/UCMEzy4lqG+nEM+PU97VRyDGRLZ7Wdj3Mzyedi4 X-Gm-Gg: AZFdTZfxJ4MF9aJkx8jpZ1p52JSnUrzmXG/JoqnCBZmw113QNHufOF2XzycesPHDWJG hs5G2mnfwTQ5vxunLJJC+6GhhvY4nNQeLFu2Gp31fQx37LPU3lc4jtOkFT43/bZZ8Bz593ZROhE GSFhCWFzc49cUDKsP+jv/gxowg6ICmBgpdTUEZnIenYEMGtk+98k0hATkQnuEGyHAjqAvJeHj+r 3C6Lq4OmrK/xCFmfa7R/iphkY0V9N0NAxI/YbXs3mgILx0BZcVkGdNyblXhl/3H12XY0N6iuFFu JSHNoXcCMtYdJ95Hd8PpukycEa9dNsTaOH9TsdNYTs4/dWS4KK5SEJP/o5gkJCoJ+TogPJqMkYp Y/dabmpJgOCuSWRNBph+DZVhUQdj2I5YJ7Yva/OoYGcIZsz1+vwdcGaxRPPJ0HrULEivPCaX61L zIV+bPwe/yFud9FwCG4qD/l/hmK+/vHOvnQ3EnYbJXyoX0rxnRKN3KfcDYZdwznyW/d5OIDHoQo LqHkwAoS8oqXOqWQgulZTVHL0REW5dwtsqbAvYOuFA6DrSfRZ8z6fAvIJ7P/ERGE9r7IPshSHZF GUw6tIb+gPbnBz+hWDMNx5z1ux9Ezdteq5yv24qbiR5/Kv8aB1FL96evloLaNwnSrxklb7/7zYU 6mkF9sTRvUNHW5FNX9zOIjoU7ZbBDoOKAwDU1GGbZyqbRdzPwOzgCr5xvBVJE30vkEaRfaw+Jw2 E98dsdN4ruezGkypnMUX7WRBUUTpVPWv+PrZj7gxPzmsBsjakP5hEf6g== X-Received: by 2002:a05:600d:82c5:b0:4a3:5aee:2c25 with SMTP id 5b1f17b1804b1-4bb88822642mr980973425e9.31.1796296285282; Thu, 03 Dec 2026 03:11:25 -0800 (PST) Received: from localhost.localdomain (dynamic-2a00-1028-8388-a84e-44ee-992b-710c-ec8e.ipv6.o2.cz. [2a00:1028:8388:a84e:44ee:992b:710c:ec8e]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bbdff50723sm101339595e9.0.2026.12.03.03.11.24 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 03 Dec 2026 03:11:24 -0800 (PST) From: Josef Schlehofer To: Ping-Ke Shih Cc: Zong-Zhe Yang , linux-wireless@vger.kernel.org Subject: [PATCH rtw-next v2 0/3] wifi: rtw89: allow AP mode on 6 GHz Date: Thu, 3 Dec 2026 12:11:20 +0100 Message-ID: <20261203111123.62650-1-pepe.schlehofer@gmail.com> X-Mailer: git-send-email 2.54.0 X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit rtw89 currently refuses to start an AP on 6 GHz. This series adds support for it. I tested it with a Cudy BE6500 (RTL8922AU) as the 6 GHz AP on a Turris Omnia running OpenWrt. Patch 1 advertises the HE 6 GHz antenna pattern consistency bits that hostapd requires by default. Patch 2 gives P2P interfaces the HE and EHT capabilities of station and AP. Patch 3 reads the AP's 6 GHz power type from the beacon's HE Operation element, since mac80211 does not set a power type for AP interfaces. It accepts LPI and VLP at AP start, and other power types make the start fail. Changes in v2: - Patch 2 is new, suggested by Zong-Zhe. - Patch 3 reuses reg_6ghz_power, the ap_reg_power field is gone. - Patch 3 handles the AP inside rtw89_reg_6ghz_recalc(), and mac80211.c only calls that function. - Patch 3 no longer refuses a P2P GO on 6 GHz. v1: https://lore.kernel.org/linux-wireless/20261129120744.88178-1-pepe.schlehofer@gmail.com/ Testing: RTL8922AU with firmware 0.35.80.3, using OpenWrt main's rtw89 driver (backports from 7.2, plus commit a8cddb62c573 ("wifi: rtw89: check return values in rtw89_ops_start_ap()"), commit 154d3668b645 ("wifi: rtw89: set RA init rate level when the station RSSI is known") and my two 6 GHz fixes from rtw-next). The series also builds on rtw-next (arm64, W=1). With patch 2, a phone that joins a P2P GO started by wpa_supplicant gets HE on 5 GHz and on 6 GHz. Without it the GO sent to the phone at HT rates on 5 GHz and at 54 Mbit/s on 6 GHz. The P2P client side was not tested. With the reworked patch 3 I reran these AP tests: start with LPI and VLP, a refused standard power beacon, power type changes and a channel switch on a running 6 GHz AP, and the failed-start unwind and the blocked-VLP fallback with a temporary patch. That run still had the P2P check. After dropping it I reran the starts and the power type changes. The reset when an AP leaves 6 GHz is still compile-tested only. The two questions from the v1 cover letter are still open: the fallback when policy blocks VLP, and whether the Rx bit could stay set with Tx path diversity. Josef Schlehofer (3): wifi: rtw89: advertise HE 6 GHz antenna pattern consistency wifi: rtw89: share HE and EHT capabilities with P2P interfaces wifi: rtw89: allow AP mode on 6 GHz drivers/net/wireless/realtek/rtw89/core.c | 12 ++- drivers/net/wireless/realtek/rtw89/mac80211.c | 32 +++--- drivers/net/wireless/realtek/rtw89/regd.c | 101 +++++++++++++++++- 3 files changed, 127 insertions(+), 18 deletions(-) -- 2.54.0 (Apple Git-157)