diff mbox series

[RFC,v1,140/256] cl8k: add prot_mode.h

Message ID 20210617160223.160998-141-viktor.barna@celeno.com (mailing list archive)
State RFC
Delegated to: Kalle Valo
Headers show
Series wireless: cl8k driver for Celeno IEEE 802.11ax devices | expand

Commit Message

Viktor Barna June 17, 2021, 4 p.m. UTC
From: Viktor Barna <viktor.barna@celeno.com>

(Part of the split. Please, take a look at the cover letter for more
details).

Signed-off-by: Viktor Barna <viktor.barna@celeno.com>
---
 drivers/net/wireless/celeno/cl8k/prot_mode.h | 30 ++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 drivers/net/wireless/celeno/cl8k/prot_mode.h

--
2.30.0
diff mbox series

Patch

diff --git a/drivers/net/wireless/celeno/cl8k/prot_mode.h b/drivers/net/wireless/celeno/cl8k/prot_mode.h
new file mode 100644
index 000000000000..177559edf62f
--- /dev/null
+++ b/drivers/net/wireless/celeno/cl8k/prot_mode.h
@@ -0,0 +1,30 @@ 
+/* SPDX-License-Identifier: MIT */
+/* Copyright(c) 2019-2021, Celeno Communications Ltd. */
+
+#ifndef CL_PROT_MODE_H
+#define CL_PROT_MODE_H
+
+#include "hw.h"
+
+/**
+ * Protection mode (RTS/CTS) control
+ */
+
+enum cl_txl_prot_mode {
+       TXL_NO_PROT,
+       TXL_PROT_RTS,
+       TXL_PROT_CTS,
+       TXL_PROT_RTS_FW,
+       TXL_PROT_CTS_FW,
+
+       TXL_PROT_MAX,
+};
+
+void cl_prot_mode_init(struct cl_hw *cl_hw);
+void cl_prot_mode_disable(struct cl_hw *cl_hw);
+void cl_prot_mode_enable(struct cl_hw *cl_hw);
+void cl_prot_mode_restore_default(struct cl_hw *cl_hw);
+void cl_prot_mode_set(struct cl_hw *cl_hw, u8 prot_mode_new);
+u8 cl_prot_mode_get(struct cl_hw *cl_hw);
+
+#endif /* CL_PROT_MODE_H */