summaryrefslogtreecommitdiffstats
path: root/sys/net/if_media.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-12-27 18:46:18 +0000
committersam <sam@FreeBSD.org>2006-12-27 18:46:18 +0000
commit4442f89b49a898383c874def50a11aab97b03845 (patch)
tree8bd925a7f6c33cd28325df02b1a6153b8b091d2d /sys/net/if_media.h
parent03269f3b4c923667476d52b5c6c3711ae678d017 (diff)
downloadFreeBSD-src-4442f89b49a898383c874def50a11aab97b03845.zip
FreeBSD-src-4442f89b49a898383c874def50a11aab97b03845.tar.gz
First cut at half/quarter-rate 11a channel support (e.g. for use
in the Public Safety Band): o add channel flags to identify half/quarter-rate operation o add rate sets (need to check spec on 4Mb/s in 1/4 rate) o add if_media definitions for new rates o split net80211 channel setup out into ieee80211_chan_init o fixup ieee80211_mhz2ieee and ieee80211_ieee2mhz to understand half/quarter rate channels: note we temporarily use a nonstandard/hack numbering that avoids overlap with 2.4G channels because we don't (yet) have enough state to identify and/or map overlapping channel sets o fixup ieee80211_ifmedia_init so it can be called post attach and will recalculate the channel list and associated state; this enables changing channel-related state like the regulatory domain after attach (will be needed for 802.11d support too) o add ieee80211_get_suprates to return a reference to the supported rate set for a given channel o add 3, 4.5, and 27 MB/s tx rates to rate <-> media conversion routines o const-poison channel arg to ieee80211_chan2mode
Diffstat (limited to 'sys/net/if_media.h')
-rw-r--r--sys/net/if_media.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/net/if_media.h b/sys/net/if_media.h
index 81a82ca..48897e2 100644
--- a/sys/net/if_media.h
+++ b/sys/net/if_media.h
@@ -198,6 +198,9 @@ uint64_t ifmedia_baudrate(int);
#define IFM_IEEE80211_OFDM72 18 /* OFDM 72Mbps */
#define IFM_IEEE80211_DS354k 19 /* Direct Sequence 354Kbps */
#define IFM_IEEE80211_DS512k 20 /* Direct Sequence 512Kbps */
+#define IFM_IEEE80211_OFDM3 21 /* OFDM 3Mbps */
+#define IFM_IEEE80211_OFDM4 22 /* OFDM 4.5Mbps */
+#define IFM_IEEE80211_OFDM27 23 /* OFDM 27Mbps */
#define IFM_IEEE80211_ADHOC 0x00000100 /* Operate in Adhoc mode */
#define IFM_IEEE80211_HOSTAP 0x00000200 /* Operate in Host AP mode */
@@ -437,6 +440,9 @@ struct ifmedia_description {
{ IFM_IEEE80211_OFDM72, "OFDM/72Mbps" }, \
{ IFM_IEEE80211_DS354k, "DS/354Kbps" }, \
{ IFM_IEEE80211_DS512k, "DS/512Kbps" }, \
+ { IFM_IEEE80211_OFDM3, "OFDM/3Mbps" }, \
+ { IFM_IEEE80211_OFDM4, "OFDM/4.5Mbps" }, \
+ { IFM_IEEE80211_OFDM27, "OFDM/27Mbps" }, \
{ 0, NULL }, \
}
@@ -472,6 +478,9 @@ struct ifmedia_description {
{ IFM_IEEE80211_DS354k, "DirectSequence/354Kbps" }, \
{ IFM_IEEE80211_DS512k, "DS512K" }, \
{ IFM_IEEE80211_DS512k, "DirectSequence/512Kbps" }, \
+ { IFM_IEEE80211_OFDM3, "OFDM3" }, \
+ { IFM_IEEE80211_OFDM4, "OFDM4.5" }, \
+ { IFM_IEEE80211_OFDM27, "OFDM27" }, \
{ 0, NULL }, \
}
OpenPOWER on IntegriCloud