Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cmd.c File Reference
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/spi/spi.h>
#include <linux/etherdevice.h>
#include <linux/ieee80211.h>
#include <linux/slab.h>
#include "wlcore.h"
#include "debug.h"
#include "io.h"
#include "acx.h"
#include "wl12xx_80211.h"
#include "cmd.h"
#include "event.h"
#include "tx.h"
#include "hw_ops.h"

Go to the source code of this file.

Macros

#define WL1271_CMD_FAST_POLL_COUNT   50
 
#define WL1271_WAIT_EVENT_FAST_POLL_COUNT   20
 

Functions

int wl1271_cmd_send (struct wl1271 *wl, u16 id, void *buf, size_t len, size_t res_len)
 
int wl12xx_cmd_role_enable (struct wl1271 *wl, u8 *addr, u8 role_type, u8 *role_id)
 
int wl12xx_cmd_role_disable (struct wl1271 *wl, u8 *role_id)
 
int wl12xx_allocate_link (struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 *hlid)
 
void wl12xx_free_link (struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 *hlid)
 
int wl12xx_cmd_role_start_sta (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
int wl12xx_cmd_role_stop_sta (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
int wl12xx_cmd_role_start_ap (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
int wl12xx_cmd_role_stop_ap (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
int wl12xx_cmd_role_start_ibss (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
int wl1271_cmd_test (struct wl1271 *wl, void *buf, size_t buf_len, u8 answer)
 
 EXPORT_SYMBOL_GPL (wl1271_cmd_test)
 
int wl1271_cmd_interrogate (struct wl1271 *wl, u16 id, void *buf, size_t len)
 
int wl1271_cmd_configure (struct wl1271 *wl, u16 id, void *buf, size_t len)
 
 EXPORT_SYMBOL_GPL (wl1271_cmd_configure)
 
int wl1271_cmd_data_path (struct wl1271 *wl, bool enable)
 
 EXPORT_SYMBOL_GPL (wl1271_cmd_data_path)
 
int wl1271_cmd_ps_mode (struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 ps_mode, u16 auto_ps_timeout)
 
int wl1271_cmd_template_set (struct wl1271 *wl, u8 role_id, u16 template_id, void *buf, size_t buf_len, int index, u32 rates)
 
int wl12xx_cmd_build_null_data (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
int wl12xx_cmd_build_klv_null_data (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
int wl1271_cmd_build_ps_poll (struct wl1271 *wl, struct wl12xx_vif *wlvif, u16 aid)
 
int wl12xx_cmd_build_probe_req (struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 role_id, u8 band, const u8 *ssid, size_t ssid_len, const u8 *ie, size_t ie_len, bool sched_scan)
 
struct sk_buffwl1271_cmd_build_ap_probe_req (struct wl1271 *wl, struct wl12xx_vif *wlvif, struct sk_buff *skb)
 
int wl1271_cmd_build_arp_rsp (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
int wl1271_build_qos_null_data (struct wl1271 *wl, struct ieee80211_vif *vif)
 
int wl12xx_cmd_set_default_wep_key (struct wl1271 *wl, u8 id, u8 hlid)
 
int wl1271_cmd_set_sta_key (struct wl1271 *wl, struct wl12xx_vif *wlvif, u16 action, u8 id, u8 key_type, u8 key_size, const u8 *key, const u8 *addr, u32 tx_seq_32, u16 tx_seq_16)
 
int wl1271_cmd_set_ap_key (struct wl1271 *wl, struct wl12xx_vif *wlvif, u16 action, u8 id, u8 key_type, u8 key_size, const u8 *key, u8 hlid, u32 tx_seq_32, u16 tx_seq_16)
 
int wl12xx_cmd_set_peer_state (struct wl1271 *wl, u8 hlid)
 
int wl12xx_cmd_add_peer (struct wl1271 *wl, struct wl12xx_vif *wlvif, struct ieee80211_sta *sta, u8 hlid)
 
int wl12xx_cmd_remove_peer (struct wl1271 *wl, u8 hlid)
 
int wl12xx_cmd_config_fwlog (struct wl1271 *wl)
 
int wl12xx_cmd_start_fwlog (struct wl1271 *wl)
 
int wl12xx_cmd_stop_fwlog (struct wl1271 *wl)
 
int wl12xx_roc (struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 role_id)
 
int wl12xx_croc (struct wl1271 *wl, u8 role_id)
 
int wl12xx_cmd_channel_switch (struct wl1271 *wl, struct wl12xx_vif *wlvif, struct ieee80211_channel_switch *ch_switch)
 
int wl12xx_cmd_stop_channel_switch (struct wl1271 *wl)
 
int wl12xx_start_dev (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
int wl12xx_stop_dev (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 

Macro Definition Documentation

#define WL1271_CMD_FAST_POLL_COUNT   50

Definition at line 41 of file cmd.c.

#define WL1271_WAIT_EVENT_FAST_POLL_COUNT   20

Definition at line 42 of file cmd.c.

Function Documentation

EXPORT_SYMBOL_GPL ( wl1271_cmd_test  )
EXPORT_SYMBOL_GPL ( wl1271_cmd_configure  )
EXPORT_SYMBOL_GPL ( wl1271_cmd_data_path  )
int wl1271_build_qos_null_data ( struct wl1271 wl,
struct ieee80211_vif vif 
)

Definition at line 1194 of file cmd.c.

struct sk_buff* wl1271_cmd_build_ap_probe_req ( struct wl1271 wl,
struct wl12xx_vif wlvif,
struct sk_buff skb 
)
read

Definition at line 1070 of file cmd.c.

int wl1271_cmd_build_arp_rsp ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 1102 of file cmd.c.

int wl1271_cmd_build_ps_poll ( struct wl1271 wl,
struct wl12xx_vif wlvif,
u16  aid 
)

Definition at line 1008 of file cmd.c.

int wl1271_cmd_configure ( struct wl1271 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 803 of file cmd.c.

int wl1271_cmd_data_path ( struct wl1271 wl,
bool  enable 
)

Definition at line 825 of file cmd.c.

int wl1271_cmd_interrogate ( struct wl1271 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 776 of file cmd.c.

int wl1271_cmd_ps_mode ( struct wl1271 wl,
struct wl12xx_vif wlvif,
u8  ps_mode,
u16  auto_ps_timeout 
)

Definition at line 876 of file cmd.c.

int wl1271_cmd_send ( struct wl1271 wl,
u16  id,
void buf,
size_t  len,
size_t  res_len 
)

Definition at line 52 of file cmd.c.

int wl1271_cmd_set_ap_key ( struct wl1271 wl,
struct wl12xx_vif wlvif,
u16  action,
u8  id,
u8  key_type,
u8  key_size,
const u8 key,
u8  hlid,
u32  tx_seq_32,
u16  tx_seq_16 
)

Definition at line 1318 of file cmd.c.

int wl1271_cmd_set_sta_key ( struct wl1271 wl,
struct wl12xx_vif wlvif,
u16  action,
u8  id,
u8  key_type,
u8  key_size,
const u8 key,
const u8 addr,
u32  tx_seq_32,
u16  tx_seq_16 
)

Definition at line 1249 of file cmd.c.

int wl1271_cmd_template_set ( struct wl1271 wl,
u8  role_id,
u16  template_id,
void buf,
size_t  buf_len,
int  index,
u32  rates 
)

Definition at line 906 of file cmd.c.

int wl1271_cmd_test ( struct wl1271 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 747 of file cmd.c.

int wl12xx_allocate_link ( struct wl1271 wl,
struct wl12xx_vif wlvif,
u8 hlid 
)

Definition at line 281 of file cmd.c.

int wl12xx_cmd_add_peer ( struct wl1271 wl,
struct wl12xx_vif wlvif,
struct ieee80211_sta sta,
u8  hlid 
)

Definition at line 1409 of file cmd.c.

int wl12xx_cmd_build_klv_null_data ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 983 of file cmd.c.

int wl12xx_cmd_build_null_data ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 950 of file cmd.c.

int wl12xx_cmd_build_probe_req ( struct wl1271 wl,
struct wl12xx_vif wlvif,
u8  role_id,
u8  band,
const u8 ssid,
size_t  ssid_len,
const u8 ie,
size_t  ie_len,
bool  sched_scan 
)

Definition at line 1028 of file cmd.c.

Definition at line 1720 of file cmd.c.

Definition at line 1509 of file cmd.c.

int wl12xx_cmd_remove_peer ( struct wl1271 wl,
u8  hlid 
)

Definition at line 1466 of file cmd.c.

int wl12xx_cmd_role_disable ( struct wl1271 wl,
u8 role_id 
)

Definition at line 248 of file cmd.c.

int wl12xx_cmd_role_enable ( struct wl1271 wl,
u8 addr,
u8  role_type,
u8 role_id 
)

Definition at line 205 of file cmd.c.

int wl12xx_cmd_role_start_ap ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 546 of file cmd.c.

int wl12xx_cmd_role_start_ibss ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 675 of file cmd.c.

int wl12xx_cmd_role_start_sta ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 438 of file cmd.c.

int wl12xx_cmd_role_stop_ap ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 644 of file cmd.c.

int wl12xx_cmd_role_stop_sta ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 499 of file cmd.c.

int wl12xx_cmd_set_default_wep_key ( struct wl1271 wl,
u8  id,
u8  hlid 
)

Definition at line 1218 of file cmd.c.

Definition at line 1380 of file cmd.c.

Definition at line 1541 of file cmd.c.

Definition at line 1756 of file cmd.c.

Definition at line 1567 of file cmd.c.

int wl12xx_croc ( struct wl1271 wl,
u8  role_id 
)

Definition at line 1696 of file cmd.c.

void wl12xx_free_link ( struct wl1271 wl,
struct wl12xx_vif wlvif,
u8 hlid 
)

Definition at line 297 of file cmd.c.

int wl12xx_roc ( struct wl1271 wl,
struct wl12xx_vif wlvif,
u8  role_id 
)

Definition at line 1667 of file cmd.c.

int wl12xx_start_dev ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 1783 of file cmd.c.

int wl12xx_stop_dev ( struct wl1271 wl,
struct wl12xx_vif wlvif 
)

Definition at line 1817 of file cmd.c.