From d553ae8ecf8a5300d61521dbfb7b39a502bdf802 Mon Sep 17 00:00:00 2001 From: acinonyx Date: Mon, 14 Oct 2013 11:05:15 +0000 Subject: [PATCH] madwifi: Fix removal of proc entries Signed-off-by: Vasilis Tsiligiannis git-svn-id: svn://svn.openwrt.org/openwrt/packages@38391 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- net/madwifi/patches/481-fix_proc.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/madwifi/patches/481-fix_proc.patch b/net/madwifi/patches/481-fix_proc.patch index d8f6f94ae..61994a53f 100644 --- a/net/madwifi/patches/481-fix_proc.patch +++ b/net/madwifi/patches/481-fix_proc.patch @@ -52,7 +52,7 @@ while (tmp) { if (tmp->entry) { +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) -+ proc_remove(vap->iv_proc); ++ proc_remove(tmp->entry); +#else remove_proc_entry(tmp->name, vap->iv_proc); +#endif @@ -61,13 +61,13 @@ tmp = tmp->next; } +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) -+ proc_remove(proc_madwifi); ++ proc_remove(vap->iv_proc); +#else remove_proc_entry(vap->iv_proc->name, proc_madwifi); +#endif if (proc_madwifi_count == 1) { +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0) -+ proc_remove(proc_net); ++ proc_remove(proc_madwifi); +#else remove_proc_entry("madwifi", proc_net); +#endif