Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 May 2009 23:39:16 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193072 - head/sys/net80211
Message-ID:  <200905292339.n4TNdGD1090161@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Fri May 29 23:39:16 2009
New Revision: 193072
URL: http://svn.freebsd.org/changeset/base/193072

Log:
  add ieee80211_isratevalid

Modified:
  head/sys/net80211/ieee80211_phy.h

Modified: head/sys/net80211/ieee80211_phy.h
==============================================================================
--- head/sys/net80211/ieee80211_phy.h	Fri May 29 22:28:27 2009	(r193071)
+++ head/sys/net80211/ieee80211_phy.h	Fri May 29 23:39:16 2009	(r193072)
@@ -104,6 +104,12 @@ ieee80211_rate2phytype(const struct ieee
 	return rt->info[rix].phy;
 }
 
+static __inline__ int
+ieee80211_isratevalid(const struct ieee80211_rate_table *rt, uint8_t rate)
+{
+	return rt->rateCodeToIndex[rate] != (uint8_t)-1;
+}
+
 /*
  * Calculate ACK field for
  * o  non-fragment data frames



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