Initial addition

This commit is contained in:
mark 1999-09-30 04:31:47 +00:00
parent 5181bd3bbb
commit 58fcde77b3
2 changed files with 1423 additions and 0 deletions

1245
src/p80211/p80211frm.c Normal file

File diff suppressed because it is too large Load Diff

178
src/p80211/p80211mod.c Normal file
View File

@ -0,0 +1,178 @@
/* p80211mod.c: Module entry and exit for p80211
* --------------------------------------------------------------------
*
* Linux WLAN
*
* The contents of this file are subject to the Mozilla Public
* License Version 1.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The initial developer of the original code is Mark S. Mathews
* <mark@absoval.com>. Portions created by Mark S. Mathews
* are Copyright (C) 1998 AbsoluteValue Software, Inc. All Rights Reserved.
*
* --------------------------------------------------------------------
*
* The initial author may be reached as mark@absoval.com, or
* C/O AbsoluteValue Software Inc., P.O. Box 941149,
* Maitland, FL, 32794-1149
*
* --------------------------------------------------------------------
*
* This file contains the p80211.o entry and exit points defined for linux
* kernel modules.
*
* Notes:
* - all module parameters for p80211.o should be defined here.
*
* --------------------------------------------------------------------
*/
/*================================================================*/
/* System Includes */
#if defined(__LINUX_WLAN__)
#include <linux/module.h>
#include <linux/version.h>
/* Standard driver includes */
#include <assert.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/sched.h>
#include <linux/fcntl.h>
#include <linux/interrupt.h>
#include <linux/ptrace.h>
#include <linux/ioport.h>
#include <linux/in.h>
#include <linux/malloc.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/kernel_stat.h>
#include <linux/delay.h>
#include <asm/system.h>
#include <asm/bitops.h>
#include <asm/io.h>
#include <linux/errno.h>
/* Ethernet and network includes */
#include <linux/if_ether.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/if_arp.h>
#endif
/*================================================================*/
/* Project Includes */
#include <wlan/version.h>
#include <wlan/wlan_compat.h>
/*================================================================*/
/* Local Constants */
/*================================================================*/
/* Local Macros */
/*================================================================*/
/* Local Types */
/*================================================================*/
/* Local Static Definitions */
static char *version = "p80211.o: " WLAN_RELEASE;
/*----------------------------------------------------------------*/
/* --Module Parameters */
int wlan_isap=0; /* are we an AP? */
MODULE_PARM( wlan_isap, "i");
int wlan_debug=0; /* Debug output level, */
MODULE_PARM( wlan_debug, "i"); /* extern'd in wlan_compat.h */
/*================================================================*/
/* Local Function Declarations */
int init_module(void);
void cleanup_module(void);
/*================================================================*/
/* Function Definitions */
/*----------------------------------------------------------------
* init_module
*
* Module initialization routine, called once at module load time.
*
* Arguments:
* none
*
* Returns:
* 0 - success
* ~0 - failure, module is unloaded.
*
* Side effects:
* TODO: define
*
* Call context:
* process thread (insmod or modprobe)
----------------------------------------------------------------*/
int init_module(void)
{
DBFENTER;
if ( a ) {
prinf("xxx");
}
DBFEXIT;
return 0;
}
/*----------------------------------------------------------------
* cleanup_module
*
* Called at module unload time. This is our last chance to
* clean up after ourselves.
*
* Arguments:
* none
*
* Returns:
* nothing
*
* Side effects:
* TODO: define
*
* Call context:
* process thread
*
----------------------------------------------------------------*/
void cleanup_module(void)
{
DBFENTER;
DBFEXIT;
return;
}