From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.248 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796315516; b=qNgM9Cw+mFQFjsCYPuHQzsoF/0t5F9LNKjB39kCrBHVigWaxA9FPNi/QBIfRJhJI4vVq GujMNjPQ/xv2EkUSTMEX+fZZ0bs1FUhAcuH9WnyOzUGstaU/IOS+6jtd9X2BponSj1vy2 pjYOgzR1L47qzCCXlPfDWOhyaAC/9yywfGWDG9bCDecYtoCBCcVYvf25fvIv2NKFw2sd4 1NAyFu4vV2fC2SxsRlRHm7ZwUicgerhDmKlXoFA4YOkZBE74PY+AqMtA5OUW9v0HQ0Kwu pD29Iie5EVxKbDHgyE4wV7HdpFZtP0GORZGE31m6CEO+oEC/TqeoM44ahEuE6c13yug== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796315516; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:MIME-Version:Date:Content-Type: Content-Transfer-Encoding:From:Message-ID:TLS-Required:Subject:To:Cc: In-Reply-To:References; bh=rcsy/sfF4/BBpJG2IXpcL4IKoR80rOOk1/X9uoyPyvc=; b=iJiqZva0ngZSJEeGrt5EKmZyaPGQF3057A2Iecj+/20L94bFNt3jgmq6JJSBOG+DzZ7b hep3oXQ5EGn/aUZfYOHXshJv2tvLLT05OmG+aVNk70wJfyXPPdp8wzPygF7wwfJPxNLd7 N5frJn8rh5wyDxHQgYmtEYJtElE24g54a5F2xrcek9B7XMff7dekMYbCni0ZlRRPiqz4d EDTf3woskNmoB9nGCwDxlcV/CL6ZqO2znJpQP9448W+5OHFE9JNUvT/jzwTRN6nSn+oBz g+GUyTvnMhEEaX5eFL2xOdr2oWH+WgJemIP8sGC5hfG7eQElZh4XH//f+sD8DlOwHDQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=pn9HE20m; arc=none smtp.remote-ip=91.218.175.248 Received: from mta0.migadu.com (out-248.mta0.migadu.com [91.218.175.248]) (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 8938D606A322 for ; Thu, 3 Dec 2026 16:31:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8938D606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=pn9HE20m X-Envelope-To: linux-wireless@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=rcsy/sfF4/BBpJG2IXpcL4IKoR80rOOk1/X9uoyPyvc=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1796315513; v=1; x=1796920313; b=pn9HE20mPuWqreG4uAMCTD9paSgXrH0PuCca5iVPOZWMFmrBjVCc2+wFESB0xvTO7H70sLca R8yC7bbUgw2c0CGlY5Ia29tD5xF6fC4MTz7rzOaf1Vyb3ur85ocVImoL/5ETPTa8QgOEB98+GEA r10kQ1kgsVlUqcZtkVEeg2q8= X-Envelope-To: linux-wireless@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id 483646ea13b1311f; Thu, 03 Dec 2026 16:31:53 +0000 X-Mizu-Trace-ID: 483646ea13b1311f X-Migadu-Flow: FLOW_OUT 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 Date: Thu, 03 Dec 2026 16:31:53 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: "Luka Gejak" Message-ID: <51316640d0350608a477885095297e08993c28a9@linux.dev> TLS-Required: No Subject: Re: [PATCH wireless-next] wifi: mac80211: reject invalid VHT rate combinations in radiotap To: niko3x@proton.me, "Johannes Berg" Cc: linux-wireless@vger.kernel.org, "Ahmet Zeren" In-Reply-To: <20261203-mac80211-vht-valid-v1-1-2309496c48a2@proton.me> References: <20261203-mac80211-vht-valid-v1-1-2309496c48a2@proton.me> December 2, 2026 at 11:23 PM, "Ahmet Zeren via B4 Relay" wrote: >=20 >=20From: Ahmet Zeren >=20 >=20ieee80211_parse_tx_radiotap() checks a radiotap VHT rate only against > the TX MCS map, which doesn't depend on the bandwidth. Some MCS, NSS an= d > bandwidth combinations are not valid in 802.11ac, e.g. MCS 9 with one > stream at 20 MHz, but they are still passed to the driver as the rate > of the injected frame. >=20 >=20Check the combination as well, so that such frames are handled like > other frames with an unsupported radiotap rate. The invalid combination= s > are the ones minstrel_get_valid_vht_rates() excludes, plus MCS 9 with > three streams at 160 MHz. >=20 >=20Tested with mac80211_hwsim at 20, 40 and 80 MHz: frames with an inval= id > combination are no longer sent at the requested rate (hwsim sent them a= t > 6 Mbit/s), the others still are. >=20 >=20Reported-by: Luka Gejak > Closes: https://lore.kernel.org/linux-wireless/179610495595.388673.1196= 096326230618192.rtw88-v3-reply-1@linux.dev/ > Signed-off-by: Ahmet Zeren > --- Looks good to me, Reviewed-by: Luka Gejak Best regards, Luka Gejak