Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp1178840rdb; Wed, 24 Jan 2024 07:12:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1PoCxYbdb1RmVcyaWcxt3FWWYupMYQl2sOKq1Mabt6db9jEIlVY5Th2IN2hmBmdrt1FQD X-Received: by 2002:a50:fc04:0:b0:55c:7d37:7d9d with SMTP id i4-20020a50fc04000000b0055c7d377d9dmr1385046edr.2.1706109134796; Wed, 24 Jan 2024 07:12:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706109134; cv=pass; d=google.com; s=arc-20160816; b=YxHI5Cxmvf1P48oqpY0BQHkLcmKzLoZfrOFcSsZDewZ+IWXLbb5/LuYOgdqQt0ECfs 2QhNVf4d5m2Z8C5noNlOgjAnMyVH5Y3MdWoeXjUnzY7dihLq0/M/kPHD1JOpTpTTLff6 VjmjlXtddsOXm1yKeO1HOA1tA8R8/REXhu+XjGYLAWTKUFuRh/pHZLsU0loDydKDpHme URpM+monl+T4nWLNgw3Kp31zj3ky+tgYu+YZmQPdSTK94tFVtbull85N3OnMGQRMQEmF O8+wTarjBANMhzQUlfLcKLopaFkUq+JVogFfoOmAGBUlXLAAF5iyyarYYuKbUWz1LpMp q0Ig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:subject:autocrypt:from :references:cc:to:content-language:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=GkUFGPpI0LfVAKqKCmj+3qzto/Qsd4NBU/+i4Nzpi54=; fh=zqcHI0KvVgt3Oc2I/X7j/rc7mDY6VC5oa15JMqG9U1I=; b=Fz2lM0egbb8fjdSYNGrlk+EtG+ITDVBTYHOp6KCRvS9StRA0YUrlfh8JZZodAIkgEb 9bM7ML8+ZYkWzI4BZLyy6iIKIn4xdTE1h7wDS4m2Fb4d+7LeNs+afTmoW5EFDmhx2o2w tCCPZ+KpQEvTYW7A3lQWJ1HHOg/DidIyVLU7WOo9xE8j164uuz44XBRlr5CVBouRrvNE q3zoIhpiBOWU/Ftf+h1L27ncDAmMQAHrZeYZUyq3BPnVg86PS2PODTmFyRbQewEFRClz jd4TvPXlXpoclNKrO0KLurA6Pu7IjYCWGZB6KnSIROdQMPz7/m+5ltlteficdNNYV27k ELGg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b="A2b7W/L4"; arc=pass (i=1 spf=pass spfdomain=yandex.ru dkim=pass dkdomain=yandex.ru dmarc=pass fromdomain=yandex.ru); spf=pass (google.com: domain of linux-wireless+bounces-2449-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2449-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d8-20020a50fb08000000b0055c298ff3bdsi3602835edq.369.2024.01.24.07.12.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jan 2024 07:12:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2449-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@yandex.ru header.s=mail header.b="A2b7W/L4"; arc=pass (i=1 spf=pass spfdomain=yandex.ru dkim=pass dkdomain=yandex.ru dmarc=pass fromdomain=yandex.ru); spf=pass (google.com: domain of linux-wireless+bounces-2449-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2449-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yandex.ru 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2D6861F254CB for ; Wed, 24 Jan 2024 15:11:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1216B18624; Wed, 24 Jan 2024 15:11:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=yandex.ru header.i=@yandex.ru header.b="A2b7W/L4" X-Original-To: linux-wireless@vger.kernel.org Received: from forward501b.mail.yandex.net (forward501b.mail.yandex.net [178.154.239.145]) (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 C905C17562 for ; Wed, 24 Jan 2024 15:11:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=178.154.239.145 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706109085; cv=none; b=Gy42n3xOjvqIj8KGn6+wYaz5IHMS7q3XwYJhB0C800VmVsuhQXeZCN8zcOFI2KmIkUUw5X7gTkBB6Mb/LL9SI8PSu9Gwi0urPasMmxAU1iVRQD/CJzdfuNr2uiZT4OHpQN/LkkZg0pg520pkNkyeU/P47KFkwH49p4KTiZXapzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706109085; c=relaxed/simple; bh=XP6xQw4+tePna0EBHak2OWe/T9cZUUVZYp2GXY+LuHE=; h=Message-ID:Date:MIME-Version:To:Cc:References:From:Subject: In-Reply-To:Content-Type; b=qUvzAdbF3XPEkNiZ3OECKXHvmy5G4PhWilYSj2iLqcbFo4x3VFFTudu+WQ2cbGXbUq2281H+e0yAYkSLjqlfNeS3zxlwuFiFaKnUihRWvupFWSKbz4nlGHVf0JeMee+PPLgDfPLBhv/cZ4Y4VZxfhXThNBfuzY6wq7TOvNEv5Y8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yandex.ru; spf=pass smtp.mailfrom=yandex.ru; dkim=pass (1024-bit key) header.d=yandex.ru header.i=@yandex.ru header.b=A2b7W/L4; arc=none smtp.client-ip=178.154.239.145 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yandex.ru Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yandex.ru Received: from mail-nwsmtp-smtp-production-main-37.myt.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-37.myt.yp-c.yandex.net [IPv6:2a02:6b8:c12:2c09:0:640:19b6:0]) by forward501b.mail.yandex.net (Yandex) with ESMTP id 91A6461463; Wed, 24 Jan 2024 18:11:18 +0300 (MSK) Received: by mail-nwsmtp-smtp-production-main-37.myt.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id GBVgF1DXqiE0-NQvX1yT6; Wed, 24 Jan 2024 18:11:17 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1706109077; bh=GkUFGPpI0LfVAKqKCmj+3qzto/Qsd4NBU/+i4Nzpi54=; h=In-Reply-To:To:Cc:References:From:Subject:Date:Message-ID; b=A2b7W/L4N5yXfA8xUPkGZKOiuuBrkpHA5HoCFo7blq9avIUzlWf2yTmMXafeM0L/m BSDD9LcPcHsdNPhtEo1NmuRvwelcJTOrRfyV8Zc0iubecLTu7UV2FebcvPWh3MKde8 NLGrhG93IVI6qvIhTFm7Que4m3MVko3vu4bTzr6g= Authentication-Results: mail-nwsmtp-smtp-production-main-37.myt.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <6499241c-8508-45de-816b-f36c1a202801@yandex.ru> Date: Wed, 24 Jan 2024 18:11:16 +0300 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: Johannes Berg Cc: Felix Fietkau , Kalle Valo , linux-wireless@vger.kernel.org, lvc-project@linuxtesting.org, syzbot+fdc5123366fb9c3fdc6d@syzkaller.appspotmail.com References: <20240117124848.120438-1-dmantipov@yandex.ru> <9433d29b643e4cce3a9354282405288c75c45e02.camel@sipsolutions.net> <58970b94a314414402a932576ec54188c0675016.camel@sipsolutions.net> From: Dmitry Antipov Autocrypt: addr=dmantipov@yandex.ru; keydata= xsDNBGBYjL8BDAC1iFIjCNMSvYkyi04ln+5sTl5TCU9O5Ot/kaKKCstLq3TZ1zwsyeqF7S/q vBVSmkWHQaj80BlT/1m7BnFECMNV0M72+cTGfrX8edesMSzv/id+M+oe0adUeA07bBc2Rq2V YD88b1WgIkACQZVFCo+y7zXY64cZnf+NnI3jCPRfCKOFVwtj4OfkGZfcDAVAtxZCaksBpTHA tf24ay2PmV6q/QN+3IS9ZbHBs6maC1BQe6clFmpGMTvINJ032oN0Lm5ZkpNN+Xcp9393W34y v3aYT/OuT9eCbOxmjgMcXuERCMok72uqdhM8zkZlV85LRdW/Vy99u9gnu8Bm9UZrKTL94erm 0A9LSI/6BLa1Qzvgwkyd2h1r6f2MVmy71/csplvaDTAqlF/4iA4TS0icC0iXDyD+Oh3EfvgP iEc0OAnNps/SrDWUdZbJpLtxDrSl/jXEvFW7KkW5nfYoXzjfrdb89/m7o1HozGr1ArnsMhQC Uo/HlX4pPHWqEAFKJ5HEa/0AEQEAAc0kRG1pdHJ5IEFudGlwb3YgPGRtYW50aXBvdkB5YW5k ZXgucnU+wsEPBBMBCAA5FiEEgi6CDXNWvLfa6d7RtgcLSrzur7cFAmBYjL8FCQWjmoACGwMF CwkIBwIGFQgJCgsCBRYCAwEAAAoJELYHC0q87q+34CEMAKvYwHwegsKYeQokLHXeJVg/bcx9 gVBP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KCRC2BwtKvO6vtwe/C/40zBwVFhiQTVJ5v9heTiIwfE68ZIKVnr+tq6+/z/wrRGNro4PZ fnqumrZtC+nD2Aj5ktNmrwlL2gTauhMT/L0tUrr287D4AHnXfZJT9fra+1NozFm7OeYkcgxh EG2TElxcnXSanQffA7Xx25423FD0dkh2Z5omMqH7cvmh45hBAO/6o9VltTe9T5/6mAqUjIaY 05v2npSKsXqavaiLt4MDutgkhFCfE5PTHWEQAjnXNd0UQeBqR7/JWS55KtwsFcPvyHblW4be 9urNPdoikGY+vF+LtIbXBgwK0qp03ivp7Ye1NcoI4n4PkGusOCD4jrzwmD18o0b31JNd2JAB hETgYXDi/9rBHry1xGnjzuEBalpEiTAehORU2bOVje0FBQ8Pz1C/lhyVW/wrHlW7uNqNGuop Pj5JUAPxMu1UKx+0KQn6HYa0bfGqstmF+d6Stj3W5VAN5J9e80MHqxg8XuXirm/6dH/mm4xc tx98MCutXbJWn55RtnVKbpIiMfBrcB8= Subject: Re: [PATCH] wifi: mac80211: don't ask rate control with zero rate mask if scanning In-Reply-To: <58970b94a314414402a932576ec54188c0675016.camel@sipsolutions.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 1/19/24 20:19, Johannes Berg wrote: > I was trying to let you come up with a patch for learning, but I think > at this point just making one illustrates better what I'm thinking ... > Here's one, but I haven't even compiled this: Hmm... this: > --- a/net/mac80211/tx.c > +++ b/net/mac80211/tx.c > @@ -701,7 +701,9 @@ ieee80211_tx_h_rate_ctrl(struct ieee80211_tx_data *tx) > txrc.bss_conf = &tx->sdata->vif.bss_conf; > txrc.skb = tx->skb; > txrc.reported_rate.idx = -1; > - txrc.rate_idx_mask = tx->sdata->rc_rateidx_mask[info->band]; > + > + if (!(info->control.flags & IEEE80211_TX_CTRL_SCAN_TX)) > + txrc.rate_idx_mask = tx->sdata->rc_rateidx_mask[info->band]; > > if (tx->sdata->rc_has_mcs_mask[info->band]) > txrc.rate_idx_mcs_mask = leaves 'rate_idx_mask' unset (i.e. zero) even for band 0 and then causes the same WARN_ONCE() even earlier (before switching to band 1). Dmitry