From 08f87f769b595151be1afeff53e144f543faa614 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Wed, 06 Dec 2023 09:51:13 +0000
Subject: [PATCH] add dts config
---
kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/os_dep/linux/rtw_proc.c | 59 +----------------------------------------------------------
1 files changed, 1 insertions(+), 58 deletions(-)
diff --git a/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/os_dep/linux/rtw_proc.c b/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/os_dep/linux/rtw_proc.c
index 8a95e5d..bfe65db 100644
--- a/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/os_dep/linux/rtw_proc.c
+++ b/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/os_dep/linux/rtw_proc.c
@@ -5167,63 +5167,6 @@
return 0;
}
-static int proc_get_amsdu_mode(struct seq_file *m, void *v)
-{
- struct net_device *dev = m->private;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct registry_priv *pregpriv = &padapter->registrypriv;
-
- if (pregpriv) {
- if (pregpriv->amsdu_mode == RTW_AMSDU_MODE_NON_SPP)
- RTW_PRINT_SEL(m, "amsdu mode: NON-SPP\n");
- else if (pregpriv->amsdu_mode == RTW_AMSDU_MODE_SPP)
- RTW_PRINT_SEL(m, "amsdu mode: SPP\n");
- else if (pregpriv->amsdu_mode == RTW_AMSDU_MODE_ALL_DROP)
- RTW_PRINT_SEL(m, "amsdu mode: ALL DROP\n");
- else
- RTW_PRINT_SEL(m, "unexpected amsdu mode\n");
- }
-
- return 0;
-}
-
-static ssize_t proc_set_amsdu_mode(struct file *file, const char __user *buffer, size_t count, loff_t *pos, void *data)
-{
- struct net_device *dev = data;
- _adapter *padapter = (_adapter *)rtw_netdev_priv(dev);
- struct registry_priv *pregpriv = &padapter->registrypriv;
- char tmp[32];
- u32 mode;
- u8 bw_2g;
- u8 bw_5g;
-
- if (count < 1)
- return -EFAULT;
-
- if (count > sizeof(tmp)) {
- rtw_warn_on(1);
- return -EFAULT;
- }
-
- if (buffer && !copy_from_user(tmp, buffer, count)) {
-
- int num = sscanf(tmp, "%d", &mode);
-
- if (mode == RTW_AMSDU_MODE_NON_SPP
- || mode == RTW_AMSDU_MODE_SPP
- || mode == RTW_AMSDU_MODE_ALL_DROP) {
- pregpriv->amsdu_mode = mode;
- RTW_INFO("amsdu mode=%u\n", mode);
- } else {
- RTW_INFO("set unexpected mode = %d, won't apply\n", mode);
- }
- }
-
- return count;
-
-}
-
-
/*
* rtw_adapter_proc:
* init/deinit when register/unregister net_device
@@ -5681,7 +5624,7 @@
RTW_PROC_HDL_SSEQ("war_offload_mdns_service_info_txt_rsp", proc_get_war_offload_mdns_txt_rsp, proc_set_war_offload_mdns_txt_rsp),
#endif /* CONFIG_OFFLOAD_MDNS_V4 || CONFIG_OFFLOAD_MDNS_V6 */
#endif /* CONFIG_WAR_OFFLOAD */
- RTW_PROC_HDL_SSEQ("rtw_amsdu_mode", proc_get_amsdu_mode, proc_set_amsdu_mode),
+
};
const int adapter_proc_hdls_num = sizeof(adapter_proc_hdls) / sizeof(struct rtw_proc_hdl);
--
Gitblit v1.6.2