1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

add ieee80211_isratevalid

This commit is contained in:
Sam Leffler 2009-05-29 23:39:16 +00:00
parent 9964058e79
commit d0c57ece38
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193072

View File

@ -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