Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp580735pxb; Fri, 13 Aug 2021 01:27:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqs7Z7QS0qObPgF9wwxuOeGHi+KAWWHw0bV/IMFjC6QktYCEjbIIIuYnqMgZLi7X04Q4kK X-Received: by 2002:a92:cc0d:: with SMTP id s13mr941932ilp.95.1628843226441; Fri, 13 Aug 2021 01:27:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628843226; cv=none; d=google.com; s=arc-20160816; b=ofTHBKAz7uOllPY+U8IDsPnKP/2OiyJQ8BhyzWTTsFwmdBT4Z2qHGO62vifoBwKiaE 8MlbzYVx0hX+Gl2bWsr6T7/pfNkHSW0EhKVXBdF6C+7AUEc42ed7hGRziNODSen2FLia +KddtkH5dPsu/1eY6uomDZwtryY7TVvzNJa61tNq4uDOLPPAY1y8VEeH6pXn/mv76JaT cohv6+ml6Yq99MkIml8EfeEh8J28j5b+Lkh4+CVODK33Vit0G3/9DGARJ/y6UlbomkWj G1BmMJoUTXyse/IldE4NUwdGHxZk6Fme9LvDyA0F3uGPIt+T/FDRhlziYZyxK1AYzEZW t+eQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=YEwjQFo7Tx0VL17MD4O47XBig2dYQpejA0GRz46DLE0=; b=bN97umNJhk5rLwlv4iavuRB2QWeaRfnzyifjmQFxJyTp7GYOR9urINTYuY8tp3y/Zi QNq/aEeX1HV20OIRMoTCeWNmd/adxFwMMTwnwRcYMizYs/5UNzIzU/4A7wOB3Z29I89T ccvjyv3ZjK6BrIbK5n8h9Ua6ZlRde56iaGqot4Us+717aAUHQvgyD+T9tzi8CpSoX2dc 7akCG6J5Ad1EvCSGYhg3XgEBCg6cfLQ9B9hKAVQuvDxV0QBbQmGfXubAFBsyFWJR85Hy Vj959vN7DM2cyH6EyX32HMiyTeMe4xn/klwaRtxTCGy0Wj5AR9Z3RofpAInG7+z4xu0r d9yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="OL/8zSuU"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j10si874081jap.10.2021.08.13.01.26.54; Fri, 13 Aug 2021 01:27:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b="OL/8zSuU"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238671AbhHMI1A (ORCPT + 99 others); Fri, 13 Aug 2021 04:27:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229605AbhHMI06 (ORCPT ); Fri, 13 Aug 2021 04:26:58 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BF7BC061756; Fri, 13 Aug 2021 01:26:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: 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=YEwjQFo7Tx0VL17MD4O47XBig2dYQpejA0GRz46DLE0=; t=1628843192; x=1630052792; b=OL/8zSuUwiVu9UBCi6zNNhDY6+pVkOu5Yhl7e7FGA1mLz6Y EXvALba0lFR4yZ9+LN+13I63hW3SCtDhp/Va8RuqoSrUljprDtc26tRrkyg9rIj0L5ayXbobhzOw1 QEE739auEUre/V0c8PQKmhULSbfeqnxRyC/UIxUh3vdi6a1tR65TCixxhLBsc+oMjAcFZZjVPoLx5 N7aAlAaO2K2MfBGcPqqqiWitqsUg60Dey4WytRUh81gBVsPBf08UlPTsMGLkhSuxQubW5UyxN60Bk oCIOeqHxq863KUKXWBQRY4BlJ0fF8s81PoRaysxIrA9V+tJ7JYqI/dS6phSUChBQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1mESWH-00A9vJ-HT; Fri, 13 Aug 2021 10:26:25 +0200 Message-ID: <64b3313ec8a15229e75a29fac2fb5ba1491a2191.camel@sipsolutions.net> Subject: Re: [PATCH v2 1/2] rtl8xxxu: unset the hw capability HAS_RATE_CONTROL From: Johannes Berg To: Chris Chiu Cc: Jes.Sorensen@gmail.com, kvalo@codeaurora.org, davem@davemloft.net, kuba@kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, Linux Kernel , code@reto-schneider.ch Date: Fri, 13 Aug 2021 10:26:24 +0200 In-Reply-To: References: <20210603120609.58932-1-chris.chiu@canonical.com> <20210603120609.58932-2-chris.chiu@canonical.com> <5bb08a2db092c590119ff706ac3654de14c984fc.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2021-06-11 at 22:47 +0800, Chris Chiu wrote: > > Based on the description in > https://github.com/torvalds/linux/blob/master/net/mac80211/agg-tx.c#L32 > to L36, if we set HAS_RATE_CONTROL, which means we don't want the > software rate control (default minstrel), then we will have to deal > with both the rate control and the TX aggregation in the driver, and > the .ampdu_action is not really required.  > I don't think this is true. You'll probably still want to use the A-MPDU state machine in mac80211, etc. What you *don't* get without rate control in mac80211 is any decision on whether or not to enable A-MPDU, but that's something you can easily do elsewhere and just call ieee80211_start_tx_ba_session() at an appropriate point in time. johannes