aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r--drivers/net/wireless/hostap/hostap_main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c
index 446de51bab74..9a470e80ca24 100644
--- a/drivers/net/wireless/hostap/hostap_main.c
+++ b/drivers/net/wireless/hostap/hostap_main.c
@@ -24,6 +24,7 @@
24#include <linux/rtnetlink.h> 24#include <linux/rtnetlink.h>
25#include <linux/wireless.h> 25#include <linux/wireless.h>
26#include <linux/etherdevice.h> 26#include <linux/etherdevice.h>
27#include <net/net_namespace.h>
27#include <net/iw_handler.h> 28#include <net/iw_handler.h>
28#include <net/ieee80211.h> 29#include <net/ieee80211.h>
29#include <net/ieee80211_crypt.h> 30#include <net/ieee80211_crypt.h>
@@ -1093,8 +1094,8 @@ struct proc_dir_entry *hostap_proc;
1093 1094
1094static int __init hostap_init(void) 1095static int __init hostap_init(void)
1095{ 1096{
1096 if (proc_net != NULL) { 1097 if (init_net.proc_net != NULL) {
1097 hostap_proc = proc_mkdir("hostap", proc_net); 1098 hostap_proc = proc_mkdir("hostap", init_net.proc_net);
1098 if (!hostap_proc) 1099 if (!hostap_proc)
1099 printk(KERN_WARNING "Failed to mkdir " 1100 printk(KERN_WARNING "Failed to mkdir "
1100 "/proc/net/hostap\n"); 1101 "/proc/net/hostap\n");
@@ -1109,7 +1110,7 @@ static void __exit hostap_exit(void)
1109{ 1110{
1110 if (hostap_proc != NULL) { 1111 if (hostap_proc != NULL) {
1111 hostap_proc = NULL; 1112 hostap_proc = NULL;
1112 remove_proc_entry("hostap", proc_net); 1113 remove_proc_entry("hostap", init_net.proc_net);
1113 } 1114 }
1114} 1115}
1115 1116