summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_phy.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2008-05-12 00:32:52 +0000
committersam <sam@FreeBSD.org>2008-05-12 00:32:52 +0000
commit84c4dbca4f8c896454fea4783d326b6ae762c495 (patch)
tree8d1e3a21c6ef5e265717fe9a3c927a97d5d6b097 /sys/net80211/ieee80211_phy.h
parentf663b621286051ac42452779cf814624994dae88 (diff)
downloadFreeBSD-src-84c4dbca4f8c896454fea4783d326b6ae762c495.zip
FreeBSD-src-84c4dbca4f8c896454fea4783d326b6ae762c495.tar.gz
Update PLCP<->rate mapping support:
o correct mapping of CCK rates to PLCP; was using nonstandard Ralink values which just happened to also be used by Zydas (so went unnoticed) o change ieee80211_plcp2rate api to take a phy type instead of a flag that indicates ofdm/!ofdm o update drivers to match (restore per-driver code to map rate->PLCP) Reviewed by: sephe, weongyo, thompsa
Diffstat (limited to 'sys/net80211/ieee80211_phy.h')
-rw-r--r--sys/net80211/ieee80211_phy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_phy.h b/sys/net80211/ieee80211_phy.h
index 2b5adcf..9e1f532 100644
--- a/sys/net80211/ieee80211_phy.h
+++ b/sys/net80211/ieee80211_phy.h
@@ -140,10 +140,10 @@ uint16_t ieee80211_compute_duration(const struct ieee80211_rate_table *,
/*
* Convert PLCP signal/rate field to 802.11 rate code (.5Mbits/s)
*/
-uint8_t ieee80211_plcp2rate(uint8_t, int);
+uint8_t ieee80211_plcp2rate(uint8_t, enum ieee80211_phytype);
/*
* Convert 802.11 rate code to PLCP signal.
*/
-uint8_t ieee80211_rate2plcp(int);
+uint8_t ieee80211_rate2plcp(int, enum ieee80211_phytype);
#endif /* _KERNEL */
#endif /* !_NET80211_IEEE80211_PHY_H_ */
OpenPOWER on IntegriCloud