#ifndef CW1200_WSM_H_INCLUDED
#define CW1200_WSM_H_INCLUDED
#include <linux/spinlock.h>
struct cw1200_common;
#define WSM_PHY_BAND_2_4G …
#define WSM_PHY_BAND_5G …
#define WSM_TRANSMIT_RATE_1 …
#define WSM_TRANSMIT_RATE_2 …
#define WSM_TRANSMIT_RATE_5 …
#define WSM_TRANSMIT_RATE_11 …
#define WSM_TRANSMIT_RATE_6 …
#define WSM_TRANSMIT_RATE_9 …
#define WSM_TRANSMIT_RATE_12 …
#define WSM_TRANSMIT_RATE_18 …
#define WSM_TRANSMIT_RATE_24 …
#define WSM_TRANSMIT_RATE_36 …
#define WSM_TRANSMIT_RATE_48 …
#define WSM_TRANSMIT_RATE_54 …
#define WSM_TRANSMIT_RATE_HT_6 …
#define WSM_TRANSMIT_RATE_HT_13 …
#define WSM_TRANSMIT_RATE_HT_19 …
#define WSM_TRANSMIT_RATE_HT_26 …
#define WSM_TRANSMIT_RATE_HT_39 …
#define WSM_TRANSMIT_RATE_HT_52 …
#define WSM_TRANSMIT_RATE_HT_58 …
#define WSM_TRANSMIT_RATE_HT_65 …
#define WSM_SCAN_TYPE_FOREGROUND …
#define WSM_SCAN_TYPE_BACKGROUND …
#define WSM_SCAN_TYPE_AUTO …
#define WSM_SCAN_FLAG_FORCE_BACKGROUND …
#define WSM_SCAN_FLAG_SPLIT_METHOD …
#define WSM_SCAN_FLAG_SHORT_PREAMBLE …
#define WSM_SCAN_FLAG_11N_GREENFIELD …
#define WSM_SCAN_MAX_NUM_OF_CHANNELS …
#define WSM_SCAN_MAX_NUM_OF_SSIDS …
#define WSM_PSM_ACTIVE …
#define WSM_PSM_PS …
#define WSM_PSM_FAST_PS_FLAG …
#define WSM_PSM_FAST_PS …
#define WSM_PSM_UNKNOWN …
#define WSM_QUEUE_BEST_EFFORT …
#define WSM_QUEUE_BACKGROUND …
#define WSM_QUEUE_VIDEO …
#define WSM_QUEUE_VOICE …
#define WSM_HT_TX_NON_HT …
#define WSM_HT_TX_MIXED …
#define WSM_HT_TX_GREENFIELD …
#define WSM_HT_TX_STBC …
#define WSM_EPTA_PRIORITY_DEFAULT …
#define WSM_EPTA_PRIORITY_DATA …
#define WSM_EPTA_PRIORITY_MGT …
#define WSM_EPTA_PRIORITY_ACTION …
#define WSM_EPTA_PRIORITY_VIDEO …
#define WSM_EPTA_PRIORITY_VOICE …
#define WSM_EPTA_PRIORITY_EAPOL …
#define WSM_TX_STATUS_AGGREGATION …
#define WSM_TX_STATUS_REQUEUE …
#define WSM_TX_STATUS_NORMAL_ACK …
#define WSM_TX_STATUS_NO_ACK …
#define WSM_TX_STATUS_NO_EXPLICIT_ACK …
#define WSM_TX_STATUS_BLOCK_ACK …
#define WSM_RX_STATUS_UNENCRYPTED …
#define WSM_RX_STATUS_WEP …
#define WSM_RX_STATUS_TKIP …
#define WSM_RX_STATUS_AES …
#define WSM_RX_STATUS_WAPI …
#define WSM_RX_STATUS_ENCRYPTION(status) …
#define WSM_RX_STATUS_AGGREGATE …
#define WSM_RX_STATUS_AGGREGATE_FIRST …
#define WSM_RX_STATUS_AGGREGATE_LAST …
#define WSM_RX_STATUS_DEFRAGMENTED …
#define WSM_RX_STATUS_BEACON …
#define WSM_RX_STATUS_TIM …
#define WSM_RX_STATUS_MULTICAST …
#define WSM_RX_STATUS_MATCHING_SSID …
#define WSM_RX_STATUS_MATCHING_BSSI …
#define WSM_RX_STATUS_MORE_DATA …
#define WSM_RX_STATUS_MEASUREMENT …
#define WSM_RX_STATUS_HT …
#define WSM_RX_STATUS_STBC …
#define WSM_RX_STATUS_ADDRESS1 …
#define WSM_RX_STATUS_GROUP …
#define WSM_RX_STATUS_BROADCAST …
#define WSM_RX_STATUS_GROUP_KEY …
#define WSM_RX_STATUS_KEY_IDX(status) …
#define WSM_RX_STATUS_TSF_INCLUDED …
#define WSM_TX_2BYTES_SHIFT …
#define WSM_JOIN_MODE_IBSS …
#define WSM_JOIN_MODE_BSS …
#define WSM_JOIN_PREAMBLE_LONG …
#define WSM_JOIN_PREAMBLE_SHORT …
#define WSM_JOIN_PREAMBLE_SHORT_2 …
#define WSM_JOIN_FLAGS_UNSYNCRONIZED …
#define WSM_JOIN_FLAGS_P2P_GO …
#define WSM_JOIN_FLAGS_FORCE …
#define WSM_JOIN_FLAGS_PRIO …
#define WSM_JOIN_FLAGS_FORCE_WITH_COMPLETE_IND …
#define WSM_KEY_TYPE_WEP_DEFAULT …
#define WSM_KEY_TYPE_WEP_PAIRWISE …
#define WSM_KEY_TYPE_TKIP_GROUP …
#define WSM_KEY_TYPE_TKIP_PAIRWISE …
#define WSM_KEY_TYPE_AES_GROUP …
#define WSM_KEY_TYPE_AES_PAIRWISE …
#define WSM_KEY_TYPE_WAPI_GROUP …
#define WSM_KEY_TYPE_WAPI_PAIRWISE …
#define WSM_KEY_MAX_INDEX …
#define WSM_ACK_POLICY_NORMAL …
#define WSM_ACK_POLICY_NO_ACK …
#define WSM_START_MODE_AP …
#define WSM_START_MODE_P2P_GO …
#define WSM_START_MODE_P2P_DEV …
#define WSM_ASSOCIATION_MODE_USE_PREAMBLE_TYPE …
#define WSM_ASSOCIATION_MODE_USE_HT_MODE …
#define WSM_ASSOCIATION_MODE_USE_BASIC_RATE_SET …
#define WSM_ASSOCIATION_MODE_USE_MPDU_START_SPACING …
#define WSM_ASSOCIATION_MODE_SNOOP_ASSOC_FRAMES …
#define WSM_RCPI_RSSI_THRESHOLD_ENABLE …
#define WSM_RCPI_RSSI_USE_RSSI …
#define WSM_RCPI_RSSI_DONT_USE_UPPER …
#define WSM_RCPI_RSSI_DONT_USE_LOWER …
#define WSM_UPDATE_IE_BEACON …
#define WSM_UPDATE_IE_PROBE_RESP …
#define WSM_UPDATE_IE_PROBE_REQ …
#define WSM_EVENT_ERROR …
#define WSM_EVENT_BSS_LOST …
#define WSM_EVENT_BSS_REGAINED …
#define WSM_EVENT_RADAR_DETECTED …
#define WSM_EVENT_RCPI_RSSI …
#define WSM_EVENT_BT_INACTIVE …
#define WSM_EVENT_BT_ACTIVE …
#define WSM_MIB_ID_DOT11_STATION_ID …
#define WSM_MIB_ID_DOT11_MAX_TRANSMIT_LIFTIME …
#define WSM_MIB_ID_DOT11_MAX_RECEIVE_LIFETIME …
#define WSM_MIB_ID_DOT11_SLOT_TIME …
#define WSM_MIB_ID_DOT11_GROUP_ADDRESSES_TABLE …
#define WSM_MAX_GRP_ADDRTABLE_ENTRIES …
#define WSM_MIB_ID_DOT11_WEP_DEFAULT_KEY_ID …
#define WSM_MIB_ID_DOT11_CURRENT_TX_POWER_LEVEL …
#define WSM_MIB_ID_DOT11_RTS_THRESHOLD …
#define WSM_MIB_ID_NON_ERP_PROTECTION …
#define WSM_MIB_ID_ARP_IP_ADDRESSES_TABLE …
#define WSM_MAX_ARP_IP_ADDRTABLE_ENTRIES …
#define WSM_MIB_ID_TEMPLATE_FRAME …
#define WSM_MIB_ID_RX_FILTER …
#define WSM_MIB_ID_BEACON_FILTER_TABLE …
#define WSM_MIB_ID_BEACON_FILTER_ENABLE …
#define WSM_MIB_ID_OPERATIONAL_POWER_MODE …
#define WSM_MIB_ID_BEACON_WAKEUP_PERIOD …
#define WSM_MIB_ID_RCPI_RSSI_THRESHOLD …
#define WSM_MIB_ID_STATISTICS_TABLE …
#define WSM_MIB_ID_IBSS_PS_CONFIG …
#define WSM_MIB_ID_COUNTERS_TABLE …
#define WSM_MIB_ID_BLOCK_ACK_POLICY …
#define WSM_MIB_ID_OVERRIDE_INTERNAL_TX_RATE …
#define WSM_MIB_ID_SET_ASSOCIATION_MODE …
#define WSM_MIB_ID_UPDATE_EPTA_CONFIG_DATA …
#define WSM_MIB_ID_SELECT_CCA_METHOD …
#define WSM_MIB_ID_SET_UAPSD_INFORMATION …
#define WSM_MIB_ID_SET_AUTO_CALIBRATION_MODE …
#define WSM_MIB_ID_SET_TX_RATE_RETRY_POLICY …
#define WSM_MIB_ID_SET_HOST_MSG_TYPE_FILTER …
#define WSM_MIB_ID_P2P_FIND_INFO …
#define WSM_MIB_ID_P2P_PS_MODE_INFO …
#define WSM_MIB_ID_SET_ETHERTYPE_DATAFRAME_FILTER …
#define WSM_MIB_ID_SET_UDPPORT_DATAFRAME_FILTER …
#define WSM_MIB_ID_SET_MAGIC_DATAFRAME_FILTER …
#define WSM_MIB_ID_P2P_DEVICE_INFO …
#define WSM_MIB_ID_SET_WCDMA_BAND …
#define WSM_MIB_ID_GRP_SEQ_COUNTER …
#define WSM_MIB_ID_PROTECTED_MGMT_POLICY …
#define WSM_MIB_ID_SET_HT_PROTECTION …
#define WSM_MIB_ID_GPIO_COMMAND …
#define WSM_MIB_ID_TSF_COUNTER …
#define WSM_MIB_ID_BLOCK_ACK_INFO …
#define WSM_MIB_USE_MULTI_TX_CONF …
#define WSM_MIB_ID_KEEP_ALIVE_PERIOD …
#define WSM_MIB_ID_DISABLE_BSSID_FILTER …
#define WSM_FRAME_TYPE_PROBE_REQUEST …
#define WSM_FRAME_TYPE_BEACON …
#define WSM_FRAME_TYPE_NULL …
#define WSM_FRAME_TYPE_QOS_NULL …
#define WSM_FRAME_TYPE_PS_POLL …
#define WSM_FRAME_TYPE_PROBE_RESPONSE …
#define WSM_FRAME_GREENFIELD …
#define WSM_STATUS_SUCCESS …
#define WSM_STATUS_FAILURE …
#define WSM_INVALID_PARAMETER …
#define WSM_ACCESS_DENIED …
#define WSM_STATUS_DECRYPTFAILURE …
#define WSM_STATUS_MICFAILURE …
#define WSM_STATUS_RETRY_EXCEEDED …
#define WSM_STATUS_TX_LIFETIME_EXCEEDED …
#define WSM_STATUS_LINK_LOST …
#define WSM_STATUS_NO_KEY_FOUND …
#define WSM_STATUS_JAMMER_DETECTED …
#define WSM_REQUEUE …
#define WSM_MAX_FILTER_ELEMENTS …
#define WSM_FILTER_ACTION_IGNORE …
#define WSM_FILTER_ACTION_FILTER_IN …
#define WSM_FILTER_ACTION_FILTER_OUT …
#define WSM_FILTER_PORT_TYPE_DST …
#define WSM_FILTER_PORT_TYPE_SRC …
struct wsm_hdr { … };
#define WSM_TX_SEQ_MAX …
#define WSM_TX_SEQ(seq) …
#define WSM_TX_LINK_ID_MAX …
#define WSM_TX_LINK_ID(link_id) …
#define MAX_BEACON_SKIP_TIME_MS …
#define WSM_CMD_LAST_CHANCE_TIMEOUT …
#define WSM_STARTUP_IND_ID …
struct wsm_startup_ind { … };
#define WSM_CONFIGURATION_REQ_ID …
#define WSM_CONFIGURATION_RESP_ID …
struct wsm_tx_power_range { … };
struct wsm_configuration { … };
int wsm_configuration(struct cw1200_common *priv,
struct wsm_configuration *arg);
#define WSM_RESET_REQ_ID …
#define WSM_RESET_RESP_ID …
struct wsm_reset { … };
int wsm_reset(struct cw1200_common *priv, const struct wsm_reset *arg);
#define WSM_READ_MIB_REQ_ID …
#define WSM_READ_MIB_RESP_ID …
int wsm_read_mib(struct cw1200_common *priv, u16 mib_id, void *buf,
size_t buf_size);
#define WSM_WRITE_MIB_REQ_ID …
#define WSM_WRITE_MIB_RESP_ID …
int wsm_write_mib(struct cw1200_common *priv, u16 mib_id, void *buf,
size_t buf_size);
#define WSM_START_SCAN_REQ_ID …
#define WSM_START_SCAN_RESP_ID …
struct wsm_ssid { … };
struct wsm_scan_ch { … };
struct wsm_scan { … };
int wsm_scan(struct cw1200_common *priv, const struct wsm_scan *arg);
#define WSM_STOP_SCAN_REQ_ID …
#define WSM_STOP_SCAN_RESP_ID …
int wsm_stop_scan(struct cw1200_common *priv);
#define WSM_SCAN_COMPLETE_IND_ID …
struct wsm_scan_complete { … };
#define WSM_TX_CONFIRM_IND_ID …
#define WSM_MULTI_TX_CONFIRM_ID …
struct wsm_tx_confirm { … };
struct wsm_tx { … } __packed;
#define WSM_TX_EXTRA_HEADROOM …
#define WSM_RECEIVE_IND_ID …
struct wsm_rx { … };
#define WSM_RX_EXTRA_HEADROOM …
struct wsm_event { … };
struct cw1200_wsm_event { … };
wsm_event_cb;
#define WSM_JOIN_REQ_ID …
#define WSM_JOIN_RESP_ID …
struct wsm_join { … };
struct wsm_join_cnf { … };
int wsm_join(struct cw1200_common *priv, struct wsm_join *arg);
struct wsm_join_complete { … };
#define WSM_SET_PM_REQ_ID …
#define WSM_SET_PM_RESP_ID …
struct wsm_set_pm { … };
int wsm_set_pm(struct cw1200_common *priv, const struct wsm_set_pm *arg);
struct wsm_set_pm_complete { … };
#define WSM_SET_BSS_PARAMS_REQ_ID …
#define WSM_SET_BSS_PARAMS_RESP_ID …
struct wsm_set_bss_params { … };
int wsm_set_bss_params(struct cw1200_common *priv,
const struct wsm_set_bss_params *arg);
#define WSM_ADD_KEY_REQ_ID …
#define WSM_ADD_KEY_RESP_ID …
struct wsm_add_key { … } __packed;
int wsm_add_key(struct cw1200_common *priv, const struct wsm_add_key *arg);
#define WSM_REMOVE_KEY_REQ_ID …
#define WSM_REMOVE_KEY_RESP_ID …
struct wsm_remove_key { … };
int wsm_remove_key(struct cw1200_common *priv,
const struct wsm_remove_key *arg);
struct wsm_set_tx_queue_params { … };
struct wsm_tx_queue_params { … };
#define WSM_TX_QUEUE_SET(queue_params, queue, ack_policy, allowed_time,\
max_life_time) …
int wsm_set_tx_queue_params(struct cw1200_common *priv,
const struct wsm_set_tx_queue_params *arg, u8 id);
#define WSM_EDCA_PARAMS_REQ_ID …
#define WSM_EDCA_PARAMS_RESP_ID …
struct wsm_edca_queue_params { … };
struct wsm_edca_params { … };
#define TXOP_UNIT …
#define WSM_EDCA_SET(__edca, __queue, __aifs, __cw_min, __cw_max, __txop, __lifetime,\
__uapsd) …
int wsm_set_edca_params(struct cw1200_common *priv,
const struct wsm_edca_params *arg);
int wsm_set_uapsd_param(struct cw1200_common *priv,
const struct wsm_edca_params *arg);
#define WSM_SWITCH_CHANNEL_REQ_ID …
#define WSM_SWITCH_CHANNEL_RESP_ID …
struct wsm_switch_channel { … };
int wsm_switch_channel(struct cw1200_common *priv,
const struct wsm_switch_channel *arg);
#define WSM_START_REQ_ID …
#define WSM_START_RESP_ID …
struct wsm_start { … };
int wsm_start(struct cw1200_common *priv, const struct wsm_start *arg);
#define WSM_BEACON_TRANSMIT_REQ_ID …
#define WSM_BEACON_TRANSMIT_RESP_ID …
struct wsm_beacon_transmit { … };
int wsm_beacon_transmit(struct cw1200_common *priv,
const struct wsm_beacon_transmit *arg);
int wsm_start_find(struct cw1200_common *priv);
int wsm_stop_find(struct cw1200_common *priv);
struct wsm_suspend_resume { … };
struct wsm_update_ie { … };
int wsm_update_ie(struct cw1200_common *priv,
const struct wsm_update_ie *arg);
struct wsm_map_link { … };
int wsm_map_link(struct cw1200_common *priv, const struct wsm_map_link *arg);
static inline int wsm_set_output_power(struct cw1200_common *priv,
int power_level)
{ … }
static inline int wsm_set_beacon_wakeup_period(struct cw1200_common *priv,
unsigned dtim_interval,
unsigned listen_interval)
{ … }
struct wsm_rcpi_rssi_threshold { … };
static inline int wsm_set_rcpi_rssi_threshold(struct cw1200_common *priv,
struct wsm_rcpi_rssi_threshold *arg)
{ … }
struct wsm_mib_counters_table { … } __packed;
static inline int wsm_get_counters_table(struct cw1200_common *priv,
struct wsm_mib_counters_table *arg)
{ … }
static inline int wsm_get_station_id(struct cw1200_common *priv, u8 *mac)
{ … }
struct wsm_rx_filter { … };
static inline int wsm_set_rx_filter(struct cw1200_common *priv,
const struct wsm_rx_filter *arg)
{ … }
int wsm_set_probe_responder(struct cw1200_common *priv, bool enable);
#define WSM_BEACON_FILTER_IE_HAS_CHANGED …
#define WSM_BEACON_FILTER_IE_NO_LONGER_PRESENT …
#define WSM_BEACON_FILTER_IE_HAS_APPEARED …
struct wsm_beacon_filter_table_entry { … } __packed;
struct wsm_mib_beacon_filter_table { … } __packed;
static inline int wsm_set_beacon_filter_table(struct cw1200_common *priv,
struct wsm_mib_beacon_filter_table *ft)
{ … }
#define WSM_BEACON_FILTER_ENABLE …
#define WSM_BEACON_FILTER_AUTO_ERP …
struct wsm_beacon_filter_control { … };
static inline int wsm_beacon_filter_control(struct cw1200_common *priv,
struct wsm_beacon_filter_control *arg)
{ … }
enum wsm_power_mode { … };
struct wsm_operational_mode { … };
static inline int wsm_set_operational_mode(struct cw1200_common *priv,
const struct wsm_operational_mode *arg)
{ … }
struct wsm_template_frame { … };
static inline int wsm_set_template_frame(struct cw1200_common *priv,
struct wsm_template_frame *arg)
{ … }
struct wsm_protected_mgmt_policy { … };
static inline int wsm_set_protected_mgmt_policy(struct cw1200_common *priv,
struct wsm_protected_mgmt_policy *arg)
{ … }
struct wsm_mib_block_ack_policy { … } __packed;
static inline int wsm_set_block_ack_policy(struct cw1200_common *priv,
u8 tx_tid_policy,
u8 rx_tid_policy)
{ … }
struct wsm_mib_association_mode { … } __packed;
static inline int wsm_set_association_mode(struct cw1200_common *priv,
struct wsm_mib_association_mode *arg)
{ … }
#define WSM_TX_RATE_POLICY_FLAG_TERMINATE_WHEN_FINISHED …
#define WSM_TX_RATE_POLICY_FLAG_COUNT_INITIAL_TRANSMIT …
struct wsm_tx_rate_retry_policy { … } __packed;
struct wsm_set_tx_rate_retry_policy { … } __packed;
static inline int wsm_set_tx_rate_retry_policy(struct cw1200_common *priv,
struct wsm_set_tx_rate_retry_policy *arg)
{ … }
struct wsm_ether_type_filter_hdr { … } __packed;
struct wsm_ether_type_filter { … } __packed;
static inline int wsm_set_ether_type_filter(struct cw1200_common *priv,
struct wsm_ether_type_filter_hdr *arg)
{ … }
struct wsm_udp_port_filter_hdr { … } __packed;
struct wsm_udp_port_filter { … } __packed;
static inline int wsm_set_udp_port_filter(struct cw1200_common *priv,
struct wsm_udp_port_filter_hdr *arg)
{ … }
#define D11_MAX_SSID_LEN …
struct wsm_p2p_device_type { … } __packed;
struct wsm_p2p_device_info { … } __packed;
struct wsm_cdma_band { … } __packed;
struct wsm_group_tx_seq { … } __packed;
#define WSM_DUAL_CTS_PROT_ENB …
#define WSM_NON_GREENFIELD_STA_PRESENT …
#define WSM_HT_PROT_MODE__NO_PROT …
#define WSM_HT_PROT_MODE__NON_MEMBER …
#define WSM_HT_PROT_MODE__20_MHZ …
#define WSM_HT_PROT_MODE__NON_HT_MIXED …
#define WSM_LSIG_TXOP_PROT_FULL …
#define WSM_LARGE_L_LENGTH_PROT …
struct wsm_ht_protection { … } __packed;
#define WSM_GPIO_COMMAND_SETUP …
#define WSM_GPIO_COMMAND_READ …
#define WSM_GPIO_COMMAND_WRITE …
#define WSM_GPIO_COMMAND_RESET …
#define WSM_GPIO_ALL_PINS …
struct wsm_gpio_command { … } __packed;
struct wsm_tsf_counter { … } __packed;
struct wsm_keep_alive_period { … } __packed;
static inline int wsm_keep_alive_period(struct cw1200_common *priv,
int period)
{
struct wsm_keep_alive_period arg = {
.period = __cpu_to_le16(period),
};
return wsm_write_mib(priv, WSM_MIB_ID_KEEP_ALIVE_PERIOD,
&arg, sizeof(arg));
};
struct wsm_set_bssid_filtering { … } __packed;
static inline int wsm_set_bssid_filtering(struct cw1200_common *priv,
bool enabled)
{ … }
struct wsm_mib_multicast_filter { … } __packed;
static inline int wsm_set_multicast_filter(struct cw1200_common *priv,
struct wsm_mib_multicast_filter *fp)
{ … }
struct wsm_mib_arp_ipv4_filter { … } __packed;
static inline int wsm_set_arp_ipv4_filter(struct cw1200_common *priv,
struct wsm_mib_arp_ipv4_filter *fp)
{ … }
struct wsm_p2p_ps_modeinfo { … } __packed;
static inline int wsm_set_p2p_ps_modeinfo(struct cw1200_common *priv,
struct wsm_p2p_ps_modeinfo *mi)
{ … }
static inline int wsm_get_p2p_ps_modeinfo(struct cw1200_common *priv,
struct wsm_p2p_ps_modeinfo *mi)
{ … }
static inline int wsm_use_multi_tx_conf(struct cw1200_common *priv,
bool enabled)
{ … }
struct wsm_uapsd_info { … };
static inline int wsm_set_uapsd_info(struct cw1200_common *priv,
struct wsm_uapsd_info *arg)
{ … }
struct wsm_override_internal_txrate { … } __packed;
static inline int wsm_set_override_internal_txrate(struct cw1200_common *priv,
struct wsm_override_internal_txrate *arg)
{ … }
void wsm_lock_tx(struct cw1200_common *priv);
void wsm_lock_tx_async(struct cw1200_common *priv);
bool wsm_flush_tx(struct cw1200_common *priv);
void wsm_unlock_tx(struct cw1200_common *priv);
int wsm_handle_exception(struct cw1200_common *priv, u8 *data, size_t len);
int wsm_handle_rx(struct cw1200_common *priv, u16 id, struct wsm_hdr *wsm,
struct sk_buff **skb_p);
struct wsm_buf { … };
void wsm_buf_init(struct wsm_buf *buf);
void wsm_buf_deinit(struct wsm_buf *buf);
struct wsm_cmd { … };
int wsm_get_tx(struct cw1200_common *priv, u8 **data,
size_t *tx_len, int *burst);
void wsm_txed(struct cw1200_common *priv, u8 *data);
static inline u8 wsm_queue_id_to_linux(u8 queue_id)
{ … }
static inline u8 wsm_queue_id_to_wsm(u8 queue_id)
{ … }
#endif