From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=211.75.126.72 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796010927; b=eCp32GfMqpC2bH/JxhpmcfgRFpdGtzYs9bwfOVxKKGBLBdUu+OIO4MLmaMqXti/xfaaT V24HjnTg//28B9iHYJtUyXzno3RRUUCXAgYmveprYkYR5kASKlmhZR1KHBewxpOxasYBm V9iFFSSFEP8VwC/T8Nzr63Umbp3/EmSgHMYRTl507J6b46krdF3Jds6XGwtK0pRE1V8EN drBP/jLdKxGDY6w/oT5OSywjfZ+XAY2tmRxVY56j4SZHuO8SzM3nZkRfcX/1de0g7z8UN d93glPqFcjIvSYX6Tsu1MfGMv47lGXF3voDyZgI3Z15CA9IiLdOtS4yTol3v4B3uQYA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796010927; h=DMARC-Filter:X-SpamFilter-By:DKIM-Signature:Received:Received: Received:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID: References:In-Reply-To:Accept-Language:Content-Language: x-originating-ip:Content-Type:Content-Transfer-Encoding:MIME-Version; bh=WBThO5k+sLHGCBNv6A4arUS8sOt7ITSxmSRbR8EhzQs=; b=P1bQqn6BNNeVSqKdKw7Fb/WCCGudAIDIHWgxuRQ6xSmPR75Gcdfo3uFNDoxGxNuOkGeO CgwG/feF60OqrObpbiAciVx/ryQ0mM6EXMJDEq74ZhxNgNZp+cf4Wxk5n4H2m/MVsxJnl Nqjb9R0d2d/C8/To57gYmz6fEpdQZRgIZrdnbi++RI0iSoHCEAHTlt7mrTnK3VxpGhYGE Hus6e5jWEq9rQ83iTrU4I9MgZ/Q73+5CLx0aXisp/7j+c/5QHgbwyaKfPV7iFwcnoKXqL B+w4NlVO6rIvlSDxp0+gB2Y0X+s12ESdYWDEPoxzn/iy+QiP51NgZi+zvJ/1yGo5YZw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; dkim=pass header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=vXB6qJRE; arc=none smtp.remote-ip=211.75.126.72 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70E9B606A31C for ; Mon, 30 Nov 2026 03:55:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 70E9B606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.a=rsa-sha256 header.s=dkim header.b=vXB6qJRE X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 6AU3tLC913032900, This message is accepted by code: ctloc85258 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realtek.com; s=dkim; t=1796010921; bh=WBThO5k+sLHGCBNv6A4arUS8sOt7ITSxmSRbR8EhzQs=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version; b=vXB6qJRESiBgVmGtEt69Fxr3NbIXxGoLtp01DQy3khGcGB/J9vc5TyarM/BZQboH5 Vc1tJ3xSVXu/5B+Z1c70ARbY+3g6prfi9vSXHY5FMS16CPxZRowy7gQLIBoyUL1/2G KA1t1zIgfLDytT9W0LD1KplN47QWMlvuhPmQrmzKo5D2IV/UwT85LV1zfV4ZqNqhOW Ugc66KBsDDHgJ+pXKKlNbwijX9v4b0t44hV+u6YzvoBYg0qHyMepKaEvAl560Z88f+ 6xXknA1HnYtGUu/1s/ZaI7knR34RC2RdEEEpcyqeWxg/UnGa8i09oc1xcVYbRQdLPH +nICMab9JhU2w== Received: from mail.realtek.com (rtkexhmbs02.realtek.com.tw[172.21.6.41]) by rtits2.realtek.com.tw (8.15.2/3.29/5.94) with ESMTPS id 6AU3tLC913032900 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 30 Nov 2026 11:55:21 +0800 Received: from RTKEXHMBS06.realtek.com.tw (10.21.1.56) by RTKEXHMBS02.realtek.com.tw (172.21.6.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.56; Mon, 30 Nov 2026 11:55:22 +0800 Received: from RTKEXHMBS06.realtek.com.tw ([fe80::eeeb:c765:ca73:5eef]) by RTKEXHMBS06.realtek.com.tw ([fe80::eeeb:c765:ca73:5eef%10]) with mapi id 15.02.2562.056; Mon, 30 Nov 2026 11:55:22 +0800 From: Ping-Ke Shih To: Josef Schlehofer CC: "linux-wireless@vger.kernel.org" Subject: RE: [PATCH rtw-next] wifi: rtw89: fix 6 GHz peer rate lookup Thread-Topic: [PATCH rtw-next] wifi: rtw89: fix 6 GHz peer rate lookup Thread-Index: AQHdf93kSvgbRN+CWkOtdVY0dYNozrdF/Rcg Date: Mon, 30 Nov 2026 03:55:21 +0000 Message-ID: References: <20261129084440.57834-1-pepe.schlehofer@gmail.com> In-Reply-To: <20261129084440.57834-1-pepe.schlehofer@gmail.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 Josef Schlehofer wrote: > supp_rates[] is indexed by enum nl80211_band, not enum rtw89_band. > On 6 GHz, RTW89_BAND_6G is 2 (60 GHz in nl80211), so the lookup in > rtw89_core_get_data_rate() reads the 60 GHz entry instead of the 6 GHz > one. >=20 > Convert the band before indexing supp_rates[]. >=20 > Fixes: e5307c9cd7ee ("wifi: rtw89: set data lowest rate according to AP s= upported rate") > Signed-off-by: Josef Schlehofer Acked-by: Ping-Ke Shih