blob: 33da2eaf2ad0f9bb7ebea7d8bdefe5ba1cd7f232 [file] [log] [blame]
/*
* Custom OID/ioctl definitions for
* Broadcom 802.11abg Networking Device Driver
*
* Definitions subject to change without notice.
*
* Copyright (C) 1999-2014, Broadcom Corporation
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General Public License version 2 (the "GPL"),
* available at http://www.broadcom.com/licenses/GPLv2.php, with the
* following added to such license:
*
* As a special exception, the copyright holders of this software give you
* permission to link this software with independent modules, and to copy and
* distribute the resulting executable under terms of your choice, provided that
* you also meet, for each linked independent module, the terms and conditions of
* the license of that module. An independent module is a module which is not
* derived from this software. The special exception does not apply to any
* modifications of the software.
*
* Notwithstanding the above, under no circumstances may you combine this
* software in any way with any other Broadcom software provided under a license
* other than the GPL, without Broadcom's express prior written consent.
*
* $Id: wlioctl.h 490639 2014-07-11 08:31:53Z $
*/
#ifndef _wlioctl_h_
#define _wlioctl_h_
#include <typedefs.h>
#include <proto/ethernet.h>
#include <proto/bcmip.h>
#include <proto/bcmeth.h>
#include <proto/bcmip.h>
#include <proto/bcmevent.h>
#include <proto/802.11.h>
#include <proto/802.1d.h>
#include <bcmwifi_channels.h>
#include <bcmwifi_rates.h>
#include <devctrl_if/wlioctl_defs.h>
#include <bcm_mpool_pub.h>
#include <bcmcdc.h>
#ifndef INTF_NAME_SIZ
#define INTF_NAME_SIZ 16
#endif
/* Used to send ioctls over the transport pipe */
typedef struct remote_ioctl {
cdc_ioctl_t msg;
uint32 data_len;
char intf_name[INTF_NAME_SIZ];
} rem_ioctl_t;
#define REMOTE_SIZE sizeof(rem_ioctl_t)
typedef struct {
uint32 num;
chanspec_t list[1];
} chanspec_list_t;
/* DFS Forced param */
typedef struct wl_dfs_forced_params {
chanspec_t chspec;
uint16 version;
chanspec_list_t chspec_list;
} wl_dfs_forced_t;
#define DFS_PREFCHANLIST_VER 0x01
#define WL_CHSPEC_LIST_FIXED_SIZE OFFSETOF(chanspec_list_t, list)
#define WL_DFS_FORCED_PARAMS_FIXED_SIZE \
(WL_CHSPEC_LIST_FIXED_SIZE + OFFSETOF(wl_dfs_forced_t, chspec_list))
#define WL_DFS_FORCED_PARAMS_MAX_SIZE \
WL_DFS_FORCED_PARAMS_FIXED_SIZE + (WL_NUMCHANNELS * sizeof(chanspec_t))
/* association decision information */
typedef struct {
bool assoc_approved; /* (re)association approved */
uint16 reject_reason; /* reason code for rejecting association */
struct ether_addr da;
int64 sys_time; /* current system time */
} assoc_decision_t;
#define ACTION_FRAME_SIZE 1800
typedef struct wl_action_frame {
struct ether_addr da;
uint16 len;
uint32 packetId;
uint8 data[ACTION_FRAME_SIZE];
} wl_action_frame_t;
#define WL_WIFI_ACTION_FRAME_SIZE sizeof(struct wl_action_frame)
typedef struct ssid_info
{
uint8 ssid_len; /* the length of SSID */
uint8 ssid[32]; /* SSID string */
} ssid_info_t;
typedef struct wl_af_params {
uint32 channel;
int32 dwell_time;
struct ether_addr BSSID;
wl_action_frame_t action_frame;
} wl_af_params_t;
#define WL_WIFI_AF_PARAMS_SIZE sizeof(struct wl_af_params)
#define MFP_TEST_FLAG_NORMAL 0
#define MFP_TEST_FLAG_ANY_KEY 1
typedef struct wl_sa_query {
uint32 flag;
uint8 action;
uint16 id;
struct ether_addr da;
} wl_sa_query_t;
/* require default structure packing */
#define BWL_DEFAULT_PACKING
#include <packed_section_start.h>
/* Flags for OBSS IOVAR Parameters */
#define WL_OBSS_DYN_BWSW_FLAG_ACTIVITY_PERIOD (0x01)
#define WL_OBSS_DYN_BWSW_FLAG_NOACTIVITY_PERIOD (0x02)
#define WL_OBSS_DYN_BWSW_FLAG_NOACTIVITY_INCR_PERIOD (0x04)
#define WL_OBSS_DYN_BWSW_FLAG_PSEUDO_SENSE_PERIOD (0x08)
#define WL_OBSS_DYN_BWSW_FLAG_RX_CRS_PERIOD (0x10)
#define WL_OBSS_DYN_BWSW_FLAG_DUR_THRESHOLD (0x20)
#define WL_OBSS_DYN_BWSW_FLAG_TXOP_PERIOD (0x40)
/* OBSS IOVAR Version information */
#define WL_PROT_OBSS_CONFIG_PARAMS_VERSION 1
typedef BWL_PRE_PACKED_STRUCT struct {
uint8 obss_bwsw_activity_cfm_count_cfg; /* configurable count in
* seconds before we confirm that OBSS is present and
* dynamically activate dynamic bwswitch.
*/
uint8 obss_bwsw_no_activity_cfm_count_cfg; /* configurable count in
* seconds before we confirm that OBSS is GONE and
* dynamically start pseudo upgrade. If in pseudo sense time, we
* will see OBSS, [means that, we false detected that OBSS-is-gone
* in watchdog] this count will be incremented in steps of
* obss_bwsw_no_activity_cfm_count_incr_cfg for confirming OBSS
* detection again. Note that, at present, max 30seconds is
* allowed like this. [OBSS_BWSW_NO_ACTIVITY_MAX_INCR_DEFAULT]
*/
uint8 obss_bwsw_no_activity_cfm_count_incr_cfg; /* see above
*/
uint16 obss_bwsw_pseudo_sense_count_cfg; /* number of msecs/cnt to be in
* pseudo state. This is used to sense/measure the stats from lq.
*/
uint8 obss_bwsw_rx_crs_threshold_cfg; /* RX CRS default threshold */
uint8 obss_bwsw_dur_thres; /* OBSS dyn bwsw trigger/RX CRS Sec */
uint8 obss_bwsw_txop_threshold_cfg; /* TXOP default threshold */
} BWL_POST_PACKED_STRUCT wlc_prot_dynbwsw_config_t;
typedef BWL_PRE_PACKED_STRUCT struct {
uint32 version; /* version field */
uint32 config_mask;
uint32 reset_mask;
wlc_prot_dynbwsw_config_t config_params;
} BWL_POST_PACKED_STRUCT obss_config_params_t;
/* Legacy structure to help keep backward compatible wl tool and tray app */
#define LEGACY_WL_BSS_INFO_VERSION 107 /* older version of wl_bss_info struct */
typedef struct wl_bss_info_107 {
uint32 version; /* version field */
uint32 length; /* byte length of data in this record,
* starting at version and including IEs
*/
struct ether_addr BSSID;
uint16 beacon_period; /* units are Kusec */
uint16 capability; /* Capability information */
uint8 SSID_len;
uint8 SSID[32];
struct {
uint count; /* # rates in this set */
uint8 rates[16]; /* rates in 500kbps units w/hi bit set if basic */
} rateset; /* supported rates */
uint8 channel; /* Channel no. */
uint16 atim_window; /* units are Kusec */
uint8 dtim_period; /* DTIM period */
int16 RSSI; /* receive signal strength (in dBm) */
int8 phy_noise; /* noise (in dBm) */
uint32 ie_length; /* byte length of Information Elements */
/* variable length Information Elements */
} wl_bss_info_107_t;
/*
* Per-BSS information structure.
*/
#define LEGACY2_WL_BSS_INFO_VERSION 108 /* old version of wl_bss_info struct */
/* BSS info structure
* Applications MUST CHECK ie_offset field and length field to access IEs and
* next bss_info structure in a vector (in wl_scan_results_t)
*/
typedef struct wl_bss_info_108 {
uint32 version; /* version field */
uint32 length; /* byte length of data in this record,
* starting at version and including IEs
*/
struct ether_addr BSSID;
uint16 beacon_period; /* units are Kusec */
uint16 capability; /* Capability information */
uint8 SSID_len;
uint8 SSID[32];
struct {
uint count; /* # rates in this set */
uint8 rates[16]; /* rates in 500kbps units w/hi bit set if basic */
} rateset; /* supported rates */
chanspec_t chanspec; /* chanspec for bss */
uint16 atim_window; /* units are Kusec */
uint8 dtim_period; /* DTIM period */
int16 RSSI; /* receive signal strength (in dBm) */
int8 phy_noise; /* noise (in dBm) */
uint8 n_cap; /* BSS is 802.11N Capable */
uint32 nbss_cap; /* 802.11N BSS Capabilities (based on HT_CAP_*) */
uint8 ctl_ch; /* 802.11N BSS control channel number */
uint32 reserved32[1]; /* Reserved for expansion of BSS properties */
uint8 flags; /* flags */
uint8 reserved[3]; /* Reserved for expansion of BSS properties */
uint8 basic_mcs[MCSSET_LEN]; /* 802.11N BSS required MCS set */
uint16 ie_offset; /* offset at which IEs start, from beginning */
uint32 ie_length; /* byte length of Information Elements */
/* Add new fields here */
/* variable length Information Elements */
} wl_bss_info_108_t;
#define WL_BSS_INFO_VERSION 109 /* current version of wl_bss_info struct */
/* BSS info structure
* Applications MUST CHECK ie_offset field and length field to access IEs and
* next bss_info structure in a vector (in wl_scan_results_t)
*/
typedef struct wl_bss_info {
uint32 version; /* version field */
uint32 length; /* byte length of data in this record,
* starting at version and including IEs
*/
struct ether_addr BSSID;
uint16 beacon_period; /* units are Kusec */
uint16 capability; /* Capability information */
uint8 SSID_len;
uint8 SSID[32];
struct {
uint count; /* # rates in this set */
uint8 rates[16]; /* rates in 500kbps units w/hi bit set if basic */
} rateset; /* supported rates */
chanspec_t chanspec; /* chanspec for bss */
uint16 atim_window; /* units are Kusec */
uint8 dtim_period; /* DTIM period */
int16 RSSI; /* receive signal strength (in dBm) */
int8 phy_noise; /* noise (in dBm) */
uint8 n_cap; /* BSS is 802.11N Capable */
uint32 nbss_cap; /* 802.11N+AC BSS Capabilities */
uint8 ctl_ch; /* 802.11N BSS control channel number */
uint8 padding1[3]; /* explicit struct alignment padding */
uint16 vht_rxmcsmap; /* VHT rx mcs map (802.11ac IE, VHT_CAP_MCS_MAP_*) */
uint16 vht_txmcsmap; /* VHT tx mcs map (802.11ac IE, VHT_CAP_MCS_MAP_*) */
uint8 flags; /* flags */
uint8 vht_cap; /* BSS is vht capable */
uint8 reserved[2]; /* Reserved for expansion of BSS properties */
uint8 basic_mcs[MCSSET_LEN]; /* 802.11N BSS required MCS set */
uint16 ie_offset; /* offset at which IEs start, from beginning */
uint32 ie_length; /* byte length of Information Elements */
int16 SNR; /* average SNR of during frame reception */
/* Add new fields here */
/* variable length Information Elements */
} wl_bss_info_t;
#define WL_GSCAN_BSS_INFO_VERSION 1 /* current version of wl_gscan_bss_info struct */
#define WL_GSCAN_INFO_FIXED_FIELD_SIZE (sizeof(wl_gscan_bss_info_t) - sizeof(wl_bss_info_t))
typedef struct wl_gscan_bss_info {
uint32 timestamp[2];
wl_bss_info_t info;
/* variable length Information Elements */
} wl_gscan_bss_info_t;
typedef struct wl_bsscfg {
uint32 bsscfg_idx;
uint32 wsec;
uint32 WPA_auth;
uint32 wsec_index;
uint32 associated;
uint32 BSS;
uint32 phytest_on;
struct ether_addr prev_BSSID;
struct ether_addr BSSID;
uint32 targetbss_wpa2_flags;
uint32 assoc_type;
uint32 assoc_state;
} wl_bsscfg_t;
typedef struct wl_if_add {
uint32 bsscfg_flags;
uint32 if_flags;
uint32 ap;
struct ether_addr mac_addr;
} wl_if_add_t;
typedef struct wl_bss_config {
uint32 atim_window;
uint32 beacon_period;
uint32 chanspec;
} wl_bss_config_t;
#define WL_BSS_USER_RADAR_CHAN_SELECT 0x1 /* User application will randomly select
* radar channel.
*/
#define DLOAD_HANDLER_VER 1 /* Downloader version */
#define DLOAD_FLAG_VER_MASK 0xf000 /* Downloader version mask */
#define DLOAD_FLAG_VER_SHIFT 12 /* Downloader version shift */
#define DL_CRC_NOT_INUSE 0x0001
/* generic download types & flags */
enum {
DL_TYPE_UCODE = 1,
DL_TYPE_CLM = 2
};
/* ucode type values */
enum {
UCODE_FW,
INIT_VALS,
BS_INIT_VALS
};
struct wl_dload_data {
uint16 flag;
uint16 dload_type;
uint32 len;
uint32 crc;
uint8 data[1];
};
typedef struct wl_dload_data wl_dload_data_t;
struct wl_ucode_info {
uint32 ucode_type;
uint32 num_chunks;
uint32 chunk_len;
uint32 chunk_num;
uint8 data_chunk[1];
};
typedef struct wl_ucode_info wl_ucode_info_t;
struct wl_clm_dload_info {
uint32 ds_id;
uint32 clm_total_len;
uint32 num_chunks;
uint32 chunk_len;
uint32 chunk_offset;
uint8 data_chunk[1];
};
typedef struct wl_clm_dload_info wl_clm_dload_info_t;
typedef struct wlc_ssid {
uint32 SSID_len;
uchar SSID[DOT11_MAX_SSID_LEN];
} wlc_ssid_t;
typedef struct wlc_ssid_ext {
bool hidden;
uint16 flags;
uint8 SSID_len;
int8 rssi_thresh;
uchar SSID[DOT11_MAX_SSID_LEN];
} wlc_ssid_ext_t;
#define MAX_PREFERRED_AP_NUM 5
typedef struct wlc_fastssidinfo {
uint32 SSID_channel[MAX_PREFERRED_AP_NUM];
wlc_ssid_t SSID_info[MAX_PREFERRED_AP_NUM];
} wlc_fastssidinfo_t;
typedef BWL_PRE_PACKED_STRUCT struct wnm_url {
uint8 len;
uint8 data[1];
} BWL_POST_PACKED_STRUCT wnm_url_t;
typedef struct chan_scandata {
uint8 txpower;
uint8 pad;
chanspec_t channel; /* Channel num, bw, ctrl_sb and band */
uint32 channel_mintime;
uint32 channel_maxtime;
} chan_scandata_t;
typedef enum wl_scan_type {
EXTDSCAN_FOREGROUND_SCAN,
EXTDSCAN_BACKGROUND_SCAN,
EXTDSCAN_FORCEDBACKGROUND_SCAN
} wl_scan_type_t;
#define WLC_EXTDSCAN_MAX_SSID 5
typedef struct wl_extdscan_params {
int8 nprobes; /* 0, passive, otherwise active */
int8 split_scan; /* split scan */
int8 band; /* band */
int8 pad;
wlc_ssid_t ssid[WLC_EXTDSCAN_MAX_SSID]; /* ssid list */
uint32 tx_rate; /* in 500ksec units */
wl_scan_type_t scan_type; /* enum */
int32 channel_num;
chan_scandata_t channel_list[1]; /* list of chandata structs */
} wl_extdscan_params_t;
#define WL_EXTDSCAN_PARAMS_FIXED_SIZE (sizeof(wl_extdscan_params_t) - sizeof(chan_scandata_t))
#define WL_SCAN_PARAMS_SSID_MAX 10
typedef struct wl_scan_params {
wlc_ssid_t ssid; /* default: {0, ""} */
struct ether_addr bssid; /* default: bcast */
int8 bss_type; /* default: any,
* DOT11_BSSTYPE_ANY/INFRASTRUCTURE/INDEPENDENT
*/
uint8 scan_type; /* flags, 0 use default */
int32 nprobes; /* -1 use default, number of probes per channel */
int32 active_time; /* -1 use default, dwell time per channel for
* active scanning
*/
int32 passive_time; /* -1 use default, dwell time per channel
* for passive scanning
*/
int32 home_time; /* -1 use default, dwell time for the home channel
* between channel scans
*/
int32 channel_num; /* count of channels and ssids that follow
*
* low half is count of channels in channel_list, 0
* means default (use all available channels)
*
* high half is entries in wlc_ssid_t array that
* follows channel_list, aligned for int32 (4 bytes)
* meaning an odd channel count implies a 2-byte pad
* between end of channel_list and first ssid
*
* if ssid count is zero, single ssid in the fixed
* parameter portion is assumed, otherwise ssid in
* the fixed portion is ignored
*/
uint16 channel_list[1]; /* list of chanspecs */
} wl_scan_params_t;
/* size of wl_scan_params not including variable length array */
#define WL_SCAN_PARAMS_FIXED_SIZE 64
#define WL_MAX_ROAMSCAN_DATSZ (WL_SCAN_PARAMS_FIXED_SIZE + (WL_NUMCHANNELS * sizeof(uint16)))
#define ISCAN_REQ_VERSION 1
/* incremental scan struct */
typedef struct wl_iscan_params {
uint32 version;
uint16 action;
uint16 scan_duration;
wl_scan_params_t params;
} wl_iscan_params_t;
/* 3 fields + size of wl_scan_params, not including variable length array */
#define WL_ISCAN_PARAMS_FIXED_SIZE (OFFSETOF(wl_iscan_params_t, params) + sizeof(wlc_ssid_t))
typedef struct wl_scan_results {
uint32 buflen;
uint32 version;
uint32 count;
wl_bss_info_t bss_info[1];
} wl_scan_results_t;
/* size of wl_scan_results not including variable length array */
#define WL_SCAN_RESULTS_FIXED_SIZE (sizeof(wl_scan_results_t) - sizeof(wl_bss_info_t))
#define ESCAN_REQ_VERSION 1
typedef struct wl_escan_params {
uint32 version;
uint16 action;
uint16 sync_id;
wl_scan_params_t params;
} wl_escan_params_t;
#define WL_ESCAN_PARAMS_FIXED_SIZE (OFFSETOF(wl_escan_params_t, params) + sizeof(wlc_ssid_t))
typedef struct wl_escan_result {
uint32 buflen;
uint32 version;
uint16 sync_id;
uint16 bss_count;
wl_bss_info_t bss_info[1];
} wl_escan_result_t;
#define WL_ESCAN_RESULTS_FIXED_SIZE (sizeof(wl_escan_result_t) - sizeof(wl_bss_info_t))
typedef struct wl_gscan_result {
uint32 buflen;
uint32 version;
wl_gscan_bss_info_t bss_info[1];
} wl_gscan_result_t;
#define WL_GSCAN_RESULTS_FIXED_SIZE (sizeof(wl_gscan_result_t) - sizeof(wl_gscan_bss_info_t))
/* incremental scan results struct */
typedef struct wl_iscan_results {
uint32 status;
wl_scan_results_t results;
} wl_iscan_results_t;
/* size of wl_iscan_results not including variable length array */
#define WL_ISCAN_RESULTS_FIXED_SIZE \
(WL_SCAN_RESULTS_FIXED_SIZE + OFFSETOF(wl_iscan_results_t, results))
#define SCANOL_PARAMS_VERSION 1
typedef struct scanol_params {
uint32 version;
uint32 flags; /* offload scanning flags */
int32 active_time; /* -1 use default, dwell time per channel for active scanning */
int32 passive_time; /* -1 use default, dwell time per channel for passive scanning */
int32 idle_rest_time; /* -1 use default, time idle between scan cycle */
int32 idle_rest_time_multiplier;
int32 active_rest_time;
int32 active_rest_time_multiplier;
int32 scan_cycle_idle_rest_time;
int32 scan_cycle_idle_rest_multiplier;
int32 scan_cycle_active_rest_time;
int32 scan_cycle_active_rest_multiplier;
int32 max_rest_time;
int32 max_scan_cycles;
int32 nprobes; /* -1 use default, number of probes per channel */
int32 scan_start_delay;
uint32 nchannels;
uint32 ssid_count;
wlc_ssid_t ssidlist[1];
} scanol_params_t;
typedef struct wl_probe_params {
wlc_ssid_t ssid;
struct ether_addr bssid;
struct ether_addr mac;
} wl_probe_params_t;
#define WL_MAXRATES_IN_SET 16 /* max # of rates in a rateset */
typedef struct wl_rateset {
uint32 count; /* # rates in this set */
uint8 rates[WL_MAXRATES_IN_SET]; /* rates in 500kbps units w/hi bit set if basic */
} wl_rateset_t;
typedef struct wl_rateset_args {
uint32 count; /* # rates in this set */
uint8 rates[WL_MAXRATES_IN_SET]; /* rates in 500kbps units w/hi bit set if basic */
uint8 mcs[MCSSET_LEN]; /* supported mcs index bit map */
uint16 vht_mcs[VHT_CAP_MCS_MAP_NSS_MAX]; /* supported mcs index bit map per nss */
} wl_rateset_args_t;
#define TXBF_RATE_MCS_ALL 4
#define TXBF_RATE_VHT_ALL 4
#define TXBF_RATE_OFDM_ALL 8
typedef struct wl_txbf_rateset {
uint8 txbf_rate_mcs[TXBF_RATE_MCS_ALL]; /* one for each stream */
uint8 txbf_rate_mcs_bcm[TXBF_RATE_MCS_ALL]; /* one for each stream */
uint16 txbf_rate_vht[TXBF_RATE_VHT_ALL]; /* one for each stream */
uint16 txbf_rate_vht_bcm[TXBF_RATE_VHT_ALL]; /* one for each stream */
uint8 txbf_rate_ofdm[TXBF_RATE_OFDM_ALL]; /* bitmap of ofdm rates that enables txbf */
uint8 txbf_rate_ofdm_bcm[TXBF_RATE_OFDM_ALL]; /* bitmap of ofdm rates that enables txbf */
uint8 txbf_rate_ofdm_cnt;
uint8 txbf_rate_ofdm_cnt_bcm;
} wl_txbf_rateset_t;
#define OFDM_RATE_MASK 0x0000007f
typedef uint8 ofdm_rates_t;
typedef struct wl_rates_info {
wl_rateset_t rs_tgt;
uint32 phy_type;
int32 bandtype;
uint8 cck_only;
uint8 rate_mask;
uint8 mcsallow;
uint8 bw;
uint8 txstreams;
} wl_rates_info_t;
/* uint32 list */
typedef struct wl_uint32_list {
/* in - # of elements, out - # of entries */
uint32 count;
/* variable length uint32 list */
uint32 element[1];
} wl_uint32_list_t;
/* used for association with a specific BSSID and chanspec list */
typedef struct wl_assoc_params {
struct ether_addr bssid; /* 00:00:00:00:00:00: broadcast scan */
uint16 bssid_cnt; /* 0: use chanspec_num, and the single bssid,
* otherwise count of chanspecs in chanspec_list
* AND paired bssids following chanspec_list
* also, chanspec_num has to be set to zero
* for bssid list to be used
*/
int32 chanspec_num; /* 0: all available channels,
* otherwise count of chanspecs in chanspec_list
*/
chanspec_t chanspec_list[1]; /* list of chanspecs */
} wl_assoc_params_t;
#define WL_ASSOC_PARAMS_FIXED_SIZE OFFSETOF(wl_assoc_params_t, chanspec_list)
/* used for reassociation/roam to a specific BSSID and channel */
typedef wl_assoc_params_t wl_reassoc_params_t;
#define WL_REASSOC_PARAMS_FIXED_SIZE WL_ASSOC_PARAMS_FIXED_SIZE
/* used for association to a specific BSSID and channel */
typedef wl_assoc_params_t wl_join_assoc_params_t;
#define WL_JOIN_ASSOC_PARAMS_FIXED_SIZE WL_ASSOC_PARAMS_FIXED_SIZE
/* used for join with or without a specific bssid and channel list */
typedef struct wl_join_params {
wlc_ssid_t ssid;
wl_assoc_params_t params; /* optional field, but it must include the fixed portion
* of the wl_assoc_params_t struct when it does present.
*/
} wl_join_params_t;
typedef struct wlc_roam_exp_params {
int8 a_band_boost_threshold;
int8 a_band_penalty_threshold;
uint8 a_band_boost_factor;
uint8 a_band_penalty_factor;
uint8 cur_bssid_boost;
int8 alert_roam_trigger_threshold;
uint16 a_band_max_boost;
} wlc_roam_exp_params_t;
#define ROAM_EXP_CFG_VERSION 1
#define ROAM_EXP_ENABLE_FLAG (1 << 0)
#define ROAM_EXP_CFG_PRESENT (1 << 1)
typedef struct wl_roam_exp_cfg {
uint8 version;
uint8 flags;
uint16 reserved;
wlc_roam_exp_params_t params;
} wl_roam_exp_cfg_t;
typedef struct wl_bssid_pref_list {
struct ether_addr bssid;
/* Add this to modify rssi */
int8 rssi_factor;
int8 flags;
} wl_bssid_pref_list_t;
#define BSSID_PREF_LIST_VERSION 1
#define ROAM_EXP_CLEAR_BSSID_PREF (1 << 0)
typedef struct wl_bssid_pref_cfg {
uint8 version;
uint8 flags;
uint16 count;
wl_bssid_pref_list_t bssids[1];
} wl_bssid_pref_cfg_t;
#define SSID_WHITELIST_VERSION 1
#define ROAM_EXP_CLEAR_SSID_WHITELIST (1 << 0)
/* Roam SSID whitelist, ssids in this list are ok to */
/* be considered as targets to join when considering a roam */
typedef struct wl_ssid_whitelist {
uint8 version;
uint8 flags;
uint8 ssid_count;
uint8 reserved;
wlc_ssid_t ssids[1];
} wl_ssid_whitelist_t;
#define ROAM_EXP_EVENT_VERSION 1
typedef struct wl_roam_exp_event {
uint8 version;
uint8 flags;
uint16 reserved;
wlc_ssid_t cur_ssid;
} wl_roam_exp_event_t;
#define WL_JOIN_PARAMS_FIXED_SIZE (OFFSETOF(wl_join_params_t, params) + \
WL_ASSOC_PARAMS_FIXED_SIZE)
/* scan params for extended join */
typedef struct wl_join_scan_params {
uint8 scan_type; /* 0 use default, active or passive scan */
int32 nprobes; /* -1 use default, number of probes per channel */
int32 active_time; /* -1 use default, dwell time per channel for
* active scanning
*/
int32 passive_time; /* -1 use default, dwell time per channel
* for passive scanning
*/
int32 home_time; /* -1 use default, dwell time for the home channel
* between channel scans
*/
} wl_join_scan_params_t;
/* extended join params */
typedef struct wl_extjoin_params {
wlc_ssid_t ssid; /* {0, ""}: wildcard scan */
wl_join_scan_params_t scan;
wl_join_assoc_params_t assoc; /* optional field, but it must include the fixed portion
* of the wl_join_assoc_params_t struct when it does
* present.
*/
} wl_extjoin_params_t;
#define WL_EXTJOIN_PARAMS_FIXED_SIZE (OFFSETOF(wl_extjoin_params_t, assoc) + \
WL_JOIN_ASSOC_PARAMS_FIXED_SIZE)
#define ANT_SELCFG_MAX 4 /* max number of antenna configurations */
#define MAX_STREAMS_SUPPORTED 4 /* max number of streams supported */
typedef struct {
uint8 ant_config[ANT_SELCFG_MAX]; /* antenna configuration */
uint8 num_antcfg; /* number of available antenna configurations */
} wlc_antselcfg_t;
typedef struct {
uint32 duration; /* millisecs spent sampling this channel */
uint32 congest_ibss; /* millisecs in our bss (presumably this traffic will */
/* move if cur bss moves channels) */
uint32 congest_obss; /* traffic not in our bss */
uint32 interference; /* millisecs detecting a non 802.11 interferer. */
uint32 timestamp; /* second timestamp */
} cca_congest_t;
typedef struct {
chanspec_t chanspec; /* Which channel? */
uint8 num_secs; /* How many secs worth of data */
cca_congest_t secs[1]; /* Data */
} cca_congest_channel_req_t;
/* interference sources */
enum interference_source {
ITFR_NONE = 0, /* interference */
ITFR_PHONE, /* wireless phone */
ITFR_VIDEO_CAMERA, /* wireless video camera */
ITFR_MICROWAVE_OVEN, /* microwave oven */
ITFR_BABY_MONITOR, /* wireless baby monitor */
ITFR_BLUETOOTH, /* bluetooth */
ITFR_VIDEO_CAMERA_OR_BABY_MONITOR, /* wireless camera or baby monitor */
ITFR_BLUETOOTH_OR_BABY_MONITOR, /* bluetooth or baby monitor */
ITFR_VIDEO_CAMERA_OR_PHONE, /* video camera or phone */
ITFR_UNIDENTIFIED /* interference from unidentified source */
};
/* structure for interference source report */
typedef struct {
uint32 flags; /* flags. bit definitions below */
uint32 source; /* last detected interference source */
uint32 timestamp; /* second timestamp on interferenced flag change */
} interference_source_rep_t;
#define WLC_CNTRY_BUF_SZ 4 /* Country string is 3 bytes + NUL */
typedef struct wl_country {
char country_abbrev[WLC_CNTRY_BUF_SZ]; /* nul-terminated country code used in
* the Country IE
*/
int32 rev; /* revision specifier for ccode
* on set, -1 indicates unspecified.
* on get, rev >= 0
*/
char ccode[WLC_CNTRY_BUF_SZ]; /* nul-terminated built-in country code.
* variable length, but fixed size in
* struct allows simple allocation for
* expected country strings <= 3 chars.
*/
} wl_country_t;
typedef struct wl_channels_in_country {
uint32 buflen;
uint32 band;
char country_abbrev[WLC_CNTRY_BUF_SZ];
uint32 count;
uint32 channel[1];
} wl_channels_in_country_t;
typedef struct wl_country_list {
uint32 buflen;
uint32 band_set;
uint32 band;
uint32 count;
char country_abbrev[1];
} wl_country_list_t;
typedef struct wl_rm_req_elt {
int8 type;
int8 flags;
chanspec_t chanspec;
uint32 token; /* token for this measurement */
uint32 tsf_h; /* TSF high 32-bits of Measurement start time */
uint32 tsf_l; /* TSF low 32-bits */
uint32 dur; /* TUs */
} wl_rm_req_elt_t;
typedef struct wl_rm_req {
uint32 token; /* overall measurement set token */
uint32 count; /* number of measurement requests */
void *cb; /* completion callback function: may be NULL */
void *cb_arg; /* arg to completion callback function */
wl_rm_req_elt_t req[1]; /* variable length block of requests */
} wl_rm_req_t;
#define WL_RM_REQ_FIXED_LEN OFFSETOF(wl_rm_req_t, req)
typedef struct wl_rm_rep_elt {
int8 type;
int8 flags;
chanspec_t chanspec;
uint32 token; /* token for this measurement */
uint32 tsf_h; /* TSF high 32-bits of Measurement start time */
uint32 tsf_l; /* TSF low 32-bits */
uint32 dur; /* TUs */
uint32 len; /* byte length of data block */
uint8 data[1]; /* variable length data block */
} wl_rm_rep_elt_t;
#define WL_RM_REP_ELT_FIXED_LEN 24 /* length excluding data block */
#define WL_RPI_REP_BIN_NUM 8
typedef struct wl_rm_rpi_rep {
uint8 rpi[WL_RPI_REP_BIN_NUM];
int8 rpi_max[WL_RPI_REP_BIN_NUM];
} wl_rm_rpi_rep_t;
typedef struct wl_rm_rep {
uint32 token; /* overall measurement set token */
uint32 len; /* length of measurement report block */
wl_rm_rep_elt_t rep[1]; /* variable length block of reports */
} wl_rm_rep_t;
#define WL_RM_REP_FIXED_LEN 8
typedef enum sup_auth_status {
/* Basic supplicant authentication states */
WLC_SUP_DISCONNECTED = 0,
WLC_SUP_CONNECTING,
WLC_SUP_IDREQUIRED,
WLC_SUP_AUTHENTICATING,
WLC_SUP_AUTHENTICATED,
WLC_SUP_KEYXCHANGE,
WLC_SUP_KEYED,
WLC_SUP_TIMEOUT,
WLC_SUP_LAST_BASIC_STATE,
/* Extended supplicant authentication states */
/* Waiting to receive handshake msg M1 */
WLC_SUP_KEYXCHANGE_WAIT_M1 = WLC_SUP_AUTHENTICATED,
/* Preparing to send handshake msg M2 */
WLC_SUP_KEYXCHANGE_PREP_M2 = WLC_SUP_KEYXCHANGE,
/* Waiting to receive handshake msg M3 */
WLC_SUP_KEYXCHANGE_WAIT_M3 = WLC_SUP_LAST_BASIC_STATE,
WLC_SUP_KEYXCHANGE_PREP_M4, /* Preparing to send handshake msg M4 */
WLC_SUP_KEYXCHANGE_WAIT_G1, /* Waiting to receive handshake msg G1 */
WLC_SUP_KEYXCHANGE_PREP_G2 /* Preparing to send handshake msg G2 */
} sup_auth_status_t;
typedef struct wl_wsec_key {
uint32 index; /* key index */
uint32 len; /* key length */
uint8 data[DOT11_MAX_KEY_SIZE]; /* key data */
uint32 pad_1[18];
uint32 algo; /* CRYPTO_ALGO_AES_CCM, CRYPTO_ALGO_WEP128, etc */
uint32 flags; /* misc flags */
uint32 pad_2[2];
int pad_3;
int iv_initialized; /* has IV been initialized already? */
int pad_4;
/* Rx IV */
struct {
uint32 hi; /* upper 32 bits of IV */
uint16 lo; /* lower 16 bits of IV */
} rxiv;
uint32 pad_5[2];
struct ether_addr ea; /* per station */
} wl_wsec_key_t;
#define WSEC_MIN_PSK_LEN 8
#define WSEC_MAX_PSK_LEN 64
/* Flag for key material needing passhash'ing */
#define WSEC_PASSPHRASE (1<<0)
/* receptacle for WLC_SET_WSEC_PMK parameter */
typedef struct {
ushort key_len; /* octets in key material */
ushort flags; /* key handling qualification */
uint8 key[WSEC_MAX_PSK_LEN]; /* PMK material */
} wsec_pmk_t;
typedef struct _pmkid {
struct ether_addr BSSID;
uint8 PMKID[WPA2_PMKID_LEN];
} pmkid_t;
typedef struct _pmkid_list {
uint32 npmkid;
pmkid_t pmkid[1];
} pmkid_list_t;
typedef struct _pmkid_cand {
struct ether_addr BSSID;
uint8 preauth;
} pmkid_cand_t;
typedef struct _pmkid_cand_list {
uint32 npmkid_cand;
pmkid_cand_t pmkid_cand[1];
} pmkid_cand_list_t;
#define WL_STA_ANT_MAX 4 /* max possible rx antennas */
typedef struct wl_assoc_info {
uint32 req_len;
uint32 resp_len;
uint32 flags;
struct dot11_assoc_req req;
struct ether_addr reassoc_bssid; /* used in reassoc's */
struct dot11_assoc_resp resp;
} wl_assoc_info_t;
typedef struct wl_led_info {
uint32 index; /* led index */
uint32 behavior;
uint8 activehi;
} wl_led_info_t;
/* srom read/write struct passed through ioctl */
typedef struct {
uint byteoff; /* byte offset */
uint nbytes; /* number of bytes */
uint16 buf[1];
} srom_rw_t;
#define CISH_FLAG_PCIECIS (1 << 15) /* write CIS format bit for PCIe CIS */
/* similar cis (srom or otp) struct [iovar: may not be aligned] */
typedef struct {
uint16 source; /* cis source */
uint16 flags; /* flags */
uint32 byteoff; /* byte offset */
uint32 nbytes; /* number of bytes */
/* data follows here */
} cis_rw_t;
/* R_REG and W_REG struct passed through ioctl */
typedef struct {
uint32 byteoff; /* byte offset of the field in d11regs_t */
uint32 val; /* read/write value of the field */
uint32 size; /* sizeof the field */
uint band; /* band (optional) */
} rw_reg_t;
/* Structure used by GET/SET_ATTEN ioctls - it controls power in b/g-band */
/* PCL - Power Control Loop */
typedef struct {
uint16 auto_ctrl; /* WL_ATTEN_XX */
uint16 bb; /* Baseband attenuation */
uint16 radio; /* Radio attenuation */
uint16 txctl1; /* Radio TX_CTL1 value */
} atten_t;
/* Per-AC retry parameters */
struct wme_tx_params_s {
uint8 short_retry;
uint8 short_fallback;
uint8 long_retry;
uint8 long_fallback;
uint16 max_rate; /* In units of 512 Kbps */
};
typedef struct wme_tx_params_s wme_tx_params_t;
#define WL_WME_TX_PARAMS_IO_BYTES (sizeof(wme_tx_params_t) * AC_COUNT)
typedef struct wl_plc_nodelist {
uint32 count; /* Number of nodes */
struct _node {
struct ether_addr ea; /* Node ether address */
uint32 node_type; /* Node type */
uint32 cost; /* PLC affinity */
} node[1];
} wl_plc_nodelist_t;
typedef struct wl_plc_params {
uint32 cmd; /* Command */
uint8 plc_failover; /* PLC failover control/status */
struct ether_addr node_ea; /* Node ether address */
uint32 cost; /* Link cost or mac cost */
} wl_plc_params_t;
/* Used to get specific link/ac parameters */
typedef struct {
int32 ac;
uint8 val;
struct ether_addr ea;
} link_val_t;
#define WL_PM_MUTE_TX_VER 1
typedef struct wl_pm_mute_tx {
uint16 version; /* version */
uint16 len; /* length */
uint16 deadline; /* deadline timer (in milliseconds) */
uint8 enable; /* set to 1 to enable mode; set to 0 to disable it */
} wl_pm_mute_tx_t;
typedef struct {
uint16 ver; /* version of this struct */
uint16 len; /* length in bytes of this structure */
uint16 cap; /* sta's advertised capabilities */
uint32 flags; /* flags defined below */
uint32 idle; /* time since data pkt rx'd from sta */
struct ether_addr ea; /* Station address */
wl_rateset_t rateset; /* rateset in use */
uint32 in; /* seconds elapsed since associated */
uint32 listen_interval_inms; /* Min Listen interval in ms for this STA */
uint32 tx_pkts; /* # of user packets transmitted (unicast) */
uint32 tx_failures; /* # of user packets failed */
uint32 rx_ucast_pkts; /* # of unicast packets received */
uint32 rx_mcast_pkts; /* # of multicast packets received */
uint32 tx_rate; /* Rate used by last tx frame */
uint32 rx_rate; /* Rate of last successful rx frame */
uint32 rx_decrypt_succeeds; /* # of packet decrypted successfully */
uint32 rx_decrypt_failures; /* # of packet decrypted unsuccessfully */
uint32 tx_tot_pkts; /* # of user tx pkts (ucast + mcast) */
uint32 rx_tot_pkts; /* # of data packets recvd (uni + mcast) */
uint32 tx_mcast_pkts; /* # of mcast pkts txed */
uint64 tx_tot_bytes; /* data bytes txed (ucast + mcast) */
uint64 rx_tot_bytes; /* data bytes recvd (ucast + mcast) */
uint64 tx_ucast_bytes; /* data bytes txed (ucast) */
uint64 tx_mcast_bytes; /* # data bytes txed (mcast) */
uint64 rx_ucast_bytes; /* data bytes recvd (ucast) */
uint64 rx_mcast_bytes; /* data bytes recvd (mcast) */
int8 rssi[WL_STA_ANT_MAX]; /* average rssi per antenna
* of data frames
*/
int8 nf[WL_STA_ANT_MAX]; /* per antenna noise floor */
uint16 aid; /* association ID */
uint16 ht_capabilities; /* advertised ht caps */
uint16 vht_flags; /* converted vht flags */
uint32 tx_pkts_retried; /* # of frames where a retry was
* necessary
*/
uint32 tx_pkts_retry_exhausted; /* # of user frames where a retry
* was exhausted
*/
int8 rx_lastpkt_rssi[WL_STA_ANT_MAX]; /* Per antenna RSSI of last
* received data frame.
*/
/* TX WLAN retry/failure statistics:
* Separated for host requested frames and WLAN locally generated frames.
* Include unicast frame only where the retries/failures can be counted.
*/
uint32 tx_pkts_total; /* # user frames sent successfully */
uint32 tx_pkts_retries; /* # user frames retries */
uint32 tx_pkts_fw_total; /* # FW generated sent successfully */
uint32 tx_pkts_fw_retries; /* # retries for FW generated frames */
uint32 tx_pkts_fw_retry_exhausted; /* # FW generated where a retry
* was exhausted
*/
uint32 rx_pkts_retried; /* # rx with retry bit set */
uint32 tx_rate_fallback; /* lowest fallback TX rate */
} sta_info_t;
#define WL_OLD_STAINFO_SIZE OFFSETOF(sta_info_t, tx_tot_pkts)
#define WL_STA_VER 4
#define WLC_NUMRATES 16 /* max # of rates in a rateset */
typedef struct wlc_rateset {
uint32 count; /* number of rates in rates[] */
uint8 rates[WLC_NUMRATES]; /* rates in 500kbps units w/hi bit set if basic */
uint8 htphy_membership; /* HT PHY Membership */
uint8 mcs[MCSSET_LEN]; /* supported mcs index bit map */
uint16 vht_mcsmap; /* supported vht mcs nss bit map */
} wlc_rateset_t;
/* Used to get specific STA parameters */
typedef struct {
uint32 val;
struct ether_addr ea;
} scb_val_t;
/* Used by iovar versions of some ioctls, i.e. WLC_SCB_AUTHORIZE et al */
typedef struct {
uint32 code;
scb_val_t ioctl_args;
} authops_t;
/* channel encoding */
typedef struct channel_info {
int hw_channel;
int target_channel;
int scan_channel;
} channel_info_t;
/* For ioctls that take a list of MAC addresses */
typedef struct maclist {
uint count; /* number of MAC addresses */
struct ether_addr ea[1]; /* variable length array of MAC addresses */
} maclist_t;
/* get pkt count struct passed through ioctl */
typedef struct get_pktcnt {
uint rx_good_pkt;
uint rx_bad_pkt;
uint tx_good_pkt;
uint tx_bad_pkt;
uint rx_ocast_good_pkt; /* unicast packets destined for others */
} get_pktcnt_t;
/* NINTENDO2 */
#define LQ_IDX_MIN 0
#define LQ_IDX_MAX 1
#define LQ_IDX_AVG 2
#define LQ_IDX_SUM 2
#define LQ_IDX_LAST 3
#define LQ_STOP_MONITOR 0
#define LQ_START_MONITOR 1
/* Get averages RSSI, Rx PHY rate and SNR values */
typedef struct {
int rssi[LQ_IDX_LAST]; /* Array to keep min, max, avg rssi */
int snr[LQ_IDX_LAST]; /* Array to keep min, max, avg snr */
int isvalid; /* Flag indicating whether above data is valid */
} wl_lq_t; /* Link Quality */
typedef enum wl_wakeup_reason_type {
LCD_ON = 1,
LCD_OFF,
DRC1_WAKE,
DRC2_WAKE,
REASON_LAST
} wl_wr_type_t;
typedef struct {
/* Unique filter id */
uint32 id;
/* stores the reason for the last wake up */
uint8 reason;
} wl_wr_t;
/* Get MAC specific rate histogram command */
typedef struct {
struct ether_addr ea; /* MAC Address */
uint8 ac_cat; /* Access Category */
uint8 num_pkts; /* Number of packet entries to be averaged */
} wl_mac_ratehisto_cmd_t; /* MAC Specific Rate Histogram command */
/* Get MAC rate histogram response */
typedef struct {
uint32 rate[DOT11_RATE_MAX + 1]; /* Rates */
uint32 mcs[WL_RATESET_SZ_HT_MCS * WL_TX_CHAINS_MAX]; /* MCS counts */
uint32 vht[WL_RATESET_SZ_VHT_MCS][WL_TX_CHAINS_MAX]; /* VHT counts */
uint32 tsf_timer[2][2]; /* Start and End time for 8bytes value */
} wl_mac_ratehisto_res_t; /* MAC Specific Rate Histogram Response */
/* Linux network driver ioctl encoding */
typedef struct wl_ioctl {
uint cmd; /* common ioctl definition */
void *buf; /* pointer to user buffer */
uint len; /* length of user buffer */
uint8 set; /* 1=set IOCTL; 0=query IOCTL */
uint used; /* bytes read or written (optional) */
uint needed; /* bytes needed (optional) */
} wl_ioctl_t;
#ifdef CONFIG_COMPAT
typedef struct compat_wl_ioctl {
uint cmd; /* common ioctl definition */
uint32 buf; /* pointer to user buffer */
uint len; /* length of user buffer */
uint8 set; /* 1=set IOCTL; 0=query IOCTL */
uint used; /* bytes read or written (optional) */
uint needed; /* bytes needed (optional) */
} compat_wl_ioctl_t;
#endif /* CONFIG_COMPAT */
#define WL_NUM_RATES_CCK 4 /* 1, 2, 5.5, 11 Mbps */
#define WL_NUM_RATES_OFDM 8 /* 6, 9, 12, 18, 24, 36, 48, 54 Mbps SISO/CDD */
#define WL_NUM_RATES_MCS_1STREAM 8 /* MCS 0-7 1-stream rates - SISO/CDD/STBC/MCS */
#define WL_NUM_RATES_EXTRA_VHT 2 /* Additional VHT 11AC rates */
#define WL_NUM_RATES_VHT 10
#define WL_NUM_RATES_MCS32 1
/*
* Structure for passing hardware and software
* revision info up from the driver.
*/
typedef struct wlc_rev_info {
uint vendorid; /* PCI vendor id */
uint deviceid; /* device id of chip */
uint radiorev; /* radio revision */
uint chiprev; /* chip revision */
uint corerev; /* core revision */
uint boardid; /* board identifier (usu. PCI sub-device id) */
uint boardvendor; /* board vendor (usu. PCI sub-vendor id) */
uint boardrev; /* board revision */
uint driverrev; /* driver version */
uint ucoderev; /* microcode version */
uint bus; /* bus type */
uint chipnum; /* chip number */
uint phytype; /* phy type */
uint phyrev; /* phy revision */
uint anarev; /* anacore rev */
uint chippkg; /* chip package info */
uint nvramrev; /* nvram revision number */
} wlc_rev_info_t;
#define WL_REV_INFO_LEGACY_LENGTH 48
#define WL_BRAND_MAX 10
typedef struct wl_instance_info {
uint instance;
char brand[WL_BRAND_MAX];
} wl_instance_info_t;
/* structure to change size of tx fifo */
typedef struct wl_txfifo_sz {
uint16 magic;
uint16 fifo;
uint16 size;
} wl_txfifo_sz_t;
/* Transfer info about an IOVar from the driver */
/* Max supported IOV name size in bytes, + 1 for nul termination */
#define WLC_IOV_NAME_LEN 30
typedef struct wlc_iov_trx_s {
uint8 module;
uint8 type;
char name[WLC_IOV_NAME_LEN];
} wlc_iov_trx_t;
/* bump this number if you change the ioctl interface */
#define WLC_IOCTL_VERSION 2
#define WLC_IOCTL_VERSION_LEGACY_IOTYPES 1
#ifdef CONFIG_USBRNDIS_RETAIL
/* struct passed in for WLC_NDCONFIG_ITEM */
typedef struct {
char *name;
void *param;
} ndconfig_item_t;
#endif
#define WL_PHY_PAVARS_LEN 32 /* Phy type, Band range, chain, a1[0], b0[0], b1[0] ... */
#define WL_PHY_PAVAR_VER 1 /* pavars version */
#define WL_PHY_PAVARS2_NUM 3 /* a1, b0, b1 */
typedef struct wl_pavars2 {
uint16 ver; /* version of this struct */
uint16 len; /* len of this structure */
uint16 inuse; /* driver return 1 for a1,b0,b1 in current band range */
uint16 phy_type; /* phy type */
uint16 bandrange;
uint16 chain;
uint16 inpa[WL_PHY_PAVARS2_NUM]; /* phy pavars for one band range */
} wl_pavars2_t;
typedef struct wl_po {
uint16 phy_type; /* Phy type */
uint16 band;
uint16 cckpo;
uint32 ofdmpo;
uint16 mcspo[8];
} wl_po_t;
#define WL_NUM_RPCALVARS 5 /* number of rpcal vars */
typedef struct wl_rpcal {
uint16 value;
uint16 update;
} wl_rpcal_t;
typedef struct wl_aci_args {
int enter_aci_thresh; /* Trigger level to start detecting ACI */
int exit_aci_thresh; /* Trigger level to exit ACI mode */
int usec_spin; /* microsecs to delay between rssi samples */
int glitch_delay; /* interval between ACI scans when glitch count is consistently high */
uint16 nphy_adcpwr_enter_thresh; /* ADC power to enter ACI mitigation mode */
uint16 nphy_adcpwr_exit_thresh; /* ADC power to exit ACI mitigation mode */
uint16 nphy_repeat_ctr; /* Number of tries per channel to compute power */
uint16 nphy_num_samples; /* Number of samples to compute power on one channel */
uint16 nphy_undetect_window_sz; /* num of undetects to exit ACI Mitigation mode */
uint16 nphy_b_energy_lo_aci; /* low ACI power energy threshold for bphy */
uint16 nphy_b_energy_md_aci; /* mid ACI power energy threshold for bphy */
uint16 nphy_b_energy_hi_aci; /* high ACI power energy threshold for bphy */
uint16 nphy_noise_noassoc_glitch_th_up; /* wl interference 4 */
uint16 nphy_noise_noassoc_glitch_th_dn;
uint16 nphy_noise_assoc_glitch_th_up;
uint16 nphy_noise_assoc_glitch_th_dn;
uint16 nphy_noise_assoc_aci_glitch_th_up;
uint16 nphy_noise_assoc_aci_glitch_th_dn;
uint16 nphy_noise_assoc_enter_th;
uint16 nphy_noise_noassoc_enter_th;
uint16 nphy_noise_assoc_rx_glitch_badplcp_enter_th;
uint16 nphy_noise_noassoc_crsidx_incr;
uint16 nphy_noise_assoc_crsidx_incr;
uint16 nphy_noise_crsidx_decr;
} wl_aci_args_t;
#define WL_ACI_ARGS_LEGACY_LENGTH 16 /* bytes of pre NPHY aci args */
#define WL_SAMPLECOLLECT_T_VERSION 2 /* version of wl_samplecollect_args_t struct */
typedef struct wl_samplecollect_args {
/* version 0 fields */
uint8 coll_us;
int cores;
/* add'l version 1 fields */
uint16 version; /* see definition of WL_SAMPLECOLLECT_T_VERSION */
uint16 length; /* length of entire structure */
int8 trigger;
uint16 timeout;
uint16 mode;
uint32 pre_dur;
uint32 post_dur;
uint8 gpio_sel;
uint8 downsamp;
uint8 be_deaf;
uint8 agc; /* loop from init gain and going down */
uint8 filter; /* override high pass corners to lowest */
/* add'l version 2 fields */
uint8 trigger_state;
uint8 module_sel1;
uint8 module_sel2;
uint16 nsamps;
int bitStart;
uint32 gpioCapMask;
} wl_samplecollect_args_t;
#define WL_SAMPLEDATA_T_VERSION 1 /* version of wl_samplecollect_args_t struct */
/* version for unpacked sample data, int16 {(I,Q),Core(0..N)} */
#define WL_SAMPLEDATA_T_VERSION_SPEC_AN 2
typedef struct wl_sampledata {
uint16 version; /* structure version */
uint16 size; /* size of structure */
uint16 tag; /* Header/Data */
uint16 length; /* data length */
uint32 flag; /* bit def */
} wl_sampledata_t;
/* WL_OTA START */
/* OTA Test Status */
enum {
WL_OTA_TEST_IDLE = 0, /* Default Idle state */
WL_OTA_TEST_ACTIVE = 1, /* Test Running */
WL_OTA_TEST_SUCCESS = 2, /* Successfully Finished Test */
WL_OTA_TEST_FAIL = 3 /* Test Failed in the Middle */
};
/* OTA SYNC Status */
enum {
WL_OTA_SYNC_IDLE = 0, /* Idle state */
WL_OTA_SYNC_ACTIVE = 1, /* Waiting for Sync */
WL_OTA_SYNC_FAIL = 2 /* Sync pkt not recieved */
};
/* Various error states dut can get stuck during test */
enum {
WL_OTA_SKIP_TEST_CAL_FAIL = 1, /* Phy calibration failed */
WL_OTA_SKIP_TEST_SYNCH_FAIL = 2, /* Sync Packet not recieved */
WL_OTA_SKIP_TEST_FILE_DWNLD_FAIL = 3, /* Cmd flow file download failed */
WL_OTA_SKIP_TEST_NO_TEST_FOUND = 4, /* No test found in Flow file */
WL_OTA_SKIP_TEST_WL_NOT_UP = 5, /* WL UP failed */
WL_OTA_SKIP_TEST_UNKNOWN_CALL /* Unintentional scheduling on ota test */
};
/* Differentiator for ota_tx and ota_rx */
enum {
WL_OTA_TEST_TX = 0, /* ota_tx */
WL_OTA_TEST_RX = 1, /* ota_rx */
};
/* Catch 3 modes of operation: 20Mhz, 40Mhz, 20 in 40 Mhz */
enum {
WL_OTA_TEST_BW_20_IN_40MHZ = 0, /* 20 in 40 operation */
WL_OTA_TEST_BW_20MHZ = 1, /* 20 Mhz operation */
WL_OTA_TEST_BW_40MHZ = 2 /* full 40Mhz operation */
};
typedef struct ota_rate_info {
uint8 rate_cnt; /* Total number of rates */
uint8 rate_val_mbps[WL_OTA_TEST_MAX_NUM_RATE]; /* array of rates from 1mbps to 130mbps */
/* for legacy rates : ratein mbps * 2 */
/* for HT rates : mcs index */
} ota_rate_info_t;
typedef struct ota_power_info {
int8 pwr_ctrl_on; /* power control on/off */
int8 start_pwr; /* starting power/index */
int8 delta_pwr; /* delta power/index */
int8 end_pwr; /* end power/index */
} ota_power_info_t;
typedef struct ota_packetengine {
uint16 delay; /* Inter-packet delay */
/* for ota_tx, delay is tx ifs in micro seconds */
/* for ota_rx, delay is wait time in milliseconds */
uint16 nframes; /* Number of frames */
uint16 length; /* Packet length */
} ota_packetengine_t;
/* Test info vector */
typedef struct wl_ota_test_args {
uint8 cur_test; /* test phase */
uint8 chan; /* channel */
uint8 bw; /* bandwidth */
uint8 control_band; /* control band */
uint8 stf_mode; /* stf mode */
ota_rate_info_t rt_info; /* Rate info */
ota_packetengine_t pkteng; /* packeteng info */
uint8 txant; /* tx antenna */
uint8 rxant; /* rx antenna */
ota_power_info_t pwr_info; /* power sweep info */
uint8 wait_for_sync; /* wait for sync or not */
} wl_ota_test_args_t;
typedef struct wl_ota_test_vector {
wl_ota_test_args_t test_arg[WL_OTA_TEST_MAX_NUM_SEQ]; /* Test argument struct */
uint16 test_cnt; /* Total no of test */
uint8 file_dwnld_valid; /* File successfully downloaded */
uint8 sync_timeout; /* sync packet timeout */
int8 sync_fail_action; /* sync fail action */
struct ether_addr sync_mac; /* macaddress for sync pkt */
struct ether_addr tx_mac; /* macaddress for tx */
struct ether_addr rx_mac; /* macaddress for rx */
int8 loop_test; /* dbg feature to loop the test */
} wl_ota_test_vector_t;
/* struct copied back form dongle to host to query the status */
typedef struct wl_ota_test_status {
int16 cur_test_cnt; /* test phase */
int8 skip_test_reason; /* skip test reasoin */
wl_ota_test_args_t test_arg; /* cur test arg details */
uint16 test_cnt; /* total no of test downloaded */
uint8 file_dwnld_valid; /* file successfully downloaded ? */
uint8 sync_timeout; /* sync timeout */
int8 sync_fail_action; /* sync fail action */
struct ether_addr sync_mac; /* macaddress for sync pkt */
struct ether_addr tx_mac; /* tx mac address */
struct ether_addr rx_mac; /* rx mac address */
uint8 test_stage; /* check the test status */
int8 loop_test; /* Debug feature to puts test enfine in a loop */
uint8 sync_status; /* sync status */
} wl_ota_test_status_t;
/* WL_OTA END */
/* wl_radar_args_t */
typedef struct {
int npulses; /* required number of pulses at n * t_int */
int ncontig; /* required number of pulses at t_int */
int min_pw; /* minimum pulse width (20 MHz clocks) */
int max_pw; /* maximum pulse width (20 MHz clocks) */
uint16 thresh0; /* Radar detection, thresh 0 */
uint16 thresh1; /* Radar detection, thresh 1 */
uint16 blank; /* Radar detection, blank control */
uint16 fmdemodcfg; /* Radar detection, fmdemod config */
int npulses_lp; /* Radar detection, minimum long pulses */
int min_pw_lp; /* Minimum pulsewidth for long pulses */
int max_pw_lp; /* Maximum pulsewidth for long pulses */
int min_fm_lp; /* Minimum fm for long pulses */
int max_span_lp; /* Maximum deltat for long pulses */
int min_deltat; /* Minimum spacing between pulses */
int max_deltat; /* Maximum spacing between pulses */
uint16 autocorr; /* Radar detection, autocorr on or off */
uint16 st_level_time; /* Radar detection, start_timing level */
uint16 t2_min; /* minimum clocks needed to remain in state 2 */
uint32 version; /* version */
uint32 fra_pulse_err; /* sample error margin for detecting French radar pulsed */
int npulses_fra; /* Radar detection, minimum French pulses set */
int npulses_stg2; /* Radar detection, minimum staggered-2 pulses set */
int npulses_stg3; /* Radar detection, minimum staggered-3 pulses set */
uint16 percal_mask; /* defines which period cal is masked from radar detection */
int quant; /* quantization resolution to pulse positions */
uint32 min_burst_intv_lp; /* minimum burst to burst interval for bin3 radar */
uint32 max_burst_intv_lp; /* maximum burst to burst interval for bin3 radar */
int nskip_rst_lp; /* number of skipped pulses before resetting lp buffer */
int max_pw_tol; /* maximum tollerance allowed in detected pulse width for radar detection */
uint16 feature_mask; /* 16-bit mask to specify enabled features */
} wl_radar_args_t;
#define WL_RADAR_ARGS_VERSION 2
typedef struct {
uint32 version; /* version */
uint16 thresh0_20_lo; /* Radar detection, thresh 0 (range 5250-5350MHz) for BW 20MHz */
uint16 thresh1_20_lo; /* Radar detection, thresh 1 (range 5250-5350MHz) for BW 20MHz */
uint16 thresh0_40_lo; /* Radar detection, thresh 0 (range 5250-5350MHz) for BW 40MHz */
uint16 thresh1_40_lo; /* Radar detection, thresh 1 (range 5250-5350MHz) for BW 40MHz */
uint16 thresh0_80_lo; /* Radar detection, thresh 0 (range 5250-5350MHz) for BW 80MHz */
uint16 thresh1_80_lo; /* Radar detection, thresh 1 (range 5250-5350MHz) for BW 80MHz */
uint16 thresh0_20_hi; /* Radar detection, thresh 0 (range 5470-5725MHz) for BW 20MHz */
uint16 thresh1_20_hi; /* Radar detection, thresh 1 (range 5470-5725MHz) for BW 20MHz */
uint16 thresh0_40_hi; /* Radar detection, thresh 0 (range 5470-5725MHz) for BW 40MHz */
uint16 thresh1_40_hi; /* Radar detection, thresh 1 (range 5470-5725MHz) for BW 40MHz */
uint16 thresh0_80_hi; /* Radar detection, thresh 0 (range 5470-5725MHz) for BW 80MHz */
uint16 thresh1_80_hi; /* Radar detection, thresh 1 (range 5470-5725MHz) for BW 80MHz */
#ifdef WL11AC160
uint16 thresh0_160_lo; /* Radar detection, thresh 0 (range 5250-5350MHz) for BW 160MHz */
uint16 thresh1_160_lo; /* Radar detection, thresh 1 (range 5250-5350MHz) for BW 160MHz */
uint16 thresh0_160_hi; /* Radar detection, thresh 0 (range 5470-5725MHz) for BW 160MHz */
uint16 thresh1_160_hi; /* Radar detection, thresh 1 (range 5470-5725MHz) for BW 160MHz */
#endif /* WL11AC160 */
} wl_radar_thr_t;
#define WL_RADAR_THR_VERSION 2
/* RSSI per antenna */
typedef struct {
uint32 version; /* version field */
uint32 count; /* number of valid antenna rssi */
int8 rssi_ant[WL_RSSI_ANT_MAX]; /* rssi per antenna */
} wl_rssi_ant_t;
/* data structure used in 'dfs_status' wl interface, which is used to query dfs status */
typedef struct {
uint state; /* noted by WL_DFS_CACSTATE_XX. */
uint duration; /* time spent in ms in state. */
/* as dfs enters ISM state, it removes the operational channel from quiet channel
* list and notes the channel in channel_cleared. set to 0 if no channel is cleared
*/
chanspec_t chanspec_cleared;
/* chanspec cleared used to be a uint, add another to uint16 to maintain size */
uint16 pad;
} wl_dfs_status_t;
/* data structure used in 'radar_status' wl interface, which is use to query radar det status */
typedef struct {
bool detected;
int count;
bool pretended;
uint32 radartype;
uint32 timenow;
uint32 timefromL;
int lp_csect_single;
int detected_pulse_index;
int nconsecq_pulses;
chanspec_t ch;
int pw[10];
int intv[10];
int fm[10];
} wl_radar_status_t;
#define NUM_PWRCTRL_RATES 12
typedef struct {
uint8 txpwr_band_max[NUM_PWRCTRL_RATES]; /* User set target */
uint8 txpwr_limit[NUM_PWRCTRL_RATES]; /* reg and local power limit */
uint8 txpwr_local_max; /* local max according to the AP */
uint8 txpwr_local_constraint; /* local constraint according to the AP */
uint8 txpwr_chan_reg_max; /* Regulatory max for this channel */
uint8 txpwr_target[2][NUM_PWRCTRL_RATES]; /* Latest target for 2.4 and 5 Ghz */
uint8 txpwr_est_Pout[2]; /* Latest estimate for 2.4 and 5 Ghz */
uint8 txpwr_opo[NUM_PWRCTRL_RATES]; /* On G phy, OFDM power offset */
uint8 txpwr_bphy_cck_max[NUM_PWRCTRL_RATES]; /* Max CCK power for this band (SROM) */
uint8 txpwr_bphy_ofdm_max; /* Max OFDM power for this band (SROM) */
uint8 txpwr_aphy_max[NUM_PWRCTRL_RATES]; /* Max power for A band (SROM) */
int8 txpwr_antgain[2]; /* Ant gain for each band - from SROM */
uint8 txpwr_est_Pout_gofdm; /* Pwr estimate for 2.4 OFDM */
} tx_power_legacy_t;
#define WL_TX_POWER_RATES_LEGACY 45
#define WL_TX_POWER_MCS20_FIRST 12
#define WL_TX_POWER_MCS20_NUM 16
#define WL_TX_POWER_MCS40_FIRST 28
#define WL_TX_POWER_MCS40_NUM 17
typedef struct {
uint32 flags;
chanspec_t chanspec; /* txpwr report for this channel */
chanspec_t local_chanspec; /* channel on which we are associated */
uint8 local_max; /* local max according to the AP */
uint8 local_constraint; /* local constraint according to the AP */
int8 antgain[2]; /* Ant gain for each band - from SROM */
uint8 rf_cores; /* count of RF Cores being reported */
uint8 est_Pout[4]; /* Latest tx power out estimate per RF
* chain without adjustment
*/
uint8 est_Pout_cck; /* Latest CCK tx power out estimate */
uint8 user_limit[WL_TX_POWER_RATES_LEGACY]; /* User limit */
uint8 reg_limit[WL_TX_POWER_RATES_LEGACY]; /* Regulatory power limit */
uint8 board_limit[WL_TX_POWER_RATES_LEGACY]; /* Max power board can support (SROM) */
uint8 target[WL_TX_POWER_RATES_LEGACY]; /* Latest target power */
} tx_power_legacy2_t;
/* TX Power index defines */
#define WLC_NUM_RATES_CCK WL_NUM_RATES_CCK
#define WLC_NUM_RATES_OFDM WL_NUM_RATES_OFDM
#define WLC_NUM_RATES_MCS_1_STREAM WL_NUM_RATES_MCS_1STREAM
#define WLC_NUM_RATES_MCS_2_STREAM WL_NUM_RATES_MCS_1STREAM
#define WLC_NUM_RATES_MCS32 WL_NUM_RATES_MCS32
#define WL_TX_POWER_CCK_NUM WL_NUM_RATES_CCK
#define WL_TX_POWER_OFDM_NUM WL_NUM_RATES_OFDM
#define WL_TX_POWER_MCS_1_STREAM_NUM WL_NUM_RATES_MCS_1STREAM
#define WL_TX_POWER_MCS_2_STREAM_NUM WL_NUM_RATES_MCS_1STREAM
#define WL_TX_POWER_MCS_32_NUM WL_NUM_RATES_MCS32
#define WL_NUM_2x2_ELEMENTS 4
#define WL_NUM_3x3_ELEMENTS 6
typedef struct {
uint16 ver; /* version of this struct */
uint16 len; /* length in bytes of this structure */
uint32 flags;
chanspec_t chanspec; /* txpwr report for this channel */
chanspec_t local_chanspec; /* channel on which we are associated */
uint32 buflen; /* ppr buffer length */
uint8 pprbuf[1]; /* Latest target power buffer */
} wl_txppr_t;
#define WL_TXPPR_VERSION 1
#define WL_TXPPR_LENGTH (sizeof(wl_txppr_t))
#define TX_POWER_T_VERSION 45
/* number of ppr serialization buffers, it should be reg, board and target */
#define WL_TXPPR_SER_BUF_NUM (3)
typedef struct chanspec_txpwr_max {
chanspec_t chanspec; /* chanspec */
uint8 txpwr_max; /* max txpwr in all the rates */
uint8 padding;
} chanspec_txpwr_max_t;
typedef struct wl_chanspec_txpwr_max {
uint16 ver; /* version of this struct */
uint16 len; /* length in bytes of this structure */
uint32 count; /* number of elements of (chanspec, txpwr_max) pair */
chanspec_txpwr_max_t txpwr[1]; /* array of (chanspec, max_txpwr) pair */
} wl_chanspec_txpwr_max_t;
#define WL_CHANSPEC_TXPWR_MAX_VER 1
#define WL_CHANSPEC_TXPWR_MAX_LEN (sizeof(wl_chanspec_txpwr_max_t))
typedef struct tx_inst_power {
uint8 txpwr_est_Pout[2]; /* Latest estimate for 2.4 and 5 Ghz */
uint8 txpwr_est_Pout_gofdm; /* Pwr estimate for 2.4 OFDM */
} tx_inst_power_t;
#define WL_NUM_TXCHAIN_MAX 4
typedef struct wl_txchain_pwr_offsets {
int8 offset[WL_NUM_TXCHAIN_MAX]; /* quarter dBm signed offset for each chain */
} wl_txchain_pwr_offsets_t;
/* maximum channels returned by the get valid channels iovar */
#define WL_NUMCHANNELS 64
/*
* Join preference iovar value is an array of tuples. Each tuple has a one-byte type,
* a one-byte length, and a variable length value. RSSI type tuple must be present
* in the array.
*
* Types are defined in "join preference types" section.
*
* Length is the value size in octets. It is reserved for WL_JOIN_PREF_WPA type tuple
* and must be set to zero.
*
* Values are defined below.
*
* 1. RSSI - 2 octets
* offset 0: reserved
* offset 1: reserved
*
* 2. WPA - 2 + 12 * n octets (n is # tuples defined below)
* offset 0: reserved
* offset 1: # of tuples
* offset 2: tuple 1
* offset 14: tuple 2
* ...
* offset 2 + 12 * (n - 1) octets: tuple n
*
* struct wpa_cfg_tuple {
* uint8 akm[DOT11_OUI_LEN+1]; akm suite
* uint8 ucipher[DOT11_OUI_LEN+1]; unicast cipher suite
* uint8 mcipher[DOT11_OUI_LEN+1]; multicast cipher suite
* };
*
* multicast cipher suite can be specified as a specific cipher suite or WL_WPA_ACP_MCS_ANY.
*
* 3. BAND - 2 octets
* offset 0: reserved
* offset 1: see "band preference" and "band types"
*
* 4. BAND RSSI - 2 octets
* offset 0: band types
* offset 1: +ve RSSI boost value in dB
*/
struct tsinfo_arg {
uint8 octets[3];
};
#define RATE_CCK_1MBPS 0
#define RATE_CCK_2MBPS 1
#define RATE_CCK_5_5MBPS 2
#define RATE_CCK_11MBPS 3
#define RATE_LEGACY_OFDM_6MBPS 0
#define RATE_LEGACY_OFDM_9MBPS 1
#define RATE_LEGACY_OFDM_12MBPS 2
#define RATE_LEGACY_OFDM_18MBPS 3
#define RATE_LEGACY_OFDM_24MBPS 4
#define RATE_LEGACY_OFDM_36MBPS 5
#define RATE_LEGACY_OFDM_48MBPS 6
#define RATE_LEGACY_OFDM_54MBPS 7
#define WL_BSSTRANS_RSSI_RATE_MAP_VERSION 1
typedef struct wl_bsstrans_rssi {
int8 rssi_2g; /* RSSI in dbm for 2.4 G */
int8 rssi_5g; /* RSSI in dbm for 5G, unused for cck */
} wl_bsstrans_rssi_t;
#define RSSI_RATE_MAP_MAX_STREAMS 4 /* max streams supported */
/* RSSI to rate mapping, all 20Mhz, no SGI */
typedef struct wl_bsstrans_rssi_rate_map {
uint16 ver;
uint16 len; /* length of entire structure */
wl_bsstrans_rssi_t cck[WL_NUM_RATES_CCK]; /* 2.4G only */
wl_bsstrans_rssi_t ofdm[WL_NUM_RATES_OFDM]; /* 6 to 54mbps */
wl_bsstrans_rssi_t phy_n[RSSI_RATE_MAP_MAX_STREAMS][WL_NUM_RATES_MCS_1STREAM]; /* MCS0-7 */
wl_bsstrans_rssi_t phy_ac[RSSI_RATE_MAP_MAX_STREAMS][WL_NUM_RATES_VHT]; /* MCS0-9 */
} wl_bsstrans_rssi_rate_map_t;
#define WL_BSSTRANS_ROAMTHROTTLE_VERSION 1
/* Configure number of scans allowed per throttle period */
typedef struct wl_bsstrans_roamthrottle {
uint16 ver;
uint16 period;
uint16 scans_allowed;
} wl_bsstrans_roamthrottle_t;
#define NFIFO 6 /* # tx/rx fifopairs */
#define NREINITREASONCOUNT 8
#define REINITREASONIDX(_x) (((_x) < NREINITREASONCOUNT) ? (_x) : 0)
#define WL_CNT_T_VERSION 10 /* current version of wl_cnt_t struct */
typedef struct {
uint16 version; /* see definition of WL_CNT_T_VERSION */
uint16 length; /* length of entire structure */
/* transmit stat counters */
uint32 txframe; /* tx data frames */
uint32 txbyte; /* tx data bytes */
uint32 txretrans; /* tx mac retransmits */
uint32 txerror; /* tx data errors (derived: sum of others) */
uint32 txctl; /* tx management frames */
uint32 txprshort; /* tx short preamble frames */
uint32 txserr; /* tx status errors */
uint32 txnobuf; /* tx out of buffers errors */
uint32 txnoassoc; /* tx discard because we're not associated */
uint32 txrunt; /* tx runt frames */
uint32 txchit; /* tx header cache hit (fastpath) */
uint32 txcmiss; /* tx header cache miss (slowpath) */
/* transmit chip error counters */
uint32 txuflo; /* tx fifo underflows */
uint32 txphyerr; /* tx phy errors (indicated in tx status) */
uint32 txphycrs;
/* receive stat counters */
uint32 rxframe; /* rx data frames */
uint32 rxbyte; /* rx data bytes */
uint32 rxerror; /* rx data errors (derived: sum of others) */
uint32 rxctl; /* rx management frames */
uint32 rxnobuf; /* rx out of buffers errors */
uint32 rxnondata; /* rx non data frames in the data channel errors */
uint32 rxbadds; /* rx bad DS errors */
uint32 rxbadcm; /* rx bad control or management frames */
uint32 rxfragerr; /* rx fragmentation errors */
uint32 rxrunt; /* rx runt frames */
uint32 rxgiant; /* rx giant frames */
uint32 rxnoscb; /* rx no scb error */
uint32 rxbadproto; /* rx invalid frames */
uint32 rxbadsrcmac; /* rx frames with Invalid Src Mac */
uint32 rxbadda; /* rx frames tossed for invalid da */
uint32 rxfilter; /* rx frames filtered out */
/* receive chip error counters */
uint32 rxoflo; /* rx fifo overflow errors */
uint32 rxuflo[NFIFO]; /* rx dma descriptor underflow errors */
uint32 d11cnt_txrts_off; /* d11cnt txrts value when reset d11cnt */
uint32 d11cnt_rxcrc_off; /* d11cnt rxcrc value when reset d11cnt */
uint32 d11cnt_txnocts_off; /* d11cnt txnocts value when reset d11cnt */
/* misc counters */
uint32 dmade; /* tx/rx dma descriptor errors */
uint32 dmada; /* tx/rx dma data errors */
uint32 dmape; /* tx/rx dma descriptor protocol errors */
uint32 reset; /* reset count */
uint32 tbtt; /* cnts the TBTT int's */
uint32 txdmawar;
uint32 pkt_callback_reg_fail; /* callbacks register failure */
/* MAC counters: 32-bit version of d11.h's macstat_t */
uint32 txallfrm; /* total number of frames sent, incl. Data, ACK, RTS, CTS,
* Control Management (includes retransmissions)
*/
uint32 txrtsfrm; /* number of RTS sent out by the MAC */
uint32 txctsfrm; /* number of CTS sent out by the MAC */
uint32 txackfrm; /* number of ACK frames sent out */
uint32 txdnlfrm; /* Not used */
uint32 txbcnfrm; /* beacons transmitted */
uint32 txfunfl[6]; /* per-fifo tx underflows */
uint32 rxtoolate; /* receive too late */
uint32 txfbw; /* transmit at fallback bw (dynamic bw) */
uint32 txtplunfl; /* Template underflows (mac was too slow to transmit ACK/CTS
* or BCN)
*/
uint32 txphyerror; /* Transmit phy error, type of error is reported in tx-status for
* driver enqueued frames
*/
uint32 rxfrmtoolong; /* Received frame longer than legal limit (2346 bytes) */
uint32 rxfrmtooshrt; /* Received frame did not contain enough bytes for its frame type */
uint32 rxinvmachdr; /* Either the protocol version != 0 or frame type not
* data/control/management
*/
uint32 rxbadfcs; /* number of frames for which the CRC check failed in the MAC */
uint32 rxbadplcp; /* parity check of the PLCP header failed */
uint32 rxcrsglitch; /* PHY was able to correlate the preamble but not the header */
uint32 rxstrt; /* Number of received frames with a good PLCP
* (i.e. passing parity check)
*/
uint32 rxdfrmucastmbss; /* Number of received DATA frames with good FCS and matching RA */
uint32 rxmfrmucastmbss; /* number of received mgmt frames with good FCS and matching RA */
uint32 rxcfrmucast; /* number of received CNTRL frames with good FCS and matching RA */
uint32 rxrtsucast; /* number of unicast RTS addressed to the MAC (good FCS) */
uint32 rxctsucast; /* number of unicast CTS addressed to the MAC (good FCS) */
uint32 rxackucast; /* number of ucast ACKS received (good FCS) */
uint32 rxdfrmocast; /* number of received DATA frames (good FCS and not matching RA) */
uint32 rxmfrmocast; /* number of received MGMT frames (good FCS and not matching RA) */
uint32 rxcfrmocast; /* number of received CNTRL frame (good FCS and not matching RA) */
uint32 rxrtsocast; /* number of received RTS not addressed to the MAC */
uint32 rxctsocast; /* number of received CTS not addressed to the MAC */
uint32 rxdfrmmcast; /* number of RX Data multicast frames received by the MAC */
uint32 rxmfrmmcast; /* number of RX Management multicast frames received by the MAC */
uint32 rxcfrmmcast; /* number of RX Control multicast frames received by the MAC
* (unlikely to see these)
*/
uint32 rxbeaconmbss; /* beacons received from member of BSS */
uint32 rxdfrmucastobss; /* number of unicast frames addressed to the MAC from
* other BSS (WDS FRAME)
*/
uint32 rxbeaconobss; /* beacons received from other BSS */
uint32 rxrsptmout; /* Number of response timeouts for transmitted frames
* expecting a response
*/
uint32 bcntxcancl; /* transmit beacons canceled due to receipt of beacon (IBSS) */
uint32 rxf0ovfl; /* Number of receive fifo 0 overflows */
uint32 rxf1ovfl; /* Number of receive fifo 1 overflows (obsolete) */
uint32 rxf2ovfl; /* Number of receive fifo 2 overflows (obsolete) */
uint32 txsfovfl; /* Number of transmit status fifo overflows (obsolete) */
uint32 pmqovfl; /* Number of PMQ overflows */
uint32 rxcgprqfrm; /* Number of received Probe requests that made it into
* the PRQ fifo
*/
uint32 rxcgprsqovfl; /* Rx Probe Request Que overflow in the AP */
uint32 txcgprsfail; /* Tx Probe Response Fail. AP sent probe response but did
* not get ACK
*/
uint32 txcgprssuc; /* Tx Probe Response Success (ACK was received) */
uint32 prs_timeout; /* Number of probe requests that were dropped from the PRQ
* fifo because a probe response could not be sent out within
* the time limit defined in M_PRS_MAXTIME
*/
uint32 rxnack; /* obsolete */
uint32 frmscons; /* obsolete */
uint32 txnack; /* obsolete */
uint32 rxback; /* blockack rxcnt */
uint32 txback; /* blockack txcnt */
/* 802.11 MIB counters, pp. 614 of 802.11 reaff doc. */
uint32 txfrag; /* dot11TransmittedFragmentCount */
uint32 txmulti; /* dot11MulticastTransmittedFrameCount */
uint32 txfail; /* dot11FailedCount */
uint32 txretry; /* dot11RetryCount */
uint32 txretrie; /* dot11MultipleRetryCount */
uint32 rxdup; /* dot11FrameduplicateCount */
uint32 txrts; /* dot11RTSSuccessCount */
uint32 txnocts; /* dot11RTSFailureCount */
uint32 txnoack; /* dot11ACKFailureCount */
uint32 rxfrag; /* dot11ReceivedFragmentCount */
uint32 rxmulti; /* dot11MulticastReceivedFrameCount */
uint32 rxcrc; /* dot11FCSErrorCount */
uint32 txfrmsnt; /* dot11TransmittedFrameCount (bogus MIB?) */
uint32 rxundec; /* dot11WEPUndecryptableCount */
/* WPA2 counters (see rxundec for DecryptFailureCount) */
uint32 tkipmicfaill; /* TKIPLocalMICFailures */
uint32 tkipcntrmsr; /* TKIPCounterMeasuresInvoked */
uint32 tkipreplay; /* TKIPReplays */
uint32 ccmpfmterr; /* CCMPFormatErrors */
uint32 ccmpreplay; /* CCMPReplays */
uint32 ccmpundec; /* CCMPDecryptErrors */
uint32 fourwayfail; /* FourWayHandshakeFailures */
uint32 wepundec; /* dot11WEPUndecryptableCount */
uint32 wepicverr; /* dot11WEPICVErrorCount */
uint32 decsuccess; /* DecryptSuccessCount */
uint32 tkipicverr; /* TKIPICVErrorCount */
uint32 wepexcluded; /* dot11WEPExcludedCount */
uint32 txchanrej; /* Tx frames suppressed due to channel rejection */
uint32 psmwds; /* Count PSM watchdogs */
uint32 phywatchdog; /* Count Phy watchdogs (triggered by ucode) */
/* MBSS counters, AP only */
uint32 prq_entries_handled; /* PRQ entries read in */
uint32 prq_undirected_entries; /* which were bcast bss & ssid */
uint32 prq_bad_entries; /* which could not be translated to info */
uint32 atim_suppress_count; /* TX suppressions on ATIM fifo */
uint32 bcn_template_not_ready; /* Template marked in use on send bcn ... */
uint32 bcn_template_not_ready_done; /* ...but "DMA done" interrupt rcvd */
uint32 late_tbtt_dpc; /* TBTT DPC did not happen in time */
/* per-rate receive stat counters */
uint32 rx1mbps; /* packets rx at 1Mbps */
uint32 rx2mbps; /* packets rx at 2Mbps */
uint32 rx5mbps5; /* packets rx at 5.5Mbps */
uint32 rx6mbps; /* packets rx at 6Mbps */
uint32 rx9mbps; /* packets rx at 9Mbps */
uint32 rx11mbps; /* packets rx at 11Mbps */
uint32 rx12mbps; /* packets rx at 12Mbps */
uint32 rx18mbps; /* packets rx at 18Mbps */
uint32 rx24mbps; /* packets rx at 24Mbps */
uint32 rx36mbps; /* packets rx at 36Mbps */
uint32 rx48mbps; /* packets rx at 48Mbps */
uint32 rx54mbps; /* packets rx at 54Mbps */
uint32 rx108mbps; /* packets rx at 108mbps */
uint32 rx162mbps; /* packets rx at 162mbps */
uint32 rx216mbps; /* packets rx at 216 mbps */
uint32 rx270mbps; /* packets rx at 270 mbps */
uint32 rx324mbps; /* packets rx at 324 mbps */
uint32 rx378mbps; /* packets rx at 378 mbps */
uint32 rx432mbps; /* packets rx at 432 mbps */
uint32 rx486mbps; /* packets rx at 486 mbps */
uint32 rx540mbps; /* packets rx at 540 mbps */
/* pkteng rx frame stats */
uint32 pktengrxducast; /* unicast frames rxed by the pkteng code */
uint32 pktengrxdmcast; /* multicast frames rxed by the pkteng code */
uint32 rfdisable; /* count of radio disables */
uint32 bphy_rxcrsglitch; /* PHY count of bphy glitches */
uint32 bphy_badplcp;
uint32 txexptime; /* Tx frames suppressed due to timer expiration */
uint32 txmpdu_sgi; /* count for sgi transmit */
uint32 rxmpdu_sgi; /* count for sgi received */
uint32 txmpdu_stbc; /* count for stbc transmit */
uint32 rxmpdu_stbc; /* count for stbc received */
uint32 rxundec_mcst; /* dot11WEPUndecryptableCount */
/* WPA2 counters (see rxundec for DecryptFailureCount) */
uint32 tkipmicfaill_mcst; /* TKIPLocalMICFailures */
uint32 tkipcntrmsr_mcst; /* TKIPCounterMeasuresInvoked */
uint32 tkipreplay_mcst; /* TKIPReplays */
uint32 ccmpfmterr_mcst; /* CCMPFormatErrors */
uint32 ccmpreplay_mcst; /* CCMPReplays */
uint32 ccmpundec_mcst; /* CCMPDecryptErrors */
uint32 fourwayfail_mcst; /* FourWayHandshakeFailures */
uint32 wepundec_mcst; /* dot11WEPUndecryptableCount */
uint32 wepicverr_mcst; /* dot11WEPICVErrorCount */
uint32 decsuccess_mcst; /* DecryptSuccessCount */
uint32 tkipicverr_mcst; /* TKIPICVErrorCount */
uint32 wepexcluded_mcst; /* dot11WEPExcludedCount */
uint32 dma_hang; /* count for dma hang */
uint32 reinit; /* count for reinit */
uint32 pstatxucast; /* count of ucast frames xmitted on all psta assoc */
uint32 pstatxnoassoc; /* count of txnoassoc frames xmitted on all psta assoc */
uint32 pstarxucast; /* count of ucast frames received on all psta assoc */
uint32 pstarxbcmc; /* count of bcmc frames received on all psta */
uint32 pstatxbcmc; /* count of bcmc frames transmitted on all psta */
uint32 cso_passthrough; /* hw cso required but passthrough */
uint32 cso_normal; /* hw cso hdr for normal process */
uint32 chained; /* number of frames chained */
uint32 chainedsz1; /* number of chain size 1 frames */
uint32 unchained; /* number of frames not chained */
uint32 maxchainsz; /* max chain size so far */
uint32 currchainsz; /* current chain size */
uint32 rxdrop20s; /* drop secondary cnt */
uint32 pciereset; /* Secondary Bus Reset issued by driver */
uint32 cfgrestore; /* configspace restore by driver */
uint32 reinitreason[NREINITREASONCOUNT]; /* reinitreason counters; 0: Unknown reason */
} wl_cnt_t;
typedef struct {
uint16 version; /* see definition of WL_CNT_T_VERSION */
uint16 length; /* length of entire structure */
/* transmit stat counters */
uint32 txframe; /* tx data frames */
uint32 txbyte; /* tx data bytes */
uint32 txretrans; /* tx mac retransmits */
uint32 txerror; /* tx data errors (derived: sum of others) */
uint32 txctl; /* tx management frames */
uint32 txprshort; /* tx short preamble frames */
uint32 txserr; /* tx status errors */
uint32 txnobuf; /* tx out of buffers errors */
uint32 txnoassoc; /* tx discard because we're not associated */
uint32 txrunt; /* tx runt frames */
uint32 txchit; /* tx header cache hit (fastpath) */
uint32 txcmiss; /* tx header cache miss (slowpath) */
/* transmit chip error counters */
uint32 txuflo; /* tx fifo underflows */
uint32 txphyerr; /* tx phy errors (indicated in tx status) */
uint32 txphycrs;
/* receive stat counters */
uint32 rxframe; /* rx data frames */
uint32 rxbyte; /* rx data bytes */
uint32 rxerror; /* rx data errors (derived: sum of others) */
uint32 rxctl; /* rx management frames */
uint32 rxnobuf; /* rx out of buffers errors */
uint32 rxnondata; /* rx non data frames in the data channel errors */
uint32 rxbadds; /* rx bad DS errors */
uint32 rxbadcm; /* rx bad control or management frames */
uint32 rxfragerr; /* rx fragmentation errors */
uint32 rxrunt; /* rx runt frames */
uint32 rxgiant; /* rx giant frames */
uint32 rxnoscb; /* rx no scb error */
uint32 rxbadproto; /* rx invalid frames */
uint32 rxbadsrcmac; /* rx frames with Invalid Src Mac */
uint32 rxbadda; /* rx frames tossed for invalid da */
uint32 rxfilter; /* rx frames filtered out */
/* receive chip error counters */
uint32 rxoflo; /* rx fifo overflow errors */
uint32 rxuflo[NFIFO]; /* rx dma descriptor underflow errors */
uint32 d11cnt_txrts_off; /* d11cnt txrts value when reset d11cnt */
uint32 d11cnt_rxcrc_off; /* d11cnt rxcrc value when reset d11cnt */
uint32 d11cnt_txnocts_off; /* d11cnt txnocts value when reset d11cnt */
/* misc counters */
uint32 dmade; /* tx/rx dma descriptor errors */
uint32 dmada; /* tx/rx dma data errors */
uint32 dmape; /* tx/rx dma descriptor protocol errors */
uint32 reset; /* reset count */
uint32 tbtt; /* cnts the TBTT int's */
uint32 txdmawar;
uint32 pkt_callback_reg_fail; /* callbacks register failure */
/* MAC counters: 32-bit version of d11.h's macstat_t */
uint32 txallfrm; /* total number of frames sent, incl. Data, ACK, RTS, CTS,
* Control Management (includes retransmissions)
*/
uint32 txrtsfrm; /* number of RTS sent out by the MAC */
uint32 txctsfrm; /* number of CTS sent out by the MAC */
uint32 txackfrm; /* number of ACK frames sent out */
uint32 txdnlfrm; /* Not used */
uint32 txbcnfrm; /* beacons transmitted */
uint32 txfunfl[6]; /* per-fifo tx underflows */
uint32 rxtoolate; /* receive too late */
uint32 txfbw; /* transmit at fallback bw (dynamic bw) */
uint32 txtplunfl; /* Template underflows (mac was too slow to transmit ACK/CTS
* or BCN)
*/
uint32 txphyerror; /* Transmit phy error, type of error is reported in tx-status for
* driver enqueued frames
*/
uint32 rxfrmtoolong; /* Received frame longer than legal limit (2346 bytes) */
uint32 rxfrmtooshrt; /* Received frame did not contain enough bytes for its frame type */
uint32 rxinvmachdr; /* Either the protocol version != 0 or frame type not
* data/control/management
*/
uint32 rxbadfcs; /* number of frames for which the CRC check failed in the MAC */
uint32 rxbadplcp; /* parity check of the PLCP header failed */
uint32 rxcrsglitch; /* PHY was able to correlate the preamble but not the header */
uint32 rxstrt; /* Number of received frames with a good PLCP
* (i.e. passing parity check)
*/
uint32 rxdfrmucastmbss; /* Number of received DATA frames with good FCS and matching RA */
uint32 rxmfrmucastmbss; /* number of received mgmt frames with good FCS and matching RA */
uint32 rxcfrmucast; /* number of received CNTRL frames with good FCS and matching RA */
uint32 rxrtsucast; /* number of unicast RTS addressed to the MAC (good FCS) */
uint32 rxctsucast; /* number of unicast CTS addressed to the MAC (good FCS) */
uint32 rxackucast; /* number of ucast ACKS received (good FCS) */
uint32 rxdfrmocast; /* number of received DATA frames (good FCS and not matching RA) */
uint32 rxmfrmocast; /* number of received MGMT frames (good FCS and not matching RA) */
uint32 rxcfrmocast; /* number of received CNTRL frame (good FCS and not matching RA) */
uint32 rxrtsocast; /* number of received RTS not addressed to the MAC */
uint32 rxctsocast; /* number of received CTS not addressed to the MAC */
uint32 rxdfrmmcast; /* number of RX Data multicast frames received by the MAC */
uint32 rxmfrmmcast; /* number of RX Management multicast frames received by the MAC */
uint32 rxcfrmmcast; /* number of RX Control multicast frames received by the MAC
* (unlikely to see these)
*/
uint32 rxbeaconmbss; /* beacons received from member of BSS */
uint32 rxdfrmucastobss; /* number of unicast frames addressed to the MAC from
* other BSS (WDS FRAME)
*/
uint32 rxbeaconobss; /* beacons received from other BSS */
uint32 rxrsptmout; /* Number of response timeouts for transmitted frames
* expecting a response
*/
uint32 bcntxcancl; /* transmit beacons canceled due to receipt of beacon (IBSS) */
uint32 rxf0ovfl; /* Number of receive fifo 0 overflows */
uint32 rxf1ovfl; /* Number of receive fifo 1 overflows (obsolete) */
uint32 rxf2ovfl; /* Number of receive fifo 2 overflows (obsolete) */
uint32 txsfovfl; /* Number of transmit status fifo overflows (obsolete) */
uint32 pmqovfl; /* Number of PMQ overflows */
uint32 rxcgprqfrm; /* Number of received Probe requests that made it into
* the PRQ fifo
*/
uint32 rxcgprsqovfl; /* Rx Probe Request Que overflow in the AP */
uint32 txcgprsfail; /* Tx Probe Response Fail. AP sent probe response but did
* not get ACK
*/
uint32 txcgprssuc; /* Tx Probe Response Success (ACK was received) */
uint32 prs_timeout; /* Number of probe requests that were dropped from the PRQ
* fifo because a probe response could not be sent out within
* the time limit defined in M_PRS_MAXTIME
*/
uint32 rxnack;
uint32 frmscons;
uint32 txnack; /* obsolete */
uint32 rxback; /* blockack rxcnt */
uint32 txback; /* blockack txcnt */
/* 802.11 MIB counters, pp. 614 of 802.11 reaff doc. */
uint32 txfrag; /* dot11TransmittedFragmentCount */
uint32 txmulti; /* dot11MulticastTransmittedFrameCount */
uint32 txfail; /* dot11FailedCount */
uint32 txretry; /* dot11RetryCount */
uint32 txretrie; /* dot11MultipleRetryCount */
uint32 rxdup; /* dot11FrameduplicateCount */
uint32 txrts; /* dot11RTSSuccessCount */
uint32 txnocts; /* dot11RTSFailureCount */
uint32 txnoack; /* dot11ACKFailureCount */
uint32 rxfrag; /* dot11ReceivedFragmentCount */
uint32 rxmulti; /* dot11MulticastReceivedFrameCount */
uint32 rxcrc; /* dot11FCSErrorCount */
uint32 txfrmsnt; /* dot11TransmittedFrameCount (bogus MIB?) */
uint32 rxundec; /* dot11WEPUndecryptableCount */
/* WPA2 counters (see rxundec for DecryptFailureCount) */
uint32 tkipmicfaill; /* TKIPLocalMICFailures */
uint32 tkipcntrmsr; /* TKIPCounterMeasuresInvoked */
uint32 tkipreplay; /* TKIPReplays */
uint32 ccmpfmterr; /* CCMPFormatErrors */
uint32 ccmpreplay; /* CCMPReplays */
uint32 ccmpundec; /* CCMPDecryptErrors */
uint32 fourwayfail; /* FourWayHandshakeFailures */
uint32 wepundec; /* dot11WEPUndecryptableCount */
uint32 wepicverr; /* dot11WEPICVErrorCount */
uint32 decsuccess; /* DecryptSuccessCount */
uint32 tkipicverr; /* TKIPICVErrorCount */
uint32 wepexcluded; /* dot11WEPExcludedCount */
uint32 rxundec_mcst; /* dot11WEPUndecryptableCount */
/* WPA2 counters (see rxundec for DecryptFailureCount) */
uint32 tkipmicfaill_mcst; /* TKIPLocalMICFailures */
uint32 tkipcntrmsr_mcst; /* TKIPCounterMeasuresInvoked */
uint32 tkipreplay_mcst; /* TKIPReplays */
uint32 ccmpfmterr_mcst; /* CCMPFormatErrors */
uint32 ccmpreplay_mcst; /* CCMPReplays */
uint32 ccmpundec_mcst; /* CCMPDecryptErrors */
uint32 fourwayfail_mcst; /* FourWayHandshakeFailures */
uint32 wepundec_mcst; /* dot11WEPUndecryptableCount */
uint32 wepicverr_mcst; /* dot11WEPICVErrorCount */
uint32 decsuccess_mcst; /* DecryptSuccessCount */
uint32 tkipicverr_mcst; /* TKIPICVErrorCount */
uint32 wepexcluded_mcst; /* dot11WEPExcludedCount */
uint32 txchanrej; /* Tx frames suppressed due to channel rejection */
uint32 txexptime; /* Tx frames suppressed due to timer expiration */
uint32 psmwds; /* Count PSM watchdogs */
uint32 phywatchdog; /* Count Phy watchdogs (triggered by ucode) */
/* MBSS counters, AP only */
uint32 prq_entries_handled; /* PRQ entries read in */
uint32 prq_undirected_entries; /* which were bcast bss & ssid */
uint32 prq_bad_entries; /* which could not be translated to info */
uint32 atim_suppress_count; /* TX suppressions on ATIM fifo */
uint32 bcn_template_not_ready; /* Template marked in use on send bcn ... */
uint32 bcn_template_not_ready_done; /* ...but "DMA done" interrupt rcvd */
uint32 late_tbtt_dpc; /* TBTT DPC did not happen in time */
/* per-rate receive stat counters */
uint32 rx1mbps; /* packets rx at 1Mbps */
uint32 rx2mbps; /* packets rx at 2Mbps */
uint32 rx5mbps5; /* packets rx at 5.5Mbps */
uint32 rx6mbps; /* packets rx at 6Mbps */
uint32 rx9mbps; /* packets rx at 9Mbps */
uint32 rx11mbps; /* packets rx at 11Mbps */
uint32 rx12mbps; /* packets rx at 12Mbps */
uint32 rx18mbps; /* packets rx at 18Mbps */
uint32 rx24mbps; /* packets rx at 24Mbps */
uint32 rx36mbps; /* packets rx at 36Mbps */
uint32 rx48mbps; /* packets rx at 48Mbps */
uint32 rx54mbps; /* packets rx at 54Mbps */
uint32 rx108mbps; /* packets rx at 108mbps */
uint32 rx162mbps; /* packets rx at 162mbps */
uint32 rx216mbps; /* packets rx at 216 mbps */
uint32 rx270mbps; /* packets rx at 270 mbps */
uint32 rx324mbps; /* packets rx at 324 mbps */
uint32 rx378mbps; /* packets rx at 378 mbps */
uint32 rx432mbps; /* packets rx at 432 mbps */
uint32 rx486mbps; /* packets rx at 486 mbps */
uint32 rx540mbps; /* packets rx at 540 mbps */
/* pkteng rx frame stats */
uint32 pktengrxducast; /* unicast frames rxed by the pkteng code */
uint32 pktengrxdmcast; /* multicast frames rxed by the pkteng code */
uint32 rfdisable; /* count of radio disables */
uint32 bphy_rxcrsglitch; /* PHY count of bphy glitches */
uint32 bphy_badplcp;
uint32 txmpdu_sgi; /* count for sgi transmit */
uint32 rxmpdu_sgi; /* count for sgi received */
uint32 txmpdu_stbc; /* count for stbc transmit */
uint32 rxmpdu_stbc; /* count for stbc received */
uint32 rxdrop20s; /* drop secondary cnt */
} wl_cnt_ver_six_t;
#define WL_DELTA_STATS_T_VERSION 2 /* current version of wl_delta_stats_t struct */
typedef struct {
uint16 version; /* see definition of WL_DELTA_STATS_T_VERSION */
uint16 length; /* length of entire structure */
/* transmit stat counters */
uint32 txframe; /* tx data frames */
uint32 txbyte; /* tx data bytes */
uint32 txretrans; /* tx mac retransmits */
uint32 txfail; /* tx failures */
/* receive stat counters */
uint32 rxframe; /* rx data frames */
uint32 rxbyte; /* rx data bytes */
/* per-rate receive stat counters */
uint32 rx1mbps; /* packets rx at 1Mbps */
uint32 rx2mbps; /* packets rx at 2Mbps */
uint32 rx5mbps5; /* packets rx at 5.5Mbps */
uint32 rx6mbps; /* packets rx at 6Mbps */
uint32 rx9mbps; /* packets rx at 9Mbps */
uint32 rx11mbps; /* packets rx at 11Mbps */
uint32 rx12mbps; /* packets rx at 12Mbps */
uint32 rx18mbps; /* packets rx at 18Mbps */
uint32 rx24mbps; /* packets rx at 24Mbps */
uint32 rx36mbps; /* packets rx at 36Mbps */
uint32 rx48mbps; /* packets rx at 48Mbps */
uint32 rx54mbps; /* packets rx at 54Mbps */
uint32 rx108mbps; /* packets rx at 108mbps */
uint32 rx162mbps; /* packets rx at 162mbps */
uint32 rx216mbps; /* packets rx at 216 mbps */
uint32 rx270mbps; /* packets rx at 270 mbps */
uint32 rx324mbps; /* packets rx at 324 mbps */
uint32 rx378mbps; /* packets rx at 378 mbps */
uint32 rx432mbps; /* packets rx at 432 mbps */
uint32 rx486mbps; /* packets rx at 486 mbps */
uint32 rx540mbps; /* packets rx at 540 mbps */
/* phy stats */
uint32 rxbadplcp;
uint32 rxcrsglitch;
uint32 bphy_rxcrsglitch;
uint32 bphy_badplcp;
} wl_delta_stats_t;
typedef struct {
uint32 packets;
uint32 bytes;
} wl_traffic_stats_t;
typedef struct {
uint16 version; /* see definition of WL_WME_CNT_VERSION */
uint16 length; /* length of entire structure */
wl_traffic_stats_t tx[AC_COUNT]; /* Packets transmitted */
wl_traffic_stats_t tx_failed[AC_COUNT]; /* Packets dropped or failed to transmit */
wl_traffic_stats_t rx[AC_COUNT]; /* Packets received */
wl_traffic_stats_t rx_failed[AC_COUNT]; /* Packets failed to receive */
wl_traffic_stats_t forward[AC_COUNT]; /* Packets forwarded by AP */
wl_traffic_stats_t tx_expired[AC_COUNT]; /* packets dropped due to lifetime expiry */
} wl_wme_cnt_t;
struct wl_msglevel2 {
uint32 low;
uint32 high;
};
typedef struct wl_mkeep_alive_pkt {
uint16 version; /* Version for mkeep_alive */
uint16 length; /* length of fixed parameters in the structure */
uint32 period_msec;
uint16 len_bytes;
uint8 keep_alive_id; /* 0 - 3 for N = 4 */
uint8 data[1];
} wl_mkeep_alive_pkt_t;
#define WL_MKEEP_ALIVE_VERSION 1
#define WL_MKEEP_ALIVE_FIXED_LEN OFFSETOF(wl_mkeep_alive_pkt_t, data)
#define WL_MKEEP_ALIVE_PRECISION 500
/* TCP Keep-Alive conn struct */
typedef struct wl_mtcpkeep_alive_conn_pkt {
struct ether_addr saddr; /* src mac address */
struct ether_addr daddr; /* dst mac address */
struct ipv4_addr sipaddr; /* source IP addr */
struct ipv4_addr dipaddr; /* dest IP addr */
uint16 sport; /* src port */
uint16 dport; /* dest port */
uint32 seq; /* seq number */
uint32 ack; /* ACK number */
uint16 tcpwin; /* TCP window */
} wl_mtcpkeep_alive_conn_pkt_t;
/* TCP Keep-Alive interval struct */
typedef struct wl_mtcpkeep_alive_timers_pkt {
uint16 interval; /* interval timer */
uint16 retry_interval; /* retry_interval timer */
uint16 retry_count; /* retry_count */
} wl_mtcpkeep_alive_timers_pkt_t;
typedef struct wake_info {
uint32 wake_reason;
uint32 wake_info_len; /* size of packet */
uchar packet[1];
} wake_info_t;
typedef struct wake_pkt {
uint32 wake_pkt_len; /* size of packet */
uchar packet[1];
} wake_pkt_t;
#define WL_MTCPKEEP_ALIVE_VERSION 1
#ifdef WLBA
#define WLC_BA_CNT_VERSION 1 /* current version of wlc_ba_cnt_t */
/* block ack related stats */
typedef struct wlc_ba_cnt {
uint16 version; /* WLC_BA_CNT_VERSION */
uint16 length; /* length of entire structure */
/* transmit stat counters */
uint32 txpdu; /* pdus sent */
uint32 txsdu; /* sdus sent */
uint32 txfc; /* tx side flow controlled packets */
uint32 txfci; /* tx side flow control initiated */
uint32 txretrans; /* retransmitted pdus */
uint32 txbatimer; /* ba resend due to timer */
uint32 txdrop; /* dropped packets */
uint32 txaddbareq; /* addba req sent */
uint32 txaddbaresp; /* addba resp sent */
uint32 txdelba; /* delba sent */
uint32 txba; /* ba sent */
uint32 txbar; /* bar sent */
uint32 txpad[4]; /* future */
/* receive side counters */
uint32 rxpdu; /* pdus recd */
uint32 rxqed; /* pdus buffered before sending up */
uint32 rxdup; /* duplicate pdus */
uint32 rxnobuf; /* pdus discarded due to no buf */
uint32 rxaddbareq; /* addba req recd */
uint32 rxaddbaresp; /* addba resp recd */
uint32 rxdelba; /* delba recd */
uint32 rxba; /* ba recd */
uint32 rxbar; /* bar recd */
uint32 rxinvba; /* invalid ba recd */
uint32 rxbaholes; /* ba recd with holes */
uint32 rxunexp; /* unexpected packets */
uint32 rxpad[4]; /* future */
} wlc_ba_cnt_t;
#endif /* WLBA */
/* structure for per-tid ampdu control */
struct ampdu_tid_control {
uint8 tid; /* tid */
uint8 enable; /* enable/disable */
};
/* struct for ampdu tx/rx aggregation control */
struct ampdu_aggr {
int8 aggr_override; /* aggr overrided by dongle. Not to be set by host. */
uint16 conf_TID_bmap; /* bitmap of TIDs to configure */
uint16 enab_TID_bmap; /* enable/disable per TID */
};
/* structure for identifying ea/tid for sending addba/delba */
struct ampdu_ea_tid {
struct ether_addr ea; /* Station address */
uint8 tid; /* tid */
uint8 initiator; /* 0 is recipient, 1 is originator */
};
/* structure for identifying retry/tid for retry_limit_tid/rr_retry_limit_tid */
struct ampdu_retry_tid {
uint8 tid; /* tid */
uint8 retry; /* retry value */
};
#define BDD_FNAME_LEN 32 /* Max length of friendly name */
typedef struct bdd_fname {
uint8 len; /* length of friendly name */
uchar name[BDD_FNAME_LEN]; /* friendly name */
} bdd_fname_t;
/* structure for addts arguments */
/* For ioctls that take a list of TSPEC */
struct tslist {
int count; /* number of tspecs */
struct tsinfo_arg tsinfo[1]; /* variable length array of tsinfo */
};
#ifdef WLTDLS
/* structure for tdls iovars */
typedef struct tdls_iovar {
struct ether_addr ea; /* Station address */
uint8 mode; /* mode: depends on iovar */
chanspec_t chanspec;
uint32 pad; /* future */
} tdls_iovar_t;
#define TDLS_WFD_IE_SIZE 512
/* structure for tdls wfd ie */
typedef struct tdls_wfd_ie_iovar {
struct ether_addr ea; /* Station address */
uint8 mode;
uint16 length;
uint8 data[TDLS_WFD_IE_SIZE];
} tdls_wfd_ie_iovar_t;
#endif /* WLTDLS */
/* structure for addts/delts arguments */
typedef struct tspec_arg {
uint16 version; /* see definition of TSPEC_ARG_VERSION */
uint16 length; /* length of entire structure */
uint flag; /* bit field */
/* TSPEC Arguments */
struct tsinfo_arg tsinfo; /* TS Info bit field */
uint16 nom_msdu_size; /* (Nominal or fixed) MSDU Size (bytes) */
uint16 max_msdu_size; /* Maximum MSDU Size (bytes) */
uint min_srv_interval; /* Minimum Service Interval (us) */
uint max_srv_interval; /* Maximum Service Interval (us) */
uint inactivity_interval; /* Inactivity Interval (us) */
uint suspension_interval; /* Suspension Interval (us) */
uint srv_start_time; /* Service Start Time (us) */
uint min_data_rate; /* Minimum Data Rate (bps) */
uint mean_data_rate; /* Mean Data Rate (bps) */
uint peak_data_rate; /* Peak Data Rate (bps) */
uint max_burst_size; /* Maximum Burst Size (bytes) */
uint delay_bound; /* Delay Bound (us) */
uint min_phy_rate; /* Minimum PHY Rate (bps) */
uint16 surplus_bw; /* Surplus Bandwidth Allowance (range 1.0 to 8.0) */
uint16 medium_time; /* Medium Time (32 us/s periods) */
uint8 dialog_token; /* dialog token */
} tspec_arg_t;
/* tspec arg for desired station */
typedef struct tspec_per_sta_arg {
struct ether_addr ea;
struct tspec_arg ts;
} tspec_per_sta_arg_t;
/* structure for max bandwidth for each access category */
typedef struct wme_max_bandwidth {
uint32 ac[AC_COUNT]; /* max bandwidth for each access category */
} wme_max_bandwidth_t;
#define WL_WME_MBW_PARAMS_IO_BYTES (sizeof(wme_max_bandwidth_t))
/* current version of wl_tspec_arg_t struct */
#define TSPEC_ARG_VERSION 2 /* current version of wl_tspec_arg_t struct */
#define TSPEC_ARG_LENGTH 55 /* argument length from tsinfo to medium_time */
#define TSPEC_DEFAULT_DIALOG_TOKEN 42 /* default dialog token */
#define TSPEC_DEFAULT_SBW_FACTOR 0x3000 /* default surplus bw */
#define WL_WOWL_KEEPALIVE_MAX_PACKET_SIZE 80
#define WLC_WOWL_MAX_KEEPALIVE 2
/* Packet lifetime configuration per ac */
typedef struct wl_lifetime {
uint32 ac; /* access class */
uint32 lifetime; /* Packet lifetime value in ms */
} wl_lifetime_t;
/* Channel Switch Announcement param */
typedef struct wl_chan_switch {
uint8 mode; /* value 0 or 1 */
uint8 count; /* count # of beacons before switching */
chanspec_t chspec; /* chanspec */
uint8 reg; /* regulatory class */
uint8 frame_type; /* csa frame type, unicast or broadcast */
} wl_chan_switch_t;
enum {
PFN_LIST_ORDER,
PFN_RSSI
};
enum {
DISABLE,
ENABLE
};
enum {
OFF_ADAPT,
SMART_ADAPT,
STRICT_ADAPT,
SLOW_ADAPT
};
#define SORT_CRITERIA_BIT 0
#define AUTO_NET_SWITCH_BIT 1
#define ENABLE_BKGRD_SCAN_BIT 2
#define IMMEDIATE_SCAN_BIT 3
#define AUTO_CONNECT_BIT 4
#define ENABLE_BD_SCAN_BIT 5
#define ENABLE_ADAPTSCAN_BIT 6
#define IMMEDIATE_EVENT_BIT 8
#define SUPPRESS_SSID_BIT 9
#define ENABLE_NET_OFFLOAD_BIT 10
/* report found/lost events for SSID and BSSID networks seperately */
#define REPORT_SEPERATELY_BIT 11
#define SORT_CRITERIA_MASK 0x0001
#define AUTO_NET_SWITCH_MASK 0x0002
#define ENABLE_BKGRD_SCAN_MASK 0x0004
#define IMMEDIATE_SCAN_MASK 0x0008
#define AUTO_CONNECT_MASK 0x0010
#define ENABLE_BD_SCAN_MASK 0x0020
#define ENABLE_ADAPTSCAN_MASK 0x00c0
#define IMMEDIATE_EVENT_MASK 0x0100
#define SUPPRESS_SSID_MASK 0x0200
#define ENABLE_NET_OFFLOAD_MASK 0x0400
/* report found/lost events for SSID and BSSID networks seperately */
#define REPORT_SEPERATELY_MASK 0x0800
#define PFN_VERSION 2
#define PFN_SCANRESULT_VERSION 1
#define MAX_PFN_LIST_COUNT 16
#define PFN_COMPLETE 1
#define PFN_INCOMPLETE 0
#define DEFAULT_BESTN 2
#define DEFAULT_MSCAN 0
#define DEFAULT_REPEAT 10
#define DEFAULT_EXP 2
#define PFN_PARTIAL_SCAN_BIT 0
#define PFN_PARTIAL_SCAN_MASK 1
#define PFN_SWC_RSSI_WINDOW_MAX 8
#define PFN_SWC_MAX_NUM_APS 16
#define PFN_HOTLIST_MAX_NUM_APS 64
#define MAX_EPNO_HIDDEN_SSID 8
#define MAX_WHITELIST_SSID 2
/* PFN network info structure */
typedef struct wl_pfn_subnet_info {
struct ether_addr BSSID;
uint8 channel; /* channel number only */
uint8 SSID_len;
uint8 SSID[32];
} wl_pfn_subnet_info_t;
typedef struct wl_pfn_net_info {
wl_pfn_subnet_info_t pfnsubnet;
int16 RSSI; /* receive signal strength (in dBm) */
uint16 timestamp; /* age in seconds */
} wl_pfn_net_info_t;
typedef struct wl_pfn_lnet_info {
wl_pfn_subnet_info_t pfnsubnet; /* BSSID + channel + SSID len + SSID */
uint16 flags; /* partial scan, etc */
int16 RSSI; /* receive signal strength (in dBm) */
uint32 timestamp; /* age in miliseconds */
uint16 rtt0; /* estimated distance to this AP in centimeters */
uint16 rtt1; /* standard deviation of the distance to this AP in centimeters */
} wl_pfn_lnet_info_t;
typedef struct wl_pfn_lscanresults {
uint32 version;
uint32 status;
uint32 count;
wl_pfn_lnet_info_t netinfo[1];
} wl_pfn_lscanresults_t;
/* this is used to report on 1-* pfn scan results */
typedef struct wl_pfn_scanresults {
uint32 version;
uint32 status;
uint32 count;
wl_pfn_net_info_t netinfo[1];
} wl_pfn_scanresults_t;
typedef struct wl_pfn_significant_net {
uint16 flags;
uint16 channel;
struct ether_addr BSSID;
int8 rssi[PFN_SWC_RSSI_WINDOW_MAX];
} wl_pfn_significant_net_t;
typedef struct wl_pfn_swc_results {
uint32 version;
uint32 pkt_count;
uint32 total_count;
wl_pfn_significant_net_t list[1];
} wl_pfn_swc_results_t;
/* used to report exactly one scan result */
/* plus reports detailed scan info in bss_info */
typedef struct wl_pfn_scanresult {
uint32 version;
uint32 status;
uint32 count;
wl_pfn_net_info_t netinfo;
wl_bss_info_t bss_info;
} wl_pfn_scanresult_t;
/* PFN data structure */
typedef struct wl_pfn_param {
int32 version; /* PNO parameters version */
int32 scan_freq; /* Scan frequency */
int32 lost_network_timeout; /* Timeout in sec. to declare
* discovered network as lost
*/
int16 flags; /* Bit field to control features
* of PFN such as sort criteria auto
* enable switch and background scan
*/
int16 rssi_margin; /* Margin to avoid jitter for choosing a
* PFN based on RSSI sort criteria
*/
uint8 bestn; /* number of best networks in each scan */
uint8 mscan; /* number of scans recorded */
uint8 repeat; /* Minimum number of scan intervals
*before scan frequency changes in adaptive scan
*/
uint8 exp; /* Exponent of 2 for maximum scan interval */
int32 slow_freq; /* slow scan period */
} wl_pfn_param_t;
typedef struct wl_pfn_bssid {
struct ether_addr macaddr;
/* Bit4: suppress_lost, Bit3: suppress_found */
uint16 flags;
} wl_pfn_bssid_t;
typedef struct wl_pfn_significant_bssid {
struct ether_addr macaddr;
int8 rssi_low_threshold;
int8 rssi_high_threshold;
} wl_pfn_significant_bssid_t;
#define WL_PFN_SUPPRESSFOUND_MASK 0x08
#define WL_PFN_SUPPRESSLOST_MASK 0x10
#define WL_PFN_RSSI_MASK 0xff00
#define WL_PFN_RSSI_SHIFT 8
typedef struct wl_pfn_cfg {
uint32 reporttype;
int32 channel_num;
uint16 channel_list[WL_NUMCHANNELS];
uint32 flags;
} wl_pfn_cfg_t;
#define CH_BUCKET_REPORT_REGULAR 0
#define CH_BUCKET_REPORT_FULL_RESULT 2
#define CH_BUCKET_GSCAN 4
typedef struct wl_pfn_gscan_ch_bucket_cfg {
uint8 bucket_end_index;
uint8 bucket_freq_multiple;
uint8 flag;
uint8 reserved;
uint16 repeat;
uint16 max_freq_multiple;
} wl_pfn_gscan_ch_bucket_cfg_t;
#define GSCAN_SEND_ALL_RESULTS_MASK (1 << 0)
#define GSCAN_CFG_FLAGS_ONLY_MASK (1 << 7)
#define WL_GSCAN_CFG_VERSION 2
typedef struct wl_pfn_gscan_cfg {
uint16 version;
/* BIT0 1 = send probes/beacons to HOST
* BIT1 Reserved
* BIT2 Reserved
* Add any future flags here
* BIT7 1 = no other useful cfg sent
*/
uint8 flags;
/* Buffer filled threshold in % to generate an event */
uint8 buffer_threshold;
/* No. of BSSIDs with "change" to generate an evt
* change - crosses rssi threshold/lost
*/
uint8 swc_nbssid_threshold;
/* Max=8 (for now) Size of rssi cache buffer */
uint8 swc_rssi_window_size;
uint8 count_of_channel_buckets;
uint8 retry_threshold;
uint16 lost_ap_window;
wl_pfn_gscan_ch_bucket_cfg_t channel_bucket[1];
} wl_pfn_gscan_cfg_t;
#define WL_PFN_REPORT_ALLNET 0
#define WL_PFN_REPORT_SSIDNET 1
#define WL_PFN_REPORT_BSSIDNET 2
#define WL_PFN_CFG_FLAGS_PROHIBITED 0x00000001 /* Accept and use prohibited channels */
#define WL_PFN_CFG_FLAGS_RESERVED 0xfffffffe /* Remaining reserved for future use */
#define WL_PFN_SSID_A_BAND_TRIG 0x20
#define WL_PFN_SSID_BG_BAND_TRIG 0x40
typedef struct wl_pfn {
wlc_ssid_t ssid; /* ssid name and its length */
int32 flags; /* bit2: hidden */
int32 infra; /* BSS Vs IBSS */
int32 auth; /* Open Vs Closed */
int32 wpa_auth; /* WPA type */
int32 wsec; /* wsec value */
} wl_pfn_t;
typedef struct wl_pfn_list {
uint32 version;
uint32 enabled;
uint32 count;
wl_pfn_t pfn[1];
} wl_pfn_list_t;
#define PFN_SSID_EXT_VERSION 2
typedef struct wl_pfn_ext {
uint8 flags;
int8 rssi_thresh; /* RSSI threshold, track only if RSSI > threshold */
uint16 wpa_auth; /* Match the wpa auth type defined in wlioctl_defs.h */
uint8 ssid[DOT11_MAX_SSID_LEN];
uint8 ssid_len;
uint8 pad;
} wl_pfn_ext_t;
typedef struct wl_pfn_ext_list {
uint16 version;
uint16 count;
wl_pfn_ext_t pfn_ext[1];
} wl_pfn_ext_list_t;
#define WL_PFN_SSID_EXT_FOUND 0x1
#define WL_PFN_SSID_EXT_LOST 0x2
typedef struct wl_pfn_result_ssid {
uint8 flags;
int8 rssi;
/* channel number */
uint16 channel;
/* Assume idx in order of cfg */
uint16 index;
struct ether_addr bssid;
} wl_pfn_result_ssid_crc32_t;
typedef struct wl_pfn_ssid_ext_result {
uint16 version;
uint16 count;
wl_pfn_result_ssid_crc32_t net[1];
} wl_pfn_ssid_ext_result_t;
#define PFN_EXT_AUTH_CODE_OPEN 1 /* open */
#define PFN_EXT_AUTH_CODE_PSK 2 /* WPA_PSK or WPA2PSK */
#define PFN_EXT_AUTH_CODE_EAPOL 4 /* any EAPOL */
#define WL_PFN_MAC_OUI_ONLY_MASK 1
#define WL_PFN_SET_MAC_UNASSOC_MASK 2
/* To configure pfn_macaddr */
typedef struct wl_pfn_macaddr_cfg {
uint8 version;
uint8 flags;
struct ether_addr macaddr;
} wl_pfn_macaddr_cfg_t;
#define WL_PFN_MACADDR_CFG_VER 1
typedef BWL_PRE_PACKED_STRUCT struct pfn_olmsg_params_t {
wlc_ssid_t ssid;
uint32 cipher_type;
uint32 auth_type;
uint8 channels[4];
} BWL_POST_PACKED_STRUCT pfn_olmsg_params;
#define WL_PFN_HIDDEN_BIT 2
#define WL_PFN_HIDDEN_MASK 0x4
#ifndef BESTN_MAX
#define BESTN_MAX 3
#endif
#ifndef MSCAN_MAX
#define MSCAN_MAX 90
#endif
/* Service discovery */
typedef struct {
uint8 transaction_id; /* Transaction id */
uint8 protocol; /* Service protocol type */
uint16 query_len; /* Length of query */
uint16 response_len; /* Length of response */
uint8 qrbuf[1];
} wl_p2po_qr_t;
typedef struct {
uint16 period; /* extended listen period */
uint16 interval; /* extended listen interval */
} wl_p2po_listen_t;
/* GAS state machine tunable parameters. Structure field values of 0 means use the default. */
typedef struct wl_gas_config {
uint16 max_retransmit; /* Max # of firmware/driver retransmits on no Ack
* from peer (on top of the ucode retries).
*/
uint16 response_timeout; /* Max time to wait for a GAS-level response
* after sending a packet.
*/
uint16 max_comeback_delay; /* Max GAS response comeback delay.
* Exceeding this fails the GAS exchange.
*/
uint16 max_retries; /* Max # of GAS state machine retries on failure
* of a GAS frame exchange.
*/
} wl_gas_config_t;
/* P2P Find Offload parameters */
typedef BWL_PRE_PACKED_STRUCT struct wl_p2po_find_config {
uint16 version; /* Version of this struct */
uint16 length; /* sizeof(wl_p2po_find_config_t) */
int32 search_home_time; /* P2P search state home time when concurrent
* connection exists. -1 for default.
*/
uint8 num_social_channels;
/* Number of social channels up to WL_P2P_SOCIAL_CHANNELS_MAX.
* 0 means use default social channels.
*/
uint8 flags;
uint16 social_channels[1]; /* Variable length array of social channels */
} BWL_POST_PACKED_STRUCT wl_p2po_find_config_t;
#define WL_P2PO_FIND_CONFIG_VERSION 2 /* value for version field */
/* wl_p2po_find_config_t flags */
#define P2PO_FIND_FLAG_SCAN_ALL_APS 0x01 /* Whether to scan for all APs in the p2po_find
* periodic scans of all channels.
* 0 means scan for only P2P devices.
* 1 means scan for P2P devices plus non-P2P APs.
*/
/* For adding a WFDS service to seek */
typedef BWL_PRE_PACKED_STRUCT struct {
uint32 seek_hdl; /* unique id chosen by host */
uint8 addr[6]; /* Seek service from a specific device with this
* MAC address, all 1's for any device.
*/
uint8 service_hash[P2P_WFDS_HASH_LEN];
uint8 service_name_len;
uint8 service_name[MAX_WFDS_SEEK_SVC_NAME_LEN];
/* Service name to seek, not null terminated */
uint8 service_info_req_len;
uint8 service_info_req[1]; /* Service info request, not null terminated.
* Variable length specified by service_info_req_len.
* Maximum length is MAX_WFDS_SEEK_SVC_INFO_LEN.
*/
} BWL_POST_PACKED_STRUCT wl_p2po_wfds_seek_add_t;
/* For deleting a WFDS service to seek */
typedef BWL_PRE_PACKED_STRUCT struct {
uint32 seek_hdl; /* delete service specified by id */
} BWL_POST_PACKED_STRUCT wl_p2po_wfds_seek_del_t;
/* For adding a WFDS service to advertise */
typedef BWL_PRE_PACKED_STRUCT struct {
uint32 advertise_hdl; /* unique id chosen by host */
uint8 service_hash[P2P_WFDS_HASH_LEN];
uint32 advertisement_id;
uint16 service_config_method;
uint8 service_name_len;
uint8 service_name[MAX_WFDS_SVC_NAME_LEN];
/* Service name , not null terminated */
uint8 service_status;
uint16 service_info_len;
uint8 service_info[1]; /* Service info, not null terminated.
* Variable length specified by service_info_len.
* Maximum length is MAX_WFDS_ADV_SVC_INFO_LEN.
*/
} BWL_POST_PACKED_STRUCT wl_p2po_wfds_advertise_add_t;
/* For deleting a WFDS service to advertise */
typedef BWL_PRE_PACKED_STRUCT struct {
uint32 advertise_hdl; /* delete service specified by hdl */
} BWL_POST_PACKED_STRUCT wl_p2po_wfds_advertise_del_t;
/* P2P Offload discovery mode for the p2po_state iovar */
typedef enum {
WL_P2PO_DISC_STOP,
WL_P2PO_DISC_LISTEN,
WL_P2PO_DISC_DISCOVERY
} disc_mode_t;
/* ANQP offload */
#define ANQPO_MAX_QUERY_SIZE 256
typedef struct {
uint16 max_retransmit; /* ~0 use default, max retransmit on no ACK from peer */
uint16 response_timeout; /* ~0 use default, msec to wait for resp after tx packet */
uint16 max_comeback_delay; /* ~0 use default, max comeback delay in resp else fail */
uint16 max_retries; /* ~0 use default, max retries on failure */
uint16 query_len; /* length of ANQP query */
uint8 query_data[1]; /* ANQP encoded query (max ANQPO_MAX_QUERY_SIZE) */
} wl_anqpo_set_t;
typedef struct {
uint16 channel; /* channel of the peer */
struct ether_addr addr; /* addr of the peer */
} wl_anqpo_peer_t;
#define ANQPO_MAX_PEER_LIST 64
typedef struct {
uint16 count; /* number of peers in list */
wl_anqpo_peer_t peer[1]; /* max ANQPO_MAX_PEER_LIST */
} wl_anqpo_peer_list_t;
#define ANQPO_MAX_IGNORE_SSID 64
typedef struct {
bool is_clear; /* set to clear list (not used on GET) */
uint16 count; /* number of SSID in list */
wlc_ssid_t ssid[1]; /* max ANQPO_MAX_IGNORE_SSID */
} wl_anqpo_ignore_ssid_list_t;
#define ANQPO_MAX_IGNORE_BSSID 64
typedef struct {
bool is_clear; /* set to clear list (not used on GET) */
uint16 count; /* number of addr in list */
struct ether_addr bssid[1]; /* max ANQPO_MAX_IGNORE_BSSID */
} wl_anqpo_ignore_bssid_list_t;
#define ANQPO_MAX_PFN_HS 16
#define ANQPO_MAX_OI_LENGTH 8
typedef struct
{
uint8 length;
uint8 data[ANQPO_MAX_OI_LENGTH];
} wl_anqpo_oi_t;
#define ANQPO_MAX_OI 16
typedef struct
{
uint32 numOi;
wl_anqpo_oi_t oi[ANQPO_MAX_OI];
} wl_anqpo_roaming_consortium_t;
#define ANQPO_MAX_REALM_LENGTH 255
typedef struct
{
uint8 length;
uint8 data[ANQPO_MAX_REALM_LENGTH + 1]; /* null terminated */
} wl_anqpo_realm_data_t;
#define ANQPO_MCC_LENGTH 3
#define ANQPO_MNC_LENGTH 3
typedef struct
{
char mcc[ANQPO_MCC_LENGTH + 1];
char mnc[ANQPO_MNC_LENGTH + 1];
} wl_anqpo_plmn_t;
typedef struct {
uint32 version;
uint32 id;
wl_anqpo_plmn_t plmn;
wl_anqpo_realm_data_t realm;
wl_anqpo_roaming_consortium_t rc;
} wl_anqpo_pfn_hs_t;
typedef struct {
bool is_clear; /* set to clear list (not used on GET) */
uint16 count; /* number of preferred hotspot in list */
wl_anqpo_pfn_hs_t hs[]; /* max ANQPO_MAX_PFN_HS */
} wl_anqpo_pfn_hs_list_t;
struct toe_ol_stats_t {
/* Num of tx packets that don't need to be checksummed */
uint32 tx_summed;
/* Num of tx packets where checksum is filled by offload engine */
uint32 tx_iph_fill;
uint32 tx_tcp_fill;
uint32 tx_udp_fill;
uint32 tx_icmp_fill;
/* Num of rx packets where toe finds out if checksum is good or bad */
uint32 rx_iph_good;
uint32 rx_iph_bad;
uint32 rx_tcp_good;
uint32 rx_tcp_bad;
uint32 rx_udp_good;
uint32 rx_udp_bad;
uint32 rx_icmp_good;
uint32 rx_icmp_bad;
/* Num of tx packets in which csum error is injected */
uint32 tx_tcp_errinj;
uint32 tx_udp_errinj;
uint32 tx_icmp_errinj;
/* Num of rx packets in which csum error is injected */
uint32 rx_tcp_errinj;
uint32 rx_udp_errinj;
uint32 rx_icmp_errinj;
};
/* Arp offload statistic counts */
struct arp_ol_stats_t {
uint32 host_ip_entries; /* Host IP table addresses (more than one if multihomed) */
uint32 host_ip_overflow; /* Host IP table additions skipped due to overflow */
uint32 arp_table_entries; /* ARP table entries */
uint32 arp_table_overflow; /* ARP table additions skipped due to overflow */
uint32 host_request; /* ARP requests from host */
uint32 host_reply; /* ARP replies from host */
uint32 host_service; /* ARP requests from host serviced by ARP Agent */
uint32 peer_request; /* ARP requests received from network */
uint32 peer_request_drop; /* ARP requests from network that were dropped */
uint32 peer_reply; /* ARP replies received from network */
uint32 peer_reply_drop; /* ARP replies from network that were dropped */