1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-09-20 05:00:36 +00:00

nuke rtw_proc aka debug via /proc

This commit is contained in:
kimocoder 2018-10-20 19:02:03 +02:00
parent 99382ed7ce
commit ba4b2097b2
6 changed files with 0 additions and 4076 deletions

View File

@ -237,7 +237,6 @@ _OS_INTFS_FILES := os_dep/osdep_service.o \
os_dep/linux/rtw_cfgvendor.o \ os_dep/linux/rtw_cfgvendor.o \
os_dep/linux/wifi_regd.o \ os_dep/linux/wifi_regd.o \
os_dep/linux/rtw_android.o \ os_dep/linux/rtw_android.o \
os_dep/linux/rtw_proc.o \
os_dep/linux/rtw_rhashtable.o os_dep/linux/rtw_rhashtable.o
ifeq ($(CONFIG_MP_INCLUDED), y) ifeq ($(CONFIG_MP_INCLUDED), y)

View File

@ -125,8 +125,6 @@ void rtw_ndev_notifier_unregister(void);
void rtw_inetaddr_notifier_register(void); void rtw_inetaddr_notifier_register(void);
void rtw_inetaddr_notifier_unregister(void); void rtw_inetaddr_notifier_unregister(void);
#include "../os_dep/linux/rtw_proc.h"
#ifdef CONFIG_IOCTL_CFG80211 #ifdef CONFIG_IOCTL_CFG80211
#include "../os_dep/linux/ioctl_cfg80211.h" #include "../os_dep/linux/ioctl_cfg80211.h"
#endif /* CONFIG_IOCTL_CFG80211 */ #endif /* CONFIG_IOCTL_CFG80211 */

View File

@ -1377,7 +1377,6 @@ static int rtw_ndev_notifier_call(struct notifier_block *nb, unsigned long state
switch (state) { switch (state) {
case NETDEV_CHANGENAME: case NETDEV_CHANGENAME:
rtw_adapter_proc_replace(ndev);
break; break;
} }
@ -1406,7 +1405,6 @@ int rtw_ndev_init(struct net_device *dev)
, FUNC_ADPT_ARG(adapter), (adapter->iface_id + 1), MAC_ARG(dev->dev_addr)); , FUNC_ADPT_ARG(adapter), (adapter->iface_id + 1), MAC_ARG(dev->dev_addr));
strncpy(adapter->old_ifname, dev->name, IFNAMSIZ); strncpy(adapter->old_ifname, dev->name, IFNAMSIZ);
adapter->old_ifname[IFNAMSIZ - 1] = '\0'; adapter->old_ifname[IFNAMSIZ - 1] = '\0';
rtw_adapter_proc_init(dev);
return 0; return 0;
} }
@ -1417,7 +1415,6 @@ void rtw_ndev_uninit(struct net_device *dev)
RTW_PRINT(FUNC_ADPT_FMT" if%d\n" RTW_PRINT(FUNC_ADPT_FMT" if%d\n"
, FUNC_ADPT_ARG(adapter), (adapter->iface_id + 1)); , FUNC_ADPT_ARG(adapter), (adapter->iface_id + 1));
rtw_adapter_proc_deinit(dev);
} }
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29))

File diff suppressed because it is too large Load Diff

View File

@ -1,60 +0,0 @@
/******************************************************************************
*
* Copyright(c) 2007 - 2017 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
*****************************************************************************/
#ifndef __RTW_PROC_H__
#define __RTW_PROC_H__
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#define RTW_PROC_HDL_TYPE_SEQ 0
#define RTW_PROC_HDL_TYPE_SSEQ 1
struct rtw_proc_hdl {
char *name;
u8 type;
union {
int (*show)(struct seq_file *, void *);
struct seq_operations *seq_op;
} u;
ssize_t (*write)(struct file *file, const char __user *buffer, size_t count, loff_t *pos, void *data);
};
#define RTW_PROC_HDL_SEQ(_name, _seq_op, _write) \
{ .name = _name, .type = RTW_PROC_HDL_TYPE_SEQ, .u.seq_op = _seq_op, .write = _write}
#define RTW_PROC_HDL_SSEQ(_name, _show, _write) \
{ .name = _name, .type = RTW_PROC_HDL_TYPE_SSEQ, .u.show = _show, .write = _write}
#ifdef CONFIG_PROC_DEBUG
struct proc_dir_entry *get_rtw_drv_proc(void);
int rtw_drv_proc_init(void);
void rtw_drv_proc_deinit(void);
struct proc_dir_entry *rtw_adapter_proc_init(struct net_device *dev);
void rtw_adapter_proc_deinit(struct net_device *dev);
void rtw_adapter_proc_replace(struct net_device *dev);
#else /* !CONFIG_PROC_DEBUG */
#define get_rtw_drv_proc() NULL
#define rtw_drv_proc_init() 0
#define rtw_drv_proc_deinit() do {} while (0)
#define rtw_adapter_proc_init(dev) NULL
#define rtw_adapter_proc_deinit(dev) do {} while (0)
#define rtw_adapter_proc_replace(dev) do {} while (0)
#endif /* !CONFIG_PROC_DEBUG */
#endif /* __RTW_PROC_H__ */

View File

@ -1626,7 +1626,6 @@ static int __init rtw_drv_entry(void)
usb_drv.drv_registered = _TRUE; usb_drv.drv_registered = _TRUE;
rtw_suspend_lock_init(); rtw_suspend_lock_init();
rtw_drv_proc_init();
rtw_ndev_notifier_register(); rtw_ndev_notifier_register();
rtw_inetaddr_notifier_register(); rtw_inetaddr_notifier_register();
@ -1635,7 +1634,6 @@ static int __init rtw_drv_entry(void)
if (ret != 0) { if (ret != 0) {
usb_drv.drv_registered = _FALSE; usb_drv.drv_registered = _FALSE;
rtw_suspend_lock_uninit(); rtw_suspend_lock_uninit();
rtw_drv_proc_deinit();
rtw_ndev_notifier_unregister(); rtw_ndev_notifier_unregister();
rtw_inetaddr_notifier_unregister(); rtw_inetaddr_notifier_unregister();
goto exit; goto exit;
@ -1657,7 +1655,6 @@ static void __exit rtw_drv_halt(void)
platform_wifi_power_off(); platform_wifi_power_off();
rtw_suspend_lock_uninit(); rtw_suspend_lock_uninit();
rtw_drv_proc_deinit();
rtw_ndev_notifier_unregister(); rtw_ndev_notifier_unregister();
rtw_inetaddr_notifier_unregister(); rtw_inetaddr_notifier_unregister();