From: Viktor Barna <viktor.barna@xxxxxxxxxx> (Part of the split. Please, take a look at the cover letter for more details). Signed-off-by: Viktor Barna <viktor.barna@xxxxxxxxxx> --- drivers/net/wireless/celeno/cl8k/edca.h | 47 +++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 drivers/net/wireless/celeno/cl8k/edca.h diff --git a/drivers/net/wireless/celeno/cl8k/edca.h b/drivers/net/wireless/celeno/cl8k/edca.h new file mode 100644 index 000000000000..d8edcf12b95c --- /dev/null +++ b/drivers/net/wireless/celeno/cl8k/edca.h @@ -0,0 +1,47 @@ +/* SPDX-License-Identifier: MIT */ +/* Copyright(c) 2019-2021, Celeno Communications Ltd. */ + +#ifndef CL_EDCA_H +#define CL_EDCA_H + +#include "vendor_cmd.h" +#include "def.h" + +enum edca_ac { + EDCA_AC_BE, + EDCA_AC_BK, + EDCA_AC_VI, + EDCA_AC_VO, + + EDCA_AC_MAX +}; + +#define EDCA_AIFSN 0 +#define EDCA_CW_MIN 1 +#define EDCA_CW_MAX 2 +#define EDCA_TXOP 3 +#define EDCA_MAX_PARAMS 4 + +struct edca_params { + u16 txop; + u8 cw_max; + u8 cw_min; + u8 aifsn; +}; + +struct cl_edca_db { + struct edca_params hw_params[AC_MAX]; +}; + +struct cl_hw; +struct cl_sta; +struct ieee80211_he_mu_edca_param_ac_rec; + +void cl_edca_hw_conf(struct cl_hw *cl_hw); +void cl_edca_set(struct cl_hw *cl_hw, u8 ac, struct edca_params *params, + struct ieee80211_he_mu_edca_param_ac_rec *mu_edca); +void cl_edca_restore_conf(struct cl_hw *cl_hw, u8 ac); +void cl_edca_recovery(struct cl_hw *cl_hw); +int cl_edca_cli(struct cl_hw *cl_hw, struct cli_params *cli_params); + +#endif /* CL_EDCA_H */ -- 2.30.0 ________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any retransmission, dissemination, copying or other use of, or taking of any action in reliance upon this information is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Nothing contained herein shall be deemed as a representation, warranty or a commitment by Celeno. No warranties are expressed or implied, including, but not limited to, any implied warranties of non-infringement, merchantability and fitness for a particular purpose. ________________________________