@@ -101,6 +101,21 @@ enum reg_type {
REGDOM_TYPE_INTERSECTION,
};
+/**
+ * struct hostapd_wmm_rule - WMM regulatory rule.
+ *
+ * @min_cwmin - lower bound of cw_min value.
+ * @min_cwmax - lower bound of cw_max value.
+ * @min_aifs - lower bound of aifs value.
+ * @max_txop - upper bound of txop, value in units of 32us.
+ */
+struct hostapd_wmm_rule {
+ int min_cwmin;
+ int min_cwmax;
+ int min_aifs;
+ int max_txop;
+};
+
/**
* struct hostapd_channel_data - Channel information
*/
@@ -156,6 +171,16 @@ struct hostapd_channel_data {
* dfs_cac_ms - DFS CAC time in milliseconds
*/
unsigned int dfs_cac_ms;
+
+ /**
+ * wmm_rules_valid - indicates wmm_rules state
+ */
+ u8 wmm_rules_valid;
+
+ /**
+ * wmm_rules - WMM regulatory rules.
+ */
+ struct hostapd_wmm_rule wmm_rules[WMM_AC_NUM];
};
#define HE_MAX_NUM_SS 8