Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1037718rdb; Mon, 19 Feb 2024 02:04:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW87ddfTGTWx++3442PsuclD6i41XqJb16xtIopIcAeTW0xOI4q50YFxTL2e1ruGPk7abPDBMpNtTUP1iaokyyKUIAf7D02q34QAPTIGQ== X-Google-Smtp-Source: AGHT+IE7rEGzTukup+WbY3HhJSWq9Oe1fmrXL303qFxYw5nCf1/NFytfbEv8PMmkTMTOz0GCRofR X-Received: by 2002:a17:90b:208:b0:299:4d4a:fbb8 with SMTP id fy8-20020a17090b020800b002994d4afbb8mr3784011pjb.35.1708337057271; Mon, 19 Feb 2024 02:04:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708337057; cv=pass; d=google.com; s=arc-20160816; b=V1dJ/xLBlM1k8QQ3GfmeQmnaGo+6EVQY+DZlZwpoC+jkoFVcP5CtZrI2pUYNszAk43 k4mjYDXoEkoLBkfFgAJkeC4MaVtXzo1tOOrtND6xTsbD23CTVOoF2lhh0EAOMw6SMpRQ IZ7zCq3PFRF5AaezE2ObueB58zGaSbR/lceZuej65UcrUJYMqG3zkkyXLqBFdPfLxR8W xBwFRb6td6ou/HCC1c4vCf/JGKRmYLVQq1EtTpp2nTCdDCvqoV0R9FKwNsGKnnEI+e+1 RLN6m7k02/vyJDR85y3xf+DQDdeC+RNGMbk9kl24MRq+sFLtxhYhqhraWyOf3Z8KPPXf N8/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=1R0qBqkNubg1ErmgJa4n1LavkTOWaXmYxdVpJl1gkvw=; fh=GImx4L9lIcAP5+98Jed1bxHo5+f9YL3KMzAQEy3dte4=; b=qRF550YA13WOHq2iJIMIGJWm2/hXcT6CoI2/JwnRlbVUPpYmPtdmTFXHSXR2lGBlpk F4cXG0boiRQvQsQxOCEGaK+gxW22Ei8XYLKrB3gd8ESw+8WxybupTyWfKFxWqi++4Gb6 FkS6UWjOKzgmJCb/WlFlWmqvlN/Wk6AZQ+IzlySZOBkmyWsff2mC8ffQbA5lpNmEtAF0 XWFdOhOLIp/Ved1hUC0xD3hYMH7DmzDGgkTRKQ3QIF+77TT1hhJCF26mvlS2eROkDzuZ 9lxyv3o/1VNN5u1cjWQTtELVKp+jzd13092vwVkWxYzYs7lLt3z84mYuLVPXQ6N0UX8l aoKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=hU1NXGSC; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-3771-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h4-20020a17090acf0400b00298c9f2a753si4294989pju.100.2024.02.19.02.04.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 02:04:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3771-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=hU1NXGSC; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-3771-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3771-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 461BE281DCD for ; Mon, 19 Feb 2024 10:04:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D50CD24B5B; Mon, 19 Feb 2024 10:04:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="hU1NXGSC" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FF8B2556D for ; Mon, 19 Feb 2024 10:04:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708337054; cv=none; b=dS1D7ExKgX5JRodEhV5I8zErDgvxQXrpRRIqfFdnXvcWeQePEwye7nz7R3WL6r6OIxuG1AqYQ+DWI3CysIteVXepK6dFn4y+8hz+WZ3165k2ZpU3p6rpaHFOJyPjivDp/aldncuWpwrwctnEMLhpLNxSwpEQABIBjkyXHB7dUuQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708337054; c=relaxed/simple; bh=1R0qBqkNubg1ErmgJa4n1LavkTOWaXmYxdVpJl1gkvw=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=dktETRHTq8lv4H0I+8LNZCIuDYD/apjrgsdfv4+UI0IUzbDp3Uy6lr3PKV6t4jXtwgxsfiiSR0VYb/dqph1iw0J7RT4Xm4MB28E1KF5SaKaJnNjMVYZiguzLRVKgvc8gYerFRequdFevxGfPiyyOtjD2yTzfHoHD0l9Y6pshDKQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=hU1NXGSC; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=1R0qBqkNubg1ErmgJa4n1LavkTOWaXmYxdVpJl1gkvw=; t=1708337051; x=1709546651; b=hU1NXGSCO+Hczke42spZcF/I+thALiP+UUfYK2lcIb42+Fd ALXrlVgNBM4+iIdHBJM4YGh3zzrSLWhZo8BFiXEBQQisjEr5VhKSo6NGb9L7EXnHpwWWcs26+mOGS bvGA423WTp8l/aFxA9QSV1HevbwHKdx8Ss0IW1pgJHY6aSvFEikFSuoEKSkZFC9Q2m+SyJn17qU/e Mx3oQ8gb6Xt3rPPjmxuMYz+msOpn9rAVMdupM8Fdo4bNg1YrMBnt2hZJSyrP57W1tLzO8s005wVyp ZVVMH5xE+iuZOzDc5x6LKZSSU+KpViU4DfYGc1aFEElkPUPf8lNgfaN4sssiYkbw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rc0VF-0000000H1oq-0TB3; Mon, 19 Feb 2024 11:04:01 +0100 Message-ID: Subject: Re: [PATCH] wifi: rtlwifi: Fix setting the basic rates From: Johannes Berg To: Ping-Ke Shih , Bitterblue Smith , "linux-wireless@vger.kernel.org" Cc: Larry Finger Date: Mon, 19 Feb 2024 11:04:00 +0100 In-Reply-To: References: <35165caf-337c-4da0-b55c-c1a7081a1456@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 (3.50.3-1.fc39) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Mon, 2024-02-19 at 07:37 +0000, Ping-Ke Shih wrote: > >=20 > > I'm not sure if this is enough. Should we also handle > > BSS_CHANGED_BASIC_RATES? But bss_conf->basic_rates is only 0xf (CCK > > rates only) and the out-of-tree Realtek drivers want to use the 6, 12, > > and 24M rates as well. If ieee80211_find_sta() returns NULL, how can we > > know if OFDM rates are supported? This whole find_sta is a bit questionable - basic rates are from the BSS configuration anyway? > > I'm also not sure if it's okay to set the basic rates later than > > originally intended, but it's still better than never. >=20 > bss_conf->basic_rates is from AP beacon basically, and only the supported= rates > with 0x80 bit are basic rates, which is minimum rates requirement to the = AP. > Thus, I think it is not suitable to consider basic rates as RTS rate.=20 >=20 But you have to consider them? Control response rates are very precisely defined in the spec, see 10.6.6.5.2 "Selection of a rate or MCS". I also have a bunch of explanations about that in the iwlmvm driver in drivers/net/wireless/intel/iwlwifi/mvm/mac-ctxt.c around line 360. johannes