Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp317628ybb; Wed, 1 Apr 2020 00:10:34 -0700 (PDT) X-Google-Smtp-Source: APiQypLsH77U1uHoYkXn9kxGUfOJ5g/jb1Iom0TwwlY0GHjt0USADxp72uKgSM1pndU9HS+gajcW X-Received: by 2002:aca:c4d3:: with SMTP id u202mr1943495oif.20.1585725034136; Wed, 01 Apr 2020 00:10:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585725034; cv=none; d=google.com; s=arc-20160816; b=MOmfhrGX5Wxww/B7HqtkXRFJ3a64Jez/zGPfhUjD3O/Xxnz9fFQJwtjbziENOO9cds sLG3+vSaFEMOG5hmbTzQqClGHscVkiMo0YVkpeFpX/I2XzddkwjeVRJWTseX7L+9NOQ0 AGElsPjRcSxJbRqEJUt3lseGtQuAusteBQGfWNIvlvLBCI/UoW4Z7cK5zOiY1wi/iSQE xUhGESp3FTrlu62we4nkv6HQg+kRHH0qhclFi3ZOH+G6Ro8ewIKJwHZZ7LdglN+cnBkJ MTEd6dXXD2gfxn+Bv8fx2S4zZ+PYgMjdg0y8TfihAoHm6kQIbPkAKDeQiZDNtvBnYe3e rxZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=qV3vbwFFyEFTqdQRzzx4verxvSSX/rPpxXyPaVSEv+U=; b=odcQgTDlbnC7fcqlrPTfMGGzebdD2sV3qXrIcXiVN1Oht1Zio5WDgVzhSRQ/XaGt0+ vFjOAEhlXPp7oU+rnvbyYtk9hQbmLa25kj3TfleBgnrrRwFvzOPEC44TMgy5ewpwc3Qi E0mxD1Q3R+0LsI90412FaqFPoJTMjqDEaLFiCddTF34ca9MXXoHi266xo6+IFlLd8n9o VrAvjqlA2n210z9h2MX7RAZi2Kr0ZyGjbaMA7WaZ50bqzQnR1DniTrvlawECO8SkbaHW eJXHnvdoyciR4Exxy0KEdgMZFORI3otRrbqOu29maCvWWVT6k80oqbbYgsTogGCzOFLK AHsw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 79si461135oty.232.2020.04.01.00.10.20; Wed, 01 Apr 2020 00:10:34 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731951AbgDAHI6 (ORCPT + 99 others); Wed, 1 Apr 2020 03:08:58 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:33566 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731792AbgDAHI6 (ORCPT ); Wed, 1 Apr 2020 03:08:58 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1jJXUe-00BTOj-6C; Wed, 01 Apr 2020 09:08:56 +0200 Message-ID: Subject: Re: [RFC 4/7] mac80211: add freq_offset to RX status From: Johannes Berg To: Thomas Pedersen Cc: linux-wireless Date: Wed, 01 Apr 2020 09:08:55 +0200 In-Reply-To: <20200401062150.3324-5-thomas@adapt-ip.com> References: <20200401062150.3324-1-thomas@adapt-ip.com> <20200401062150.3324-5-thomas@adapt-ip.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, 2020-03-31 at 23:21 -0700, Thomas Pedersen wrote: > RX status needs a KHz component, so add freq_offset. We > can make ampdu_reference u16 since it is probably > sufficient to be able to distinguish 64k different > A-MPDUs. Is that necessary? Reads like we have 2 bytes free there? And we only need 13 bits for the frequency (up to 8192 MHz, 60 GHz isn't supported), so we could take out a few fractional ones for the S1G part? Dunno, I mean, we probably also don't need the A-MPDU reference, even radiotap doesn't make much representation on this, but it sort of implies that it should be unique in a capture file, for which 16 bits wouldn't be enough? (should probably clarify that though and say that you should look only "close by" or something?) johannes