summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211_var.h
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2004-03-30 22:57:57 +0000
committersam <sam@FreeBSD.org>2004-03-30 22:57:57 +0000
commit2f7d679f76c84769e36cfb6b9931853b49d02f1b (patch)
tree12a9053951f77d1b9be43ee6f17dddb55b7347a7 /sys/net80211/ieee80211_var.h
parent7a73957e4345e7b66e24f16c6a44a598041be430 (diff)
downloadFreeBSD-src-2f7d679f76c84769e36cfb6b9931853b49d02f1b.zip
FreeBSD-src-2f7d679f76c84769e36cfb6b9931853b49d02f1b.tar.gz
o add support for controlling the power of transmitted frames
o add support for controlling the 11g protection mechanism used to protect OFDM frames in a mixed 11b/g network Reviewed by: imp
Diffstat (limited to 'sys/net80211/ieee80211_var.h')
-rw-r--r--sys/net80211/ieee80211_var.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h
index 86a618f..3750c6a 100644
--- a/sys/net80211/ieee80211_var.h
+++ b/sys/net80211/ieee80211_var.h
@@ -49,6 +49,9 @@
#define IEEE80211_CHAN_ANYC \
((struct ieee80211_channel *) IEEE80211_CHAN_ANY)
+#define IEEE80211_TXPOWER_MAX 100 /* max power */
+#define IEEE80211_TXPOWER_MIN 0 /* kill radio (if possible) */
+
enum ieee80211_phytype {
IEEE80211_T_DS, /* direct sequence spread spectrum */
IEEE80211_T_FH, /* frequency hopping */
@@ -77,6 +80,15 @@ enum ieee80211_opmode {
};
/*
+ * 802.11g protection mode.
+ */
+enum ieee80211_protmode {
+ IEEE80211_PROT_NONE = 0, /* no protection */
+ IEEE80211_PROT_CTSONLY = 1, /* CTS to self */
+ IEEE80211_PROT_RTSCTS = 2, /* RTS-CTS */
+};
+
+/*
* Channels are specified by frequency and attributes.
*/
struct ieee80211_channel {
@@ -166,6 +178,7 @@ struct ieee80211com {
enum ieee80211_phytype ic_phytype; /* XXX wrong for multi-mode */
enum ieee80211_opmode ic_opmode; /* operation mode */
enum ieee80211_state ic_state; /* 802.11 state */
+ enum ieee80211_protmode ic_protmode; /* 802.11g protection mode */
struct ifmedia ic_media; /* interface media config */
struct bpf_if *ic_rawbpf; /* packet filter structure */
struct ieee80211_node *ic_bss; /* information for this node */
@@ -226,6 +239,8 @@ struct ieee80211com {
#define IEEE80211_F_TXPOW_AUTO 0x00010000 /* TX Power: undefined */
#define IEEE80211_F_SHSLOT 0x00020000 /* CONF: short slot time */
#define IEEE80211_F_SHPREAMBLE 0x00040000 /* CONF: short preamble */
+#define IEEE80211_F_USEPROT 0x00100000 /* STATUS: protection enabled */
+#define IEEE80211_F_USEBARKER 0x00200000 /* STATUS: use barker preamble*/
/* ic_caps */
#define IEEE80211_C_WEP 0x00000001 /* CAPABILITY: WEP available */
OpenPOWER on IntegriCloud