madwifi: Fix removal of proc entries
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr> git-svn-id: svn://svn.openwrt.org/openwrt/packages@38391 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
5639afca9c
commit
d553ae8ecf
@ -52,7 +52,7 @@
|
|||||||
while (tmp) {
|
while (tmp) {
|
||||||
if (tmp->entry) {
|
if (tmp->entry) {
|
||||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
|
||||||
+ proc_remove(vap->iv_proc);
|
+ proc_remove(tmp->entry);
|
||||||
+#else
|
+#else
|
||||||
remove_proc_entry(tmp->name, vap->iv_proc);
|
remove_proc_entry(tmp->name, vap->iv_proc);
|
||||||
+#endif
|
+#endif
|
||||||
@ -61,13 +61,13 @@
|
|||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
|
||||||
+ proc_remove(proc_madwifi);
|
+ proc_remove(vap->iv_proc);
|
||||||
+#else
|
+#else
|
||||||
remove_proc_entry(vap->iv_proc->name, proc_madwifi);
|
remove_proc_entry(vap->iv_proc->name, proc_madwifi);
|
||||||
+#endif
|
+#endif
|
||||||
if (proc_madwifi_count == 1) {
|
if (proc_madwifi_count == 1) {
|
||||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,10,0)
|
||||||
+ proc_remove(proc_net);
|
+ proc_remove(proc_madwifi);
|
||||||
+#else
|
+#else
|
||||||
remove_proc_entry("madwifi", proc_net);
|
remove_proc_entry("madwifi", proc_net);
|
||||||
+#endif
|
+#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user