Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
main.c File Reference
#include <net/mac80211.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/netdevice.h>
#include <linux/types.h>
#include <linux/slab.h>
#include <linux/skbuff.h>
#include <linux/etherdevice.h>
#include <linux/if_arp.h>
#include <linux/rtnetlink.h>
#include <linux/bitmap.h>
#include <linux/pm_qos.h>
#include <linux/inetdevice.h>
#include <net/net_namespace.h>
#include <net/cfg80211.h>
#include "ieee80211_i.h"
#include "driver-ops.h"
#include "rate.h"
#include "mesh.h"
#include "wep.h"
#include "led.h"
#include "cfg.h"
#include "debugfs.h"

Go to the source code of this file.

Functions

void ieee80211_configure_filter (struct ieee80211_local *local)
 
int ieee80211_hw_config (struct ieee80211_local *local, u32 changed)
 
void ieee80211_bss_info_change_notify (struct ieee80211_sub_if_data *sdata, u32 changed)
 
u32 ieee80211_reset_erp_info (struct ieee80211_sub_if_data *sdata)
 
void ieee80211_restart_hw (struct ieee80211_hw *hw)
 
 EXPORT_SYMBOL (ieee80211_restart_hw)
 
void ieee80211_napi_schedule (struct ieee80211_hw *hw)
 
 EXPORT_SYMBOL (ieee80211_napi_schedule)
 
void ieee80211_napi_complete (struct ieee80211_hw *hw)
 
 EXPORT_SYMBOL (ieee80211_napi_complete)
 
struct ieee80211_hwieee80211_alloc_hw (size_t priv_data_len, const struct ieee80211_ops *ops)
 
 EXPORT_SYMBOL (ieee80211_alloc_hw)
 
int ieee80211_register_hw (struct ieee80211_hw *hw)
 
 EXPORT_SYMBOL (ieee80211_register_hw)
 
void ieee80211_unregister_hw (struct ieee80211_hw *hw)
 
 EXPORT_SYMBOL (ieee80211_unregister_hw)
 
void ieee80211_free_hw (struct ieee80211_hw *hw)
 
 EXPORT_SYMBOL (ieee80211_free_hw)
 
 subsys_initcall (ieee80211_init)
 
 module_exit (ieee80211_exit)
 
 MODULE_DESCRIPTION ("IEEE 802.11 subsystem")
 
 MODULE_LICENSE ("GPL")
 

Function Documentation

EXPORT_SYMBOL ( ieee80211_restart_hw  )
EXPORT_SYMBOL ( ieee80211_napi_schedule  )
EXPORT_SYMBOL ( ieee80211_napi_complete  )
EXPORT_SYMBOL ( ieee80211_alloc_hw  )
EXPORT_SYMBOL ( ieee80211_register_hw  )
EXPORT_SYMBOL ( ieee80211_unregister_hw  )
EXPORT_SYMBOL ( ieee80211_free_hw  )
struct ieee80211_hw* ieee80211_alloc_hw ( size_t  priv_data_len,
const struct ieee80211_ops ops 
)
read

ieee80211_alloc_hw - Allocate a new hardware device

This must be called once for each hardware device. The returned pointer must be used to refer to this device when calling other functions. mac80211 allocates a private data area for the driver pointed to by in &struct ieee80211_hw, the size of this area is given as .

: length of private data : callbacks for this device

Definition at line 537 of file main.c.

void ieee80211_bss_info_change_notify ( struct ieee80211_sub_if_data sdata,
u32  changed 
)

Definition at line 189 of file main.c.

void ieee80211_configure_filter ( struct ieee80211_local local)

Definition at line 38 of file main.c.

void ieee80211_free_hw ( struct ieee80211_hw hw)

ieee80211_free_hw - free hardware descriptor

This function frees everything that was allocated, including the private data for the driver. You must call ieee80211_unregister_hw() before calling this function.

: the hardware to free

Definition at line 1066 of file main.c.

int ieee80211_hw_config ( struct ieee80211_local local,
u32  changed 
)

Definition at line 96 of file main.c.

void ieee80211_napi_complete ( struct ieee80211_hw hw)

ieee80211_napi_complete - complete NAPI polling

Use this function to finish NAPI polling on a device.

: the hardware to stop polling

Definition at line 453 of file main.c.

void ieee80211_napi_schedule ( struct ieee80211_hw hw)

ieee80211_napi_schedule - schedule NAPI poll

Use this function to schedule NAPI polling on a device.

: the hardware to start polling

Definition at line 445 of file main.c.

int ieee80211_register_hw ( struct ieee80211_hw hw)

ieee80211_register_hw - Register hardware device

You must call this function before any other functions in mac80211. Note that before a hardware can be registered, you need to fill the contained wiphy's information.

: the device to register as returned by ieee80211_alloc_hw()

Definition at line 689 of file main.c.

u32 ieee80211_reset_erp_info ( struct ieee80211_sub_if_data sdata)

Definition at line 266 of file main.c.

void ieee80211_restart_hw ( struct ieee80211_hw hw)

ieee80211_restart_hw - restart hardware completely

Call this function when the hardware was restarted for some reason (hardware error, ...) and the driver is unable to restore its state by itself. mac80211 assumes that at this point the driver/hardware is completely uninitialised and stopped, it starts the process by calling the ->start() operation. The driver will need to reset all internal state that it has prior to calling this function.

: the hardware to restart

Definition at line 338 of file main.c.

void ieee80211_unregister_hw ( struct ieee80211_hw hw)

ieee80211_unregister_hw - Unregister a hardware device

This function instructs mac80211 to free allocated resources and unregister netdevices from the networking subsystem.

: the hardware to unregister

Definition at line 1013 of file main.c.

MODULE_DESCRIPTION ( "IEEE 802.11 subsystem"  )
module_exit ( ieee80211_exit  )
MODULE_LICENSE ( "GPL"  )
subsys_initcall ( ieee80211_init  )