Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
main.c File Reference
#include <linux/module.h>
#include <linux/firmware.h>
#include <linux/delay.h>
#include <linux/spi/spi.h>
#include <linux/crc32.h>
#include <linux/etherdevice.h>
#include <linux/vmalloc.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/wl12xx.h>
#include <linux/sched.h>
#include <linux/interrupt.h>
#include "wlcore.h"
#include "debug.h"
#include "wl12xx_80211.h"
#include "io.h"
#include "event.h"
#include "tx.h"
#include "rx.h"
#include "ps.h"
#include "init.h"
#include "debugfs.h"
#include "cmd.h"
#include "boot.h"
#include "testmode.h"
#include "scan.h"
#include "hw_ops.h"

Go to the source code of this file.

Data Structures

struct  vif_counter_data
 
struct  wl1271_filter_params
 

Macros

#define WL1271_BOOT_RETRIES   3
 
#define WL1271_BOOT_RETRIES   3
 
#define WL1271_IRQ_MAX_LOOPS   256
 
#define WLCORE_FW_LOG_END   0x2000000
 
#define TOTAL_TX_DUMMY_PACKET_SIZE   (ALIGN(1400, 512))
 
#define WL1271_SUPPORTED_FILTERS
 
#define WL1271_DEFAULT_CHANNEL   0
 

Functions

int wl1271_recalc_rx_streaming (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
void wl12xx_rearm_tx_watchdog_locked (struct wl1271 *wl)
 
void wl12xx_queue_recovery_work (struct wl1271 *wl)
 
size_t wl12xx_copy_fwlog (struct wl1271 *wl, u8 *memblock, size_t maxlen)
 
int wl1271_plt_start (struct wl1271 *wl, const enum plt_mode plt_mode)
 
int wl1271_plt_stop (struct wl1271 *wl)
 
int wl1271_tx_dummy_packet (struct wl1271 *wl)
 
int wlcore_set_key (struct wl1271 *wl, enum set_key_cmd cmd, struct ieee80211_vif *vif, struct ieee80211_sta *sta, struct ieee80211_key_conf *key_conf)
 
 EXPORT_SYMBOL_GPL (wlcore_set_key)
 
void wl1271_free_sta (struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 hlid)
 
u8 wlcore_rate_to_idx (struct wl1271 *wl, u8 rate, enum ieee80211_band band)
 
struct ieee80211_hwwlcore_alloc_hw (size_t priv_size, u32 aggr_buf_size)
 
 EXPORT_SYMBOL_GPL (wlcore_alloc_hw)
 
int wlcore_free_hw (struct wl1271 *wl)
 
 EXPORT_SYMBOL_GPL (wlcore_free_hw)
 
int __devinit wlcore_probe (struct wl1271 *wl, struct platform_device *pdev)
 
 EXPORT_SYMBOL_GPL (wlcore_probe)
 
int __devexit wlcore_remove (struct platform_device *pdev)
 
 EXPORT_SYMBOL_GPL (wlcore_remove)
 
 EXPORT_SYMBOL_GPL (wl12xx_debug_level)
 
 module_param_named (debug_level, wl12xx_debug_level, uint, S_IRUSR|S_IWUSR)
 
 MODULE_PARM_DESC (debug_level,"wl12xx debugging level")
 
 module_param_named (fwlog, fwlog_param, charp, 0)
 
 MODULE_PARM_DESC (fwlog,"FW logger options: continuous, ondemand, dbgpins or disable")
 
 module_param (bug_on_recovery, bool, S_IRUSR|S_IWUSR)
 
 MODULE_PARM_DESC (bug_on_recovery,"BUG() on fw recovery")
 
 module_param (no_recovery, bool, S_IRUSR|S_IWUSR)
 
 MODULE_PARM_DESC (no_recovery,"Prevent HW recovery. FW will remain stuck.")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Luciano Coelho <[email protected]>")
 
 MODULE_AUTHOR ("Juuso Oikarinen <[email protected]>")
 
 MODULE_FIRMWARE (WL12XX_NVS_NAME)
 

Variables

u32 wl12xx_debug_level = DEBUG_NONE
 

Macro Definition Documentation

#define TOTAL_TX_DUMMY_PACKET_SIZE   (ALIGN(1400, 512))

Definition at line 1260 of file main.c.

#define WL1271_BOOT_RETRIES   3

Definition at line 56 of file main.c.

#define WL1271_BOOT_RETRIES   3

Definition at line 56 of file main.c.

#define WL1271_DEFAULT_CHANNEL   0

Definition at line 5327 of file main.c.

#define WL1271_IRQ_MAX_LOOPS   256

Definition at line 495 of file main.c.

#define WL1271_SUPPORTED_FILTERS
Value:
FIF_ALLMULTI | \
FIF_FCSFAIL | \
FIF_BCN_PRBRESP_PROMISC | \
FIF_CONTROL | \
FIF_OTHER_BSS)

Definition at line 2817 of file main.c.

#define WLCORE_FW_LOG_END   0x2000000

Definition at line 783 of file main.c.

Function Documentation

EXPORT_SYMBOL_GPL ( wlcore_set_key  )
EXPORT_SYMBOL_GPL ( wlcore_alloc_hw  )
EXPORT_SYMBOL_GPL ( wlcore_free_hw  )
EXPORT_SYMBOL_GPL ( wlcore_probe  )
EXPORT_SYMBOL_GPL ( wlcore_remove  )
EXPORT_SYMBOL_GPL ( wl12xx_debug_level  )
MODULE_AUTHOR ( "Luciano Coelho <[email protected]>"  )
MODULE_AUTHOR ( "Juuso Oikarinen <[email protected]>"  )
MODULE_FIRMWARE ( WL12XX_NVS_NAME  )
MODULE_LICENSE ( "GPL"  )
module_param ( bug_on_recovery  ,
bool  ,
S_IRUSR S_IWUSR 
)
module_param ( no_recovery  ,
bool  ,
S_IRUSR S_IWUSR 
)
module_param_named ( debug_level  ,
wl12xx_debug_level  ,
uint  ,
S_IRUSR S_IWUSR 
)
module_param_named ( fwlog  ,
fwlog_param  ,
charp  ,
 
)
MODULE_PARM_DESC ( debug_level  ,
"wl12xx debugging level  
)
MODULE_PARM_DESC ( fwlog  ,
"FW logger options:  continuous,
ondemand  ,
dbgpins or disable  
)
MODULE_PARM_DESC ( bug_on_recovery  ,
"BUG() on fw recovery"   
)
MODULE_PARM_DESC ( no_recovery  ,
"Prevent HW recovery. FW will remain stuck."   
)
void wl1271_free_sta ( struct wl1271 wl,
struct wl12xx_vif wlvif,
u8  hlid 
)

Definition at line 4317 of file main.c.

int wl1271_plt_start ( struct wl1271 wl,
const enum plt_mode plt_mode   
)

Definition at line 1043 of file main.c.

int wl1271_plt_stop ( struct wl1271 wl)

Definition at line 1108 of file main.c.

int wl1271_recalc_rx_streaming ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 136 of file main.c.

int wl1271_tx_dummy_packet ( struct wl1271 wl)

Definition at line 1228 of file main.c.

size_t wl12xx_copy_fwlog ( struct wl1271 wl,
u8 memblock,
size_t  maxlen 
)

Definition at line 760 of file main.c.

void wl12xx_queue_recovery_work ( struct wl1271 wl)

Definition at line 747 of file main.c.

void wl12xx_rearm_tx_watchdog_locked ( struct wl1271 wl)

Definition at line 230 of file main.c.

struct ieee80211_hw* wlcore_alloc_hw ( size_t  priv_size,
u32  aggr_buf_size 
)
read

Definition at line 5329 of file main.c.

int wlcore_free_hw ( struct wl1271 wl)

Definition at line 5469 of file main.c.

int __devinit wlcore_probe ( struct wl1271 wl,
struct platform_device pdev 
)

Definition at line 5662 of file main.c.

u8 wlcore_rate_to_idx ( struct wl1271 wl,
u8  rate,
enum ieee80211_band  band 
)

Definition at line 4881 of file main.c.

int __devexit wlcore_remove ( struct platform_device pdev)

Definition at line 5685 of file main.c.

int wlcore_set_key ( struct wl1271 wl,
enum set_key_cmd  cmd,
struct ieee80211_vif vif,
struct ieee80211_sta sta,
struct ieee80211_key_conf key_conf 
)

Definition at line 3107 of file main.c.

Variable Documentation

u32 wl12xx_debug_level = DEBUG_NONE

Definition at line 5705 of file main.c.