netdev
[Top] [All Lists]

[PATCH wireless-2.6 5/10] hostap: Fix procfs rmdir after ifname change

To: Jeff Garzik <jgarzik@xxxxxxxxx>
Subject: [PATCH wireless-2.6 5/10] hostap: Fix procfs rmdir after ifname change
From: Jouni Malinen <jkmaline@xxxxxxxxx>
Date: Sat, 12 Mar 2005 16:32:12 -0800
Cc: netdev@xxxxxxxxxxx
In-reply-to: <20050313001706.GA8253@jm.kir.nu>
References: <20050313001706.GA8253@jm.kir.nu>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mutt/1.5.6i
Fixed /proc/net/hostap/wlan# removing to use name from the procfs
instead of from the netdevice. This allows the procfs entry be removed
nicely even if the network interface has been renamed.

Signed-off-by: Jouni Malinen <jkmaline@xxxxxxxxx>

Index: jm-wireless-2.6/drivers/net/wireless/hostap/hostap_proc.c
===================================================================
--- jm-wireless-2.6.orig/drivers/net/wireless/hostap/hostap_proc.c      
2005-03-12 16:10:40.000000000 -0800
+++ jm-wireless-2.6/drivers/net/wireless/hostap/hostap_proc.c   2005-03-12 
16:10:55.000000000 -0800
@@ -456,8 +456,8 @@
 #ifndef PRISM2_NO_PROCFS_DEBUG
                remove_proc_entry("debug", local->proc);
 #endif /* PRISM2_NO_PROCFS_DEBUG */
-               if (local->ddev != NULL && hostap_proc != NULL)
-                       remove_proc_entry(local->ddev->name, hostap_proc);
+               if (hostap_proc != NULL)
+                       remove_proc_entry(local->proc->name, hostap_proc);
        }
 }
 

-- 
Jouni Malinen                                            PGP id EFC895FA

<Prev in Thread] Current Thread [Next in Thread>