Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
cmd.c File Reference
#include "cmd.h"
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/crc7.h>
#include "wl1251.h"
#include "reg.h"
#include "io.h"
#include "ps.h"
#include "acx.h"

Go to the source code of this file.

Functions

int wl1251_cmd_send (struct wl1251 *wl, u16 id, void *buf, size_t len)
 
int wl1251_cmd_test (struct wl1251 *wl, void *buf, size_t buf_len, u8 answer)
 
int wl1251_cmd_interrogate (struct wl1251 *wl, u16 id, void *buf, size_t len)
 
int wl1251_cmd_configure (struct wl1251 *wl, u16 id, void *buf, size_t len)
 
int wl1251_cmd_vbm (struct wl1251 *wl, u8 identity, void *bitmap, u16 bitmap_len, u8 bitmap_control)
 
int wl1251_cmd_data_path (struct wl1251 *wl, u8 channel, bool enable)
 
int wl1251_cmd_join (struct wl1251 *wl, u8 bss_type, u8 channel, u16 beacon_interval, u8 dtim_interval)
 
int wl1251_cmd_ps_mode (struct wl1251 *wl, u8 ps_mode)
 
int wl1251_cmd_read_memory (struct wl1251 *wl, u32 addr, void *answer, size_t len)
 
int wl1251_cmd_template_set (struct wl1251 *wl, u16 cmd_id, void *buf, size_t buf_len)
 
int wl1251_cmd_scan (struct wl1251 *wl, u8 *ssid, size_t ssid_len, struct ieee80211_channel *channels[], unsigned int n_channels, unsigned int n_probes)
 
int wl1251_cmd_trigger_scan_to (struct wl1251 *wl, u32 timeout)
 

Function Documentation

int wl1251_cmd_configure ( struct wl1251 wl,
u16  id,
void buf,
size_t  len 
)

write acx value to firmware

: wl struct : acx id : buffer containing acx, including all headers, must work with dma : length of buf

Definition at line 147 of file cmd.c.

int wl1251_cmd_data_path ( struct wl1251 wl,
u8  channel,
bool  enable 
)

Definition at line 206 of file cmd.c.

int wl1251_cmd_interrogate ( struct wl1251 wl,
u16  id,
void buf,
size_t  len 
)

read acx from firmware

: wl struct : acx id : buffer for the response, including all headers, must work with dma : length of buf

Definition at line 109 of file cmd.c.

int wl1251_cmd_join ( struct wl1251 wl,
u8  bss_type,
u8  channel,
u16  beacon_interval,
u8  dtim_interval 
)

Definition at line 255 of file cmd.c.

int wl1251_cmd_ps_mode ( struct wl1251 wl,
u8  ps_mode 
)

Definition at line 300 of file cmd.c.

int wl1251_cmd_read_memory ( struct wl1251 wl,
u32  addr,
void answer,
size_t  len 
)

Definition at line 331 of file cmd.c.

int wl1251_cmd_scan ( struct wl1251 wl,
u8 ssid,
size_t  ssid_len,
struct ieee80211_channel channels[],
unsigned int  n_channels,
unsigned int  n_probes 
)

Definition at line 406 of file cmd.c.

int wl1251_cmd_send ( struct wl1251 wl,
u16  id,
void buf,
size_t  len 
)

send command to firmware

: wl struct : command id : buffer containing the command, must work with dma : length of the buffer

Definition at line 21 of file cmd.c.

int wl1251_cmd_template_set ( struct wl1251 wl,
u16  cmd_id,
void buf,
size_t  buf_len 
)

Definition at line 371 of file cmd.c.

int wl1251_cmd_test ( struct wl1251 wl,
void buf,
size_t  buf_len,
u8  answer 
)

send test command to firmware

: wl struct : buffer containing the command, with all headers, must work with dma : length of the buffer : is answer needed

Definition at line 68 of file cmd.c.

int wl1251_cmd_trigger_scan_to ( struct wl1251 wl,
u32  timeout 
)

Definition at line 465 of file cmd.c.

int wl1251_cmd_vbm ( struct wl1251 wl,
u8  identity,
void bitmap,
u16  bitmap_len,
u8  bitmap_control 
)

Definition at line 168 of file cmd.c.