diff options
author | sam <sam@FreeBSD.org> | 2009-05-29 23:39:16 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-05-29 23:39:16 +0000 |
commit | a025c3b40e2c37699d82b576a11975bb3c4c06c3 (patch) | |
tree | 1bd79ac721b900432c62a2119dbf34f2300d28d9 /sys/net80211/ieee80211_phy.h | |
parent | 33788b835ac6a92ff1d9f3b055fef3b530c73c88 (diff) | |
download | FreeBSD-src-a025c3b40e2c37699d82b576a11975bb3c4c06c3.zip FreeBSD-src-a025c3b40e2c37699d82b576a11975bb3c4c06c3.tar.gz |
add ieee80211_isratevalid
Diffstat (limited to 'sys/net80211/ieee80211_phy.h')
-rw-r--r-- | sys/net80211/ieee80211_phy.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_phy.h b/sys/net80211/ieee80211_phy.h index 9e1f532..56b404f7 100644 --- a/sys/net80211/ieee80211_phy.h +++ b/sys/net80211/ieee80211_phy.h @@ -104,6 +104,12 @@ ieee80211_rate2phytype(const struct ieee80211_rate_table *rt, uint8_t rate) 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 |