drivers: Add WMM parameters to association event data
authorEliad Peller <eliad@wizery.com>
Wed, 22 Oct 2014 12:03:52 +0000 (08:03 -0400)
committerJouni Malinen <j@w1.fi>
Sun, 16 Nov 2014 18:16:58 +0000 (20:16 +0200)
The WMM parameters will be used later for setting default tspec values.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
src/drivers/driver.h

index 5be123b..9804a7a 100644 (file)
@@ -1366,6 +1366,23 @@ enum tdls_peer_capability {
        TDLS_PEER_WMM = BIT(2),
 };
 
+/* valid info in the wmm_params struct */
+enum wmm_params_valid_info {
+       WMM_PARAMS_UAPSD_QUEUES_INFO = BIT(0),
+};
+
+/**
+ * struct wmm_params - WMM parameterss configured for this association
+ * @info_bitmap: Bitmap of valid wmm_params info; indicates what fields
+ *     of the struct contain valid information.
+ * @uapsd_queues: Bitmap of ACs configured for uapsd (valid only if
+ *     %WMM_PARAMS_UAPSD_QUEUES_INFO is set)
+ */
+struct wmm_params {
+       u8 info_bitmap;
+       u8 uapsd_queues;
+};
+
 #ifdef CONFIG_MACSEC
 struct macsec_init_params {
        Boolean always_include_sci;
@@ -3736,6 +3753,11 @@ union wpa_event_data {
                unsigned int freq;
 
                /**
+                * wmm_params - WMM parameters used in this association.
+                */
+               struct wmm_params wmm_params;
+
+               /**
                 * addr - Station address (for AP mode)
                 */
                const u8 *addr;