Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
cmd.h File Reference
#include "wlcore.h"

Go to the source code of this file.

Data Structures

struct  wl1271_cmd_header
 
struct  wl1271_command
 
struct  wl12xx_cmd_role_enable
 
struct  wl12xx_cmd_role_disable
 
struct  wl12xx_cmd_role_start
 
struct  wl12xx_cmd_role_stop
 
struct  cmd_enabledisable_path
 
struct  wl1271_cmd_template_set
 
struct  wl1271_tim
 
struct  wl1271_cmd_ps_params
 
struct  wl1271_cmd_set_keys
 
struct  wl1271_cmd_test_header
 
struct  wl12xx_cmd_set_peer_state
 
struct  wl12xx_cmd_roc
 
struct  wl12xx_cmd_croc
 
struct  wl12xx_cmd_add_peer
 
struct  wl12xx_cmd_remove_peer
 
struct  wl12xx_cmd_config_fwlog
 
struct  wl12xx_cmd_start_fwlog
 
struct  wl12xx_cmd_stop_fwlog
 
struct  wl12xx_cmd_channel_switch
 
struct  wl12xx_cmd_stop_channel_switch
 
struct  wl1271_cmd_cal_p2g
 

Macros

#define MAX_CMD_PARAMS   572
 
#define WL1271_COMMAND_TIMEOUT   2000
 
#define WL1271_CMD_TEMPL_DFLT_SIZE   252
 
#define WL1271_CMD_TEMPL_MAX_SIZE   512
 
#define WL1271_EVENT_TIMEOUT   1500
 
#define WL1271_CMD_MAX_PARAMS   572
 
#define CMDMBOX_HEADER_LEN   4
 
#define CMDMBOX_INFO_ELEM_HEADER_LEN   4
 
#define WL1271_JOIN_CMD_CTRL_TX_FLUSH   0x80 /* Firmware flushes all Tx */
 
#define WL1271_JOIN_CMD_TX_SESSION_OFFSET   1
 
#define WL1271_JOIN_CMD_BSS_TYPE_5GHZ   0x10
 
#define WL1271_RATE_AUTOMATIC   0
 
#define TIM_ELE_ID   5
 
#define PARTIAL_VBM_MAX   251
 
#define NUM_ACCESS_CATEGORIES_COPY   4
 
#define WL1271_PD_REFERENCE_POINT_BAND_B_G   0
 
#define WL1271_CMD_STA_STATE_CONNECTED   1
 
#define MAX_TLV_LENGTH   500
 
#define TEST_CMD_P2G_CAL   2 /* TX BiP */
 

Enumerations

enum  wl1271_commands {
  CMD_INTERROGATE = 1, CMD_CONFIGURE = 2, CMD_ENABLE_RX = 3, CMD_ENABLE_TX = 4,
  CMD_DISABLE_RX = 5, CMD_DISABLE_TX = 6, CMD_SCAN = 7, CMD_STOP_SCAN = 8,
  CMD_SET_KEYS = 9, CMD_READ_MEMORY = 10, CMD_WRITE_MEMORY = 11, CMD_SET_TEMPLATE = 12,
  CMD_TEST = 13, CMD_NOISE_HIST = 14, CMD_QUIET_ELEMENT_SET_STATE = 15, CMD_SET_BCN_MODE = 16,
  CMD_MEASUREMENT = 17, CMD_STOP_MEASUREMENT = 18, CMD_SET_PS_MODE = 19, CMD_CHANNEL_SWITCH = 20,
  CMD_STOP_CHANNEL_SWICTH = 21, CMD_AP_DISCOVERY = 22, CMD_STOP_AP_DISCOVERY = 23, CMD_HEALTH_CHECK = 24,
  CMD_DEBUG = 25, CMD_TRIGGER_SCAN_TO = 26, CMD_CONNECTION_SCAN_CFG = 27, CMD_CONNECTION_SCAN_SSID_CFG = 28,
  CMD_START_PERIODIC_SCAN = 29, CMD_STOP_PERIODIC_SCAN = 30, CMD_SET_PEER_STATE = 31, CMD_REMAIN_ON_CHANNEL = 32,
  CMD_CANCEL_REMAIN_ON_CHANNEL = 33, CMD_CONFIG_FWLOGGER = 34, CMD_START_FWLOGGER = 35, CMD_STOP_FWLOGGER = 36,
  CMD_ADD_PEER = 37, CMD_REMOVE_PEER = 38, CMD_ROLE_ENABLE = 39, CMD_ROLE_DISABLE = 40,
  CMD_ROLE_START = 41, CMD_ROLE_STOP = 42, CMD_START_RADAR_DETECTION = 43, CMD_STOP_RADAR_DETECTION = 44,
  CMD_WFD_START_DISCOVERY = 45, CMD_WFD_STOP_DISCOVERY = 46, CMD_WFD_ATTRIBUTE_CONFIG = 47, CMD_NOP = 48,
  CMD_LAST_COMMAND, MAX_COMMAND_ID = 0xFFFF
}
 
enum  cmd_templ {
  CMD_TEMPL_NULL_DATA = 0, CMD_TEMPL_BEACON, CMD_TEMPL_CFG_PROBE_REQ_2_4, CMD_TEMPL_CFG_PROBE_REQ_5,
  CMD_TEMPL_PROBE_RESPONSE, CMD_TEMPL_QOS_NULL_DATA, CMD_TEMPL_PS_POLL, CMD_TEMPL_KLV,
  CMD_TEMPL_DISCONNECT, CMD_TEMPL_APP_PROBE_REQ_2_4, CMD_TEMPL_APP_PROBE_REQ_5, CMD_TEMPL_BAR,
  CMD_TEMPL_CTS, CMD_TEMPL_AP_BEACON, CMD_TEMPL_AP_PROBE_RESPONSE, CMD_TEMPL_ARP_RSP,
  CMD_TEMPL_DEAUTH_AP, CMD_TEMPL_TEMPORARY, CMD_TEMPL_LINK_MEASUREMENT_REPORT, CMD_TEMPL_MAX = 0xff
}
 
enum  {
  CMD_MAILBOX_IDLE = 0, CMD_STATUS_SUCCESS = 1, CMD_STATUS_UNKNOWN_CMD = 2, CMD_STATUS_UNKNOWN_IE = 3,
  CMD_STATUS_REJECT_MEAS_SG_ACTIVE = 11, CMD_STATUS_RX_BUSY = 13, CMD_STATUS_INVALID_PARAM = 14, CMD_STATUS_TEMPLATE_TOO_LARGE = 15,
  CMD_STATUS_OUT_OF_MEMORY = 16, CMD_STATUS_STA_TABLE_FULL = 17, CMD_STATUS_RADIO_ERROR = 18, CMD_STATUS_WRONG_NESTING = 19,
  CMD_STATUS_TIMEOUT = 21, CMD_STATUS_FW_RESET = 22, CMD_STATUS_TEMPLATE_OOM = 23, CMD_STATUS_NO_RX_BA_SESSION = 24,
  MAX_COMMAND_STATUS = 0xff
}
 
enum  { BSS_TYPE_IBSS = 0, BSS_TYPE_STA_BSS = 2, BSS_TYPE_AP_BSS = 3, MAX_BSS_TYPE = 0xFF }
 
enum  wlcore_band {
  WLCORE_BAND_2_4GHZ = 0, WLCORE_BAND_5GHZ = 1, WLCORE_BAND_JAPAN_4_9_GHZ = 2, WLCORE_BAND_DEFAULT = WLCORE_BAND_2_4GHZ,
  WLCORE_BAND_INVALID = 0x7E, WLCORE_BAND_MAX_RADIO = 0x7F
}
 
enum  wlcore_channel_type { WLCORE_CHAN_NO_HT, WLCORE_CHAN_HT20, WLCORE_CHAN_HT40MINUS, WLCORE_CHAN_HT40PLUS }
 
enum  wl1271_cmd_ps_mode { STATION_AUTO_PS_MODE, STATION_ACTIVE_MODE, STATION_POWER_SAVE_MODE }
 
enum  wl1271_cmd_key_action { KEY_ADD_OR_REPLACE = 1, KEY_REMOVE = 2, KEY_SET_ID = 3, MAX_KEY_ACTION = 0xffff }
 
enum  wl1271_cmd_lid_key_type { UNICAST_LID_TYPE = 0, BROADCAST_LID_TYPE = 1, WEP_DEFAULT_LID_TYPE = 2 }
 
enum  wl1271_cmd_key_type {
  KEY_NONE = 0, KEY_WEP = 1, KEY_TKIP = 2, KEY_AES = 3,
  KEY_GEM = 4
}
 
enum  wl1271_channel_tune_bands { WL1271_CHANNEL_TUNE_BAND_2_4, WL1271_CHANNEL_TUNE_BAND_5, WL1271_CHANNEL_TUNE_BAND_4_9 }
 
enum  wl1271_disconnect_type { DISCONNECT_IMMEDIATE, DISCONNECT_DEAUTH, DISCONNECT_DISASSOC }
 
enum  wl12xx_ssid_type { WL12XX_SSID_TYPE_PUBLIC = 0, WL12XX_SSID_TYPE_HIDDEN = 1, WL12XX_SSID_TYPE_ANY = 2 }
 
enum  wl1271_psd_type { WL1271_PSD_LEGACY = 0, WL1271_PSD_UPSD_TRIGGER = 1, WL1271_PSD_LEGACY_PSPOLL = 2, WL1271_PSD_SAPSD = 3 }
 
enum  wl12xx_fwlogger_log_mode { WL12XX_FWLOG_CONTINUOUS, WL12XX_FWLOG_ON_DEMAND }
 
enum  wl12xx_fwlogger_timestamp { WL12XX_FWLOG_TIMESTAMP_DISABLED, WL12XX_FWLOG_TIMESTAMP_ENABLED }
 
enum  wl12xx_fwlogger_output { WL12XX_FWLOG_OUTPUT_NONE, WL12XX_FWLOG_OUTPUT_DBG_PINS, WL12XX_FWLOG_OUTPUT_HOST }
 

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_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 wl12xx_start_dev (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
int wl12xx_stop_dev (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
int wl1271_cmd_test (struct wl1271 *wl, void *buf, size_t buf_len, u8 answer)
 
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)
 
int wl1271_cmd_data_path (struct wl1271 *wl, bool enable)
 
int wl1271_cmd_ps_mode (struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 ps_mode, u16 auto_ps_timeout)
 
int wl1271_cmd_read_memory (struct wl1271 *wl, u32 addr, void *answer, size_t len)
 
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 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_build_klv_null_data (struct wl1271 *wl, struct wl12xx_vif *wlvif)
 
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_roc (struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 role_id)
 
int wl12xx_croc (struct wl1271 *wl, u8 role_id)
 
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_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_allocate_link (struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 *hlid)
 
void wl12xx_free_link (struct wl1271 *wl, struct wl12xx_vif *wlvif, u8 *hlid)
 

Variables

struct wl1271_cmd_header __packed
 

Macro Definition Documentation

#define CMDMBOX_HEADER_LEN   4

Definition at line 226 of file cmd.h.

#define CMDMBOX_INFO_ELEM_HEADER_LEN   4

Definition at line 227 of file cmd.h.

#define MAX_CMD_PARAMS   572

Definition at line 158 of file cmd.h.

#define MAX_TLV_LENGTH   500

Definition at line 651 of file cmd.h.

#define NUM_ACCESS_CATEGORIES_COPY   4

Definition at line 415 of file cmd.h.

#define PARTIAL_VBM_MAX   251

Definition at line 389 of file cmd.h.

#define TEST_CMD_P2G_CAL   2 /* TX BiP */

Definition at line 652 of file cmd.h.

#define TIM_ELE_ID   5

Definition at line 388 of file cmd.h.

#define WL1271_CMD_MAX_PARAMS   572

Definition at line 199 of file cmd.h.

#define WL1271_CMD_STA_STATE_CONNECTED   1

Definition at line 511 of file cmd.h.

#define WL1271_CMD_TEMPL_DFLT_SIZE   252

Definition at line 188 of file cmd.h.

#define WL1271_CMD_TEMPL_MAX_SIZE   512

Definition at line 189 of file cmd.h.

#define WL1271_COMMAND_TIMEOUT   2000

Definition at line 187 of file cmd.h.

#define WL1271_EVENT_TIMEOUT   1500

Definition at line 190 of file cmd.h.

#define WL1271_JOIN_CMD_BSS_TYPE_5GHZ   0x10

Definition at line 238 of file cmd.h.

#define WL1271_JOIN_CMD_CTRL_TX_FLUSH   0x80 /* Firmware flushes all Tx */

Definition at line 236 of file cmd.h.

#define WL1271_JOIN_CMD_TX_SESSION_OFFSET   1

Definition at line 237 of file cmd.h.

#define WL1271_PD_REFERENCE_POINT_BAND_B_G   0

Definition at line 494 of file cmd.h.

#define WL1271_RATE_AUTOMATIC   0

Definition at line 368 of file cmd.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
CMD_MAILBOX_IDLE 
CMD_STATUS_SUCCESS 
CMD_STATUS_UNKNOWN_CMD 
CMD_STATUS_UNKNOWN_IE 
CMD_STATUS_REJECT_MEAS_SG_ACTIVE 
CMD_STATUS_RX_BUSY 
CMD_STATUS_INVALID_PARAM 
CMD_STATUS_TEMPLATE_TOO_LARGE 
CMD_STATUS_OUT_OF_MEMORY 
CMD_STATUS_STA_TABLE_FULL 
CMD_STATUS_RADIO_ERROR 
CMD_STATUS_WRONG_NESTING 
CMD_STATUS_TIMEOUT 
CMD_STATUS_FW_RESET 
CMD_STATUS_TEMPLATE_OOM 
CMD_STATUS_NO_RX_BA_SESSION 
MAX_COMMAND_STATUS 

Definition at line 206 of file cmd.h.

anonymous enum
Enumerator:
BSS_TYPE_IBSS 
BSS_TYPE_STA_BSS 
BSS_TYPE_AP_BSS 
MAX_BSS_TYPE 

Definition at line 229 of file cmd.h.

enum cmd_templ
Enumerator:
CMD_TEMPL_NULL_DATA 
CMD_TEMPL_BEACON 
CMD_TEMPL_CFG_PROBE_REQ_2_4 
CMD_TEMPL_CFG_PROBE_REQ_5 
CMD_TEMPL_PROBE_RESPONSE 
CMD_TEMPL_QOS_NULL_DATA 
CMD_TEMPL_PS_POLL 
CMD_TEMPL_KLV 
CMD_TEMPL_DISCONNECT 
CMD_TEMPL_APP_PROBE_REQ_2_4 
CMD_TEMPL_APP_PROBE_REQ_5 
CMD_TEMPL_BAR 
CMD_TEMPL_CTS 
CMD_TEMPL_AP_BEACON 
CMD_TEMPL_AP_PROBE_RESPONSE 
CMD_TEMPL_ARP_RSP 
CMD_TEMPL_DEAUTH_AP 
CMD_TEMPL_TEMPORARY 
CMD_TEMPL_LINK_MEASUREMENT_REPORT 
CMD_TEMPL_MAX 

Definition at line 160 of file cmd.h.

Enumerator:
WL1271_CHANNEL_TUNE_BAND_2_4 
WL1271_CHANNEL_TUNE_BAND_5 
WL1271_CHANNEL_TUNE_BAND_4_9 

Definition at line 488 of file cmd.h.

Enumerator:
KEY_ADD_OR_REPLACE 
KEY_REMOVE 
KEY_SET_ID 
MAX_KEY_ACTION 

Definition at line 417 of file cmd.h.

Enumerator:
KEY_NONE 
KEY_WEP 
KEY_TKIP 
KEY_AES 
KEY_GEM 

Definition at line 430 of file cmd.h.

Enumerator:
UNICAST_LID_TYPE 
BROADCAST_LID_TYPE 
WEP_DEFAULT_LID_TYPE 

Definition at line 424 of file cmd.h.

Enumerator:
STATION_AUTO_PS_MODE 
STATION_ACTIVE_MODE 
STATION_POWER_SAVE_MODE 

Definition at line 400 of file cmd.h.

Enumerator:
CMD_INTERROGATE 
CMD_CONFIGURE 
CMD_ENABLE_RX 
CMD_ENABLE_TX 
CMD_DISABLE_RX 
CMD_DISABLE_TX 
CMD_SCAN 
CMD_STOP_SCAN 
CMD_SET_KEYS 
CMD_READ_MEMORY 
CMD_WRITE_MEMORY 
CMD_SET_TEMPLATE 
CMD_TEST 
CMD_NOISE_HIST 
CMD_QUIET_ELEMENT_SET_STATE 
CMD_SET_BCN_MODE 
CMD_MEASUREMENT 
CMD_STOP_MEASUREMENT 
CMD_SET_PS_MODE 
CMD_CHANNEL_SWITCH 
CMD_STOP_CHANNEL_SWICTH 
CMD_AP_DISCOVERY 
CMD_STOP_AP_DISCOVERY 
CMD_HEALTH_CHECK 
CMD_DEBUG 
CMD_TRIGGER_SCAN_TO 
CMD_CONNECTION_SCAN_CFG 
CMD_CONNECTION_SCAN_SSID_CFG 
CMD_START_PERIODIC_SCAN 
CMD_STOP_PERIODIC_SCAN 
CMD_SET_PEER_STATE 
CMD_REMAIN_ON_CHANNEL 
CMD_CANCEL_REMAIN_ON_CHANNEL 
CMD_CONFIG_FWLOGGER 
CMD_START_FWLOGGER 
CMD_STOP_FWLOGGER 
CMD_ADD_PEER 
CMD_REMOVE_PEER 
CMD_ROLE_ENABLE 
CMD_ROLE_DISABLE 
CMD_ROLE_START 
CMD_ROLE_STOP 
CMD_START_RADAR_DETECTION 
CMD_STOP_RADAR_DETECTION 
CMD_WFD_START_DISCOVERY 
CMD_WFD_STOP_DISCOVERY 
CMD_WFD_ATTRIBUTE_CONFIG 
CMD_NOP 
CMD_LAST_COMMAND 
MAX_COMMAND_ID 

Definition at line 95 of file cmd.h.

Enumerator:
DISCONNECT_IMMEDIATE 
DISCONNECT_DEAUTH 
DISCONNECT_DISASSOC 

Definition at line 505 of file cmd.h.

Enumerator:
WL1271_PSD_LEGACY 
WL1271_PSD_UPSD_TRIGGER 
WL1271_PSD_LEGACY_PSPOLL 
WL1271_PSD_SAPSD 

Definition at line 543 of file cmd.h.

Enumerator:
WL12XX_FWLOG_CONTINUOUS 
WL12XX_FWLOG_ON_DEMAND 

Definition at line 579 of file cmd.h.

Enumerator:
WL12XX_FWLOG_OUTPUT_NONE 
WL12XX_FWLOG_OUTPUT_DBG_PINS 
WL12XX_FWLOG_OUTPUT_HOST 

Definition at line 594 of file cmd.h.

Enumerator:
WL12XX_FWLOG_TIMESTAMP_DISABLED 
WL12XX_FWLOG_TIMESTAMP_ENABLED 

Definition at line 585 of file cmd.h.

Enumerator:
WL12XX_SSID_TYPE_PUBLIC 
WL12XX_SSID_TYPE_HIDDEN 
WL12XX_SSID_TYPE_ANY 

Definition at line 537 of file cmd.h.

Enumerator:
WLCORE_BAND_2_4GHZ 
WLCORE_BAND_5GHZ 
WLCORE_BAND_JAPAN_4_9_GHZ 
WLCORE_BAND_DEFAULT 
WLCORE_BAND_INVALID 
WLCORE_BAND_MAX_RADIO 

Definition at line 255 of file cmd.h.

Enumerator:
WLCORE_CHAN_NO_HT 
WLCORE_CHAN_HT20 
WLCORE_CHAN_HT40MINUS 
WLCORE_CHAN_HT40PLUS 

Definition at line 264 of file cmd.h.

Function Documentation

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_read_memory ( struct wl1271 wl,
u32  addr,
void answer,
size_t  len 
)
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.

Variable Documentation