summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2007-06-17 09:09:36 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2007-06-17 09:09:36 +0000
commit7302ef96428b6e6ed4d2be6deefe9a2ed724c034 (patch)
tree78151a98003793579a2990ff745bb5770a203945
parent45face1c0477354bef55981d4b43def793cd0a20 (diff)
Add a new capability flag IEEE80211_C_QOS indicating that the driver
supports QoS. Add a new flag IEEE80211_F_QOS indicating whether QoS is enabled or not. Add a callback to notify drivers that AC parameters have changed in the QBSS. Drivers implementing QoS should define this callback and update their EDCA settings accordingly.
-rw-r--r--sys/net80211/ieee80211_var.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_var.h b/sys/net80211/ieee80211_var.h
index 393592ab371..7da70814c3e 100644
--- a/sys/net80211/ieee80211_var.h
+++ b/sys/net80211/ieee80211_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_var.h,v 1.22 2007/06/16 13:17:05 damien Exp $ */
+/* $OpenBSD: ieee80211_var.h,v 1.23 2007/06/17 09:09:35 damien Exp $ */
/* $NetBSD: ieee80211_var.h,v 1.7 2004/05/06 03:07:10 dyoung Exp $ */
/*-
@@ -163,6 +163,7 @@ struct ieee80211com {
void (*ic_newassoc)(struct ieee80211com *,
struct ieee80211_node *, int);
void (*ic_updateslot)(struct ieee80211com *);
+ void (*ic_updateedca)(struct ieee80211com *);
int (*ic_set_tim)(struct ieee80211com *, int, int);
u_int8_t ic_myaddr[IEEE80211_ADDR_LEN];
struct ieee80211_rateset ic_sup_rates[IEEE80211_MODE_MAX];
@@ -253,6 +254,7 @@ extern struct ieee80211com_head ieee80211com_head;
#define IEEE80211_F_TXPOW_AUTO 0x00010000 /* TX Power: undefined */
#define IEEE80211_F_SHSLOT 0x00020000 /* STATUS: short slot time */
#define IEEE80211_F_SHPREAMBLE 0x00040000 /* STATUS: short preamble */
+#define IEEE80211_F_QOS 0x00080000 /* CONF: QoS enabled */
#define IEEE80211_F_USEPROT 0x00100000 /* STATUS: protection enabled */
#define IEEE80211_F_USERMASK 0xf0000000 /* CONF: ioctl flag mask */
@@ -268,6 +270,7 @@ extern struct ieee80211com_head ieee80211com_head;
#define IEEE80211_C_SHPREAMBLE 0x00000100 /* CAPABILITY: short preamble */
#define IEEE80211_C_MONITOR 0x00000200 /* CAPABILITY: monitor mode */
#define IEEE80211_C_SCANALL 0x00000400 /* CAPABILITY: scan all chan */
+#define IEEE80211_C_QOS 0x00000800 /* CAPABILITY: QoS */
/* flags for ieee80211_fix_rate() */
#define IEEE80211_F_DOSORT 0x00000001 /* sort rate list */