Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp620904imi; Thu, 21 Jul 2022 07:46:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vylTpegx6PVMoUpqqs1vcNxl3s/XUmfqIlnIGDH5w+xySxD+OLzNfxKy0kRP3aant/odRE X-Received: by 2002:aa7:c6d5:0:b0:43b:a52b:2e9d with SMTP id b21-20020aa7c6d5000000b0043ba52b2e9dmr14495456eds.55.1658414810139; Thu, 21 Jul 2022 07:46:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658414810; cv=none; d=google.com; s=arc-20160816; b=MxyDnZSPTop8CVMt5p5D4gpx8VVJ9ErE6ANAMeNTaFOkvvp0ufj9OH2GzPT5feAVIQ Ec/KNDFW5zMsmYePGQKoJcPMIZCfEwdgI0jrZvwiSZ2GMLt+V627+vu/DRLsKPTAkWXP BNG9/dQ47URg4YTm2JD0z/b4lAJQ0YZ6HYapJIWq6wr2OvBiNxKszVOR2CBzioJILXLB WXH1l4EtEaabDkirMIt0G9QFjrL9KWjwgXdd7MoFFapeKhd+04tUNsaWRbiEd8E5a2jI /nMEENeLPySkfYgT/D/0OrimbyhjWv4dMgn3tVJLxML5Z9Q+hCWTITwZPDEHjZtkJTYJ DCYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=VgD+JbbwS6XVssBVKi+pnkYIiuY6lXE5LgvAjAlwrmI=; b=mBDOoSh3B8zUAaxP6ALEJLtzParmiQ5d18ZR6zROPgpfR/YSOUXsutuqKOp+lq/iiM 6p2GhrMUgvrVVIs4XXjRiQO1XH4vtSsfUxb9CwSyBwkVcjMitDP7eP7P/eFHXNTqk9Gd 2vRwzzOKLSZqBklxnoArmeyDwZf3Iw0eprlv17AM+cQUKQyDzYoQbMAKhXabX/bZxUYy F44mm/wDjrxyv0BoIIVSRixla65ELRDJUDwRIhj/HBX17zeyaM7+OHPAMYcAy7Ca0en3 rXIxiixLqQa9pH012Lhth2VR5JPioGq17tarhWQez1UxJqpl/BJJMLKrtgLzTAklyBCb z9lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=oj+p4G8K; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a05640235c900b0043acbf73479si2606856edc.458.2022.07.21.07.46.30; Thu, 21 Jul 2022 07:46:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=oj+p4G8K; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229829AbiGUOoN (ORCPT + 65 others); Thu, 21 Jul 2022 10:44:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbiGUOoL (ORCPT ); Thu, 21 Jul 2022 10:44:11 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 964568688C; Thu, 21 Jul 2022 07:44:10 -0700 (PDT) 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=VgD+JbbwS6XVssBVKi+pnkYIiuY6lXE5LgvAjAlwrmI=; t=1658414650; x=1659624250; b=oj+p4G8KjuwpvCtUA3E/5QscBKWsAkSlUGNEJTU43DtwITT TPE27yt8ltpIZjVArQvrU2SBrxA6Ju3TzSb7t8Lh+i4MW/Ijp9HB/EMDcuIZQItjUnMyqpXt95j75 oaKLVcqYg1njL/DNQxxsE4XXOdupWbXhMHrhOvl2yiDb/GavN2A2KDKs7kbsItr+BtHT8n6GN1fBN Z4eiSCTzzZQ14iW8rKgCQxIJ6iAqniERXpuAWmy4YL9tCLPH71oaw1Mpr8JDLSdfyFZvL5/qg7skz vCtGuTTzXq1gV1yf5SKDaYXyBGWqNlt1AmcDEzod9yEiNdvA5CD7CztWUL5V6XHA==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1oEXP1-004N5l-37; Thu, 21 Jul 2022 16:43:48 +0200 Message-ID: <76e53d3ef853fc963e7243194d7538d34a224a3a.camel@sipsolutions.net> Subject: Re: [PATCH] mac80211: Fix wrong channel bandwidths reported for aggregates From: Johannes Berg To: Linus =?ISO-8859-1?Q?L=FCssing?= Cc: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Toke =?ISO-8859-1?Q?H=F8iland-J=F8rgensen?= , Kalle Valo , Felix Fietkau , Simon Wunderlich , Sven Eckelmann , ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Linus =?ISO-8859-1?Q?L=FCssing?= Date: Thu, 21 Jul 2022 16:43:46 +0200 In-Reply-To: <20220718222804.21708-1-linus.luessing@c0d3.blue> References: <20220718222804.21708-1-linus.luessing@c0d3.blue> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.3 (3.44.3-1.fc36) MIME-Version: 1.0 X-malware-bazaar: not-scanned X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 2022-07-19 at 00:28 +0200, Linus L=C3=BCssing wrote: >=20 > Therefore fixing this within mac80211: For an aggergated AMPDU only > update the RX "last_rate" variable from the last sub-frame of an > aggregate. In theory, without hardware bugs, rate/bandwidth info > should be the same for all sub-frames of an aggregate anyway. >=20 What if other drivers do it only on the first? :) I'd be more inclined to squeeze in a "RATE_INVALID" flag or so somewhere there in the rx status, and make it depend on that. johannes