add ieee80211_isratevalid

This commit is contained in:
sam 2009-05-29 23:39:16 +00:00
parent 33788b835a
commit a025c3b40e

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