From 1a45c53f3dc1d18f0d03665963e38f34e3a8b8e8 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Sat, 8 Oct 2016 14:42:37 +0000 Subject: Allow writing an MCS index to radiotap's rate field. The format we use is the same as FreeBSD is using and is already recognized by third party tools. For this file a documentation change is all that's needed. ok kettenis --- sys/net80211/ieee80211_radiotap.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/net80211/ieee80211_radiotap.h b/sys/net80211/ieee80211_radiotap.h index 20b9172d72e..5e0921776bf 100644 --- a/sys/net80211/ieee80211_radiotap.h +++ b/sys/net80211/ieee80211_radiotap.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_radiotap.h,v 1.13 2016/01/12 09:28:09 stsp Exp $ */ +/* $OpenBSD: ieee80211_radiotap.h,v 1.14 2016/10/08 14:42:36 stsp Exp $ */ /* $FreeBSD: src/sys/net80211/ieee80211_radiotap.h,v 1.3 2004/04/05 22:13:21 sam Exp $ */ /* $NetBSD: ieee80211_radiotap.h,v 1.9 2004/06/06 04:13:28 dyoung Exp $ */ @@ -90,9 +90,10 @@ struct ieee80211_radiotap_header { * For frequency-hopping radios, the hop set (first byte) * and pattern (second byte). * - * IEEE80211_RADIOTAP_RATE u_int8_t 500kb/s + * IEEE80211_RADIOTAP_RATE u_int8_t 500kb/s or MCS index * - * Tx/Rx data rate + * Tx/Rx data rate in units of 500kb/s. If the high bit (0x80) is set + * the remaining bits contain an MCS index instead of a date rate. * * IEEE80211_RADIOTAP_DBM_ANTSIGNAL int8_t decibels from * one milliwatt (dBm) -- cgit v1.2.3