1 /* src/p80211/p80211mod.c
3 * Module entry and exit for p80211
5 * Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved.
6 * --------------------------------------------------------------------
10 * The contents of this file are subject to the Mozilla Public
11 * License Version 1.1 (the "License"); you may not use this file
12 * except in compliance with the License. You may obtain a copy of
13 * the License at http://www.mozilla.org/MPL/
15 * Software distributed under the License is distributed on an "AS
16 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
17 * implied. See the License for the specific language governing
18 * rights and limitations under the License.
20 * Alternatively, the contents of this file may be used under the
21 * terms of the GNU Public License version 2 (the "GPL"), in which
22 * case the provisions of the GPL are applicable instead of the
23 * above. If you wish to allow the use of your version of this file
24 * only under the terms of the GPL and not to allow others to use
25 * your version of this file under the MPL, indicate your decision
26 * by deleting the provisions above and replace them with the notice
27 * and other provisions required by the GPL. If you do not delete
28 * the provisions above, a recipient may use your version of this
29 * file under either the MPL or the GPL.
31 * --------------------------------------------------------------------
33 * Inquiries regarding the linux-wlan Open Source project can be
36 * AbsoluteValue Systems Inc.
38 * http://www.linux-wlan.com
40 * --------------------------------------------------------------------
42 * Portions of the development of this software were funded by
43 * Intersil Corporation as part of PRISM(R) chipset product development.
45 * --------------------------------------------------------------------
47 * This file contains the p80211.o entry and exit points defined for linux
51 * - all module parameters for p80211.o should be defined here.
53 * --------------------------------------------------------------------
56 /*================================================================*/
60 #include <linux/version.h>
62 #include <linux/module.h>
63 #include <linux/moduleparam.h>
65 #include <linux/kernel.h>
66 #include <linux/sched.h>
67 #include <linux/types.h>
68 #include <linux/wireless.h>
69 #include <linux/netdevice.h>
71 #include "wlan_compat.h"
73 /*================================================================*/
74 /* Project Includes */
76 #include "p80211types.h"
77 #include "p80211hdr.h"
78 #include "p80211mgmt.h"
79 #include "p80211conv.h"
80 #include "p80211msg.h"
81 #include "p80211netdev.h"
82 #include "p80211req.h"
84 /*================================================================*/
88 /*================================================================*/
92 /*================================================================*/
96 /*================================================================*/
97 /* Local Static Definitions */
99 /*----------------------------------------------------------------*/
100 /* --Module Parameters */
102 int wlan_watchdog = 5000;
103 module_param(wlan_watchdog, int, 0644);
104 MODULE_PARM_DESC(wlan_watchdog, "transmit timeout in milliseconds");
106 int wlan_wext_write = 1;
107 module_param(wlan_wext_write, int, 0644);
108 MODULE_PARM_DESC(wlan_wext_write, "enable write wireless extensions");
110 #ifdef WLAN_INCLUDE_DEBUG
112 module_param(wlan_debug, int, 0644);
113 MODULE_PARM_DESC(wlan_debug, "p80211 debug level");
116 MODULE_LICENSE("Dual MPL/GPL");
118 /*================================================================*/
119 /* Local Function Declarations */
121 int init_module(void);
122 void cleanup_module(void);
124 /*================================================================*/
125 /* Function Definitions */
127 /*----------------------------------------------------------------
130 * Module initialization routine, called once at module load time.
137 * ~0 - failure, module is unloaded.
143 * process thread (insmod or modprobe)
144 ----------------------------------------------------------------*/
145 int init_module(void)
149 p80211netdev_startup();
156 /*----------------------------------------------------------------
159 * Called at module unload time. This is our last chance to
160 * clean up after ourselves.
174 ----------------------------------------------------------------*/
175 void cleanup_module(void)
179 p80211netdev_shutdown();
185 EXPORT_SYMBOL(p80211netdev_hwremoved);
186 EXPORT_SYMBOL(register_wlandev);
187 EXPORT_SYMBOL(p80211netdev_rx);
188 EXPORT_SYMBOL(unregister_wlandev);
189 EXPORT_SYMBOL(wlan_setup);
190 EXPORT_SYMBOL(wlan_unsetup);
192 EXPORT_SYMBOL(p80211skb_free);
193 EXPORT_SYMBOL(p80211skb_rxmeta_attach);
195 EXPORT_SYMBOL(p80211wext_event_associated);