Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Sep 2015 02:24:14 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r288084 - head/sys/net80211
Message-ID:  <201509220224.t8M2OEbw075463@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Tue Sep 22 02:24:13 2015
New Revision: 288084
URL: https://svnweb.freebsd.org/changeset/base/288084

Log:
  Define a rateval macro that drivers tend to hard-code.
  
  Submitted by:	Andriy Voskoboinyk <s3erios@gmail.com>
  Differential Revision:	https://reviews.freebsd.org/D3705

Modified:
  head/sys/net80211/ieee80211.h

Modified: head/sys/net80211/ieee80211.h
==============================================================================
--- head/sys/net80211/ieee80211.h	Tue Sep 22 01:45:43 2015	(r288083)
+++ head/sys/net80211/ieee80211.h	Tue Sep 22 02:24:13 2015	(r288084)
@@ -815,6 +815,7 @@ struct ieee80211_csa_ie {
 /* rate set entries are in .5 Mb/s units, and potentially marked as basic */
 #define	IEEE80211_RATE_BASIC		0x80
 #define	IEEE80211_RATE_VAL		0x7f
+#define	IEEE80211_RV(v)			((v) & IEEE80211_RATE_VAL)
 
 /* ERP information element flags */
 #define	IEEE80211_ERP_NON_ERP_PRESENT	0x01



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509220224.t8M2OEbw075463>