diff mbox series

[RFC,v2,15/96] cl8k: add config.c

Message ID 20220524113502.1094459-16-viktor.barna@celeno.com
State New
Headers show
Series wireless: cl8k driver for Celeno IEEE 802.11ax devices | expand

Commit Message

Viktor Barna May 24, 2022, 11:33 a.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/config.c | 46 +++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 drivers/net/wireless/celeno/cl8k/config.c
diff mbox series

Patch

diff --git a/drivers/net/wireless/celeno/cl8k/config.c b/drivers/net/wireless/celeno/cl8k/config.c
new file mode 100644
index 000000000000..dbf94060bfa4
--- /dev/null
+++ b/drivers/net/wireless/celeno/cl8k/config.c
@@ -0,0 +1,46 @@ 
+// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
+/* Copyright(c) 2019-2022, Celeno Communications Ltd. */
+
+#include "hw.h"
+#include "debug.h"
+#include "config.h"
+
+static char *non_driver_conf_params[] = {
+	"ws_",
+	"ha_",
+	"uuid1",
+	"ce_pci_id",
+	"ce_rst_gpio",
+	"ce_iface_eth",
+	"ce_iface_vlan",
+	"ce_iface_ip",
+	"ci_sim_chip_num",
+	"ci_lcu_dump_folder",
+	"ci_server_addr",
+	"ci_server_user",
+	"ci_pci_tune_en",
+	"ce_uapsd_en",
+	"ce_channel_bandwidth",
+	"ce_ht_rxldpc_en",
+	"ce_vht_rxldpc_en",
+	"ce_he_rxldpc_en",
+	"ce_bf_en",
+	"ce_bss_num",
+	"ce_iface_type",
+	"ce_mu_mimo_state",
+	"ce_wireless_mode",
+	"ce_extension_channel",
+	NULL
+};
+
+bool cl_config_is_non_driver_param(char *name)
+{
+	int i = 0;
+
+	for (i = 0; non_driver_conf_params[i]; i++)
+		if (!strncmp(name, non_driver_conf_params[i], strlen(non_driver_conf_params[i])))
+			return true;
+
+	return false;
+}
+