Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1942782ybi; Thu, 18 Jul 2019 00:46:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqymnW6zZ5b2QOpjeuTtLwzZjXFH+6n4JCwtK7pHFplD7AojSnKtqgncuQCSRybYui6RGlT6 X-Received: by 2002:a65:4507:: with SMTP id n7mr44410312pgq.86.1563435973389; Thu, 18 Jul 2019 00:46:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563435973; cv=none; d=google.com; s=arc-20160816; b=NVR7xYxluI38+8+cphdGtvvp3I/tt1C9c8xn0y4npZTbWMoLhgHi3cEIyXJfYlurqR 3EAnr3XgEPqBheor8je7rizT8touW8/MPZeFszi8MqRHpdt2CAEgVQ/nNiD8ZfvLtZJ3 lxWxKZKjGjv1h+6ojBkOUk4c7ZDun2KC0moQL5EAcZoGq/J1ZpOVT5m4yYg7jtRT/nGQ SQWsL1xcz7rto4umRFO/u2H3dJHmWxHv7QPZ9aDxD/3ArGPaLodlt8cH8pcDZPfxnd1X yvo3I6jU5TnkurOUr7mvkCH0qCGBy5/KXwPqIcfoLFCm6+8D264ecpCi3kPkP+AWmIrE w86w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=/SX1bG18nC0+dbl9stA1tR/k7nBY7uxpbbnQbzPkimU=; b=rboOjYo8IWuDySREPmR+ovq2ZjCySQ8+DzzndtCVK+VbWRPPG1H2C2Pn41avYUXhmy iZRfRCFs51L/1Gys06nNt90hO7ydYxMjDanh56pOpk7/1PKqZ8cmYBhGX9ve30Ys019B aWRvU6w7F1zBimqgLfFZDTtRyda5TFyxFDTXOqk04ZZdLKI90M709Vz55erFDXLyuLWZ pBbd71Ik/wirOsi0ACLAHhA2jKa4SnR8bB8tmSI3H/IILxH0KvlC2JZJWyyUve6QX5V0 N6g7oBFP7ozmPYd9oncSNQKGxdUl8hM3o413SU+Z2hD96Y0+A5GtrDPgtL83OgvYzJfj phgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si1548744pld.245.2019.07.18.00.45.44; Thu, 18 Jul 2019 00:46:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726485AbfGRHpZ (ORCPT + 99 others); Thu, 18 Jul 2019 03:45:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37852 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726386AbfGRHpZ (ORCPT ); Thu, 18 Jul 2019 03:45:25 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A906CC057E3C; Thu, 18 Jul 2019 07:45:24 +0000 (UTC) Received: from localhost (unknown [10.40.205.9]) by smtp.corp.redhat.com (Postfix) with ESMTP id F0DAC5D9CC; Thu, 18 Jul 2019 07:45:23 +0000 (UTC) Date: Thu, 18 Jul 2019 09:45:23 +0200 From: Stanislaw Gruszka To: Brian Norris Cc: Johannes Berg , linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, Yan-Hsuan Chuang Subject: Re: [PATCH] mac80211: don't warn about CW params when not using them Message-ID: <20190718074522.GA13713@redhat.com> References: <20190718015712.197499-1-briannorris@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190718015712.197499-1-briannorris@chromium.org> User-Agent: Mutt/1.11.3 (2019-02-01) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 18 Jul 2019 07:45:25 +0000 (UTC) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, Jul 17, 2019 at 06:57:12PM -0700, Brian Norris wrote: > ieee80211_set_wmm_default() normally sets up the initial CW min/max for > each queue, except that it skips doing this if the driver doesn't > support ->conf_tx. We still end up calling drv_conf_tx() in some cases > (e.g., ieee80211_reconfig()), which also still won't do anything > useful...except it complains here about the invalid CW parameters. > > Let's just skip the WARN if we weren't going to do anything useful with > the parameters. > > Signed-off-by: Brian Norris > --- > Noticed because rtw88 does not currently implement .conf_tx() > > I think there are several ways to slice this one. I picked one fix, > which may not be the best one. Fix looks fine for me. However I think rtw88 should implement drv_conf_tx() because parameters can be different on different network setups and maybe more important WMM/AC parameters become quite recently part of ETSI regulatory. Stanislaw