aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wmm_ac.h
diff options
context:
space:
mode:
authorMoshe Benji <Moshe.Benji@intel.com>2014-10-22 12:03:54 (GMT)
committerJouni Malinen <j@w1.fi>2014-11-16 18:47:34 (GMT)
commita0413b17340a18ed905edc804ee2aab09b2c3186 (patch)
tree8c597b9a58bb67a23abf2d671c8646b11bf9ef7d /wpa_supplicant/wmm_ac.h
parent7e0e10693a5e38d527b14af06cd76c863aeeff58 (diff)
downloadhostap-a0413b17340a18ed905edc804ee2aab09b2c3186.zip
hostap-a0413b17340a18ed905edc804ee2aab09b2c3186.tar.gz
hostap-a0413b17340a18ed905edc804ee2aab09b2c3186.tar.bz2
WMM AC: Parse WMM IE on association
Initialize WMM AC data structures upon successful association with an AP that publishes WMM support, and deinitialize the data structure when the association is no longer valid. Signed-off-by: Moshe Benji <moshe.benji@intel.com> Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Diffstat (limited to 'wpa_supplicant/wmm_ac.h')
-rw-r--r--wpa_supplicant/wmm_ac.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/wpa_supplicant/wmm_ac.h b/wpa_supplicant/wmm_ac.h
new file mode 100644
index 0000000..dd37617
--- /dev/null
+++ b/wpa_supplicant/wmm_ac.h
@@ -0,0 +1,51 @@
+/*
+ * Wi-Fi Multimedia Admission Control (WMM-AC)
+ * Copyright(c) 2014, Intel Mobile Communication GmbH.
+ * Copyright(c) 2014, Intel Corporation. All rights reserved.
+ *
+ * This software may be distributed under the terms of the BSD license.
+ * See README for more details.
+ */
+
+#ifndef WMM_AC_H
+#define WMM_AC_H
+
+#include "common/ieee802_11_defs.h"
+#include "drivers/driver.h"
+
+struct wpa_supplicant;
+
+/**
+ * struct wmm_ac_assoc_data - WMM Admission Control Association Data
+ *
+ * This struct will store any relevant WMM association data needed by WMM AC.
+ * In case there is a valid WMM association, an instance of this struct will be
+ * created. In case there is no instance of this struct, the station is not
+ * associated to a valid WMM BSS and hence, WMM AC will not be used.
+ */
+struct wmm_ac_assoc_data {
+ struct {
+ /*
+ * acm - Admission Control Mandatory
+ * In case an access category is ACM, the traffic will have
+ * to be admitted by WMM-AC's admission mechanism before use.
+ */
+ unsigned int acm:1;
+
+ /*
+ * uapsd_queues - Unscheduled Automatic Power Save Delivery
+ * queues.
+ * Indicates whether ACs are configured for U-APSD (or legacy
+ * PS). Storing this value is necessary in order to set the
+ * Power Save Bit (PSB) in ADDTS request Action frames (if not
+ * given).
+ */
+ unsigned int uapsd:1;
+ } ac_params[WMM_AC_NUM];
+};
+
+void wmm_ac_notify_assoc(struct wpa_supplicant *wpa_s, const u8 *ies,
+ size_t ies_len, const struct wmm_params *wmm_params);
+void wmm_ac_notify_disassoc(struct wpa_supplicant *wpa_s);
+
+#endif /* WMM_AC_H */