Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp356213ybl; Wed, 11 Dec 2019 00:32:58 -0800 (PST) X-Google-Smtp-Source: APXvYqxzCN0RrcoK0CZMbMXtF7wGlAPfZQkLFD46lURzQgpC5z9qoEV/1nBvsPeQy+Y0yzI5694y X-Received: by 2002:a9d:2028:: with SMTP id n37mr1486467ota.127.1576053178135; Wed, 11 Dec 2019 00:32:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576053178; cv=none; d=google.com; s=arc-20160816; b=AbyiprWazM6Au5YaIS4dSB2ABB09CX1WAFfLH7VGzZpKnHXb0ay7spv0Kd1+Cd2IL0 oiSP1K4TIlpwqXjEHYrqQ7SUigR3n7EHY4Wa0SY9Be4+1ZLU8KMPg0rBuF3zbddKJq5/ cD7iay+VG+rvXgrK+9AGOaFZl6l35PE7Wiuw7mkh1whjIlRtuaVo3UX8Wy2nEVDXpzn9 K0uh/pXc4KNFW9giZXqZQH4RqkavfpOcLJB8yD37dPgNHU/V9HegdIIb4UYswqS0iNii ulaRV6IqXPbWYewuBsXguPC28xngSAjoBnpyoRCRvdL+WY1Tv6LcCfjYPBA0G60wcWyB uewg== 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=85nphYdNpzKYACglENVO+o4uX+C/Lxy4/7pAx8S/9LQ=; b=i4tebWYy6otIr7Onn4WIatL+pSPuA4vP356N/eeFIJAu88Epk6zVGq3dHS8iJ8GcT/ dGDflc0R2UOcaFUs2Gbl8APH11ZF6mWa1EoQSxJ1C3kCwddKCwSHf4N/iwV9nbJS7xJR H/uo3PliRgVjDUAyaHik81e3of5zmQ85q5aUQW/MQTasW1DyO1s3lv/r9obuaPN2Pbai 3HUDeFX60qmOs3RCA+G0CF9Apci9K9VXBConkALNOvNfYpbDhQEFj70qWPXSC6neJgVa memgmh43XJWs+IrFGO+WeeKFu7Cm6tRV0yTS677R3pWXhzlcSPB5B2eLmq7jJwdyTE2o LhAg== 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 7si893761otk.79.2019.12.11.00.32.38; Wed, 11 Dec 2019 00:32:58 -0800 (PST) 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 S1727829AbfLKIch (ORCPT + 99 others); Wed, 11 Dec 2019 03:32:37 -0500 Received: from s3.sipsolutions.net ([144.76.43.62]:46230 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726845AbfLKIch (ORCPT ); Wed, 11 Dec 2019 03:32:37 -0500 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.3) (envelope-from ) id 1iexQ2-003Uuv-G0; Wed, 11 Dec 2019 09:32:26 +0100 Message-ID: <4cf0c2a4a2d1cd92dff4f1a791d74523e446cf01.camel@sipsolutions.net> Subject: Re: Correct radiotap header for 802.11ad From: Johannes Berg To: Guy Harris Cc: "radiotap@netbsd.org" , Simon Barber , Richard Sharpe , linux-wireless@vger.kernel.org, Maya Erez , wil6210@qti.qualcomm.com Date: Wed, 11 Dec 2019 09:32:25 +0100 In-Reply-To: References: <38F46E1D-1C4A-48DC-A906-9522006E8474@alum.mit.edu> <1606812C-649C-4C06-ABE0-AE2F4474BCD0@alum.mit.edu> <1440402013.3735.1.camel@sipsolutions.net> <55DE44EB.6080603@superduper.net> <126B842D-05EA-4510-BC9B-DB1A4AABEC12@alum.mit.edu> <1135A126-6A5A-4C84-A52D-13C0387609CC@alum.mit.edu> <1442507879.2821.9.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 (3.34.2-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 ++ for the DMG discussion On Tue, 2019-12-10 at 15:51 -0800, Guy Harris wrote: > On Sep 17, 2015, at 9:37 AM, Johannes Berg wrote: Reviving an old thread :-) > > Not being familiar with DMG, I can't really comment on this. > > > > It does sound like we need *some* new field though, be it either a DMG > > field or a PLCP SIGNAL field, or perhaps even both. > > > > Going back to the original thread though, I think using the MCS field > > is quite wrong. > > But a presumably-Linux system does appear to use it; see Wireshark bug > > https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=16272 > > For now, I'll throw a hack into Wireshark to treat a signal >= 60 GHz > as meaning 11ad, I don't think that's quite right - you'll need to do something like >= 56 GHz. > but, again, should there be additional fields for 11ad? I would think so. On the one hand I think (and looking at the spec seems to confirm this) that basically DMG uses an MCS index. Now, the MCS radiotap field was designed for HT and has a lot of things that are not applicable (GI, STBC, etc.) OTOH, there are DMG-specific things that probably ought to be captured by a proper sniffer, like the PPDU type, training length, etc. Also, there's the thing with the "Extended SC MCS Indication field", which really also ought to be captured. Sadly, the only Linux implementation didn't bother adjusting any of this even in the Linux general stack (and I didn't pay enough attention to it at the beginning), so even the rate reporting to userspace is just the MCS index. This might actually be sufficient for the current uses (there's a conversion function to bandwidth too), though it doesn't seem quite applicable to the whole spec. For both the Linux userspace reporting and radiotap then, this completely ignores the existence of the MCSes 9.1 and 12.1-12.6, which cannot be captured in either format right now. Maybe the extended SC MCSes are just not used by equipment in the field? In any case, to capture DMG properly I'd say we need a new radiotap field with at least * (base) MCS * Extended SC MCS bit and it should probably optionally cover the other possible fields as well * Scrambler Initialization * Length (?) * Additional PPDU bit * PPDU type bit * Training Length * Beam Tracking Request * Last RSSI * Turnaround johannes