Go to the documentation of this file.
32 #define HTC_PROTOCOL_VERSION 0x0002
33 #define WMI_PROTOCOL_VERSION 0x0002
34 #define WMI_CONTROL_MSG_MAX_LEN 256
35 #define is_ethertype(type_or_len) ((type_or_len) >= 0x0600)
37 #define IP_ETHERTYPE 0x0800
39 #define WMI_IMPLICIT_PSTREAM 0xFF
40 #define WMI_MAX_THINSTREAM 15
42 #define SSID_IE_LEN_INDEX 13
45 #define SIG_QUALITY_THRESH_LVLS 6
46 #define SIG_QUALITY_UPPER_THRESH_LVLS SIG_QUALITY_THRESH_LVLS
47 #define SIG_QUALITY_LOWER_THRESH_LVLS SIG_QUALITY_THRESH_LVLS
49 #define A_BAND_24GHZ 0
54 #define WMI_IMPLICIT_PSTREAM_INACTIVITY_INT 5000
109 #define WMI_VOICE_USER_PRIORITY 0x7
146 #define WMI_DATA_HDR_MSG_TYPE_MASK 0x03
147 #define WMI_DATA_HDR_MSG_TYPE_SHIFT 0
148 #define WMI_DATA_HDR_UP_MASK 0x07
149 #define WMI_DATA_HDR_UP_SHIFT 2
154 #define WMI_DATA_HDR_PS_MASK 0x1
155 #define WMI_DATA_HDR_PS_SHIFT 5
157 #define WMI_DATA_HDR_MORE 0x20
174 #define WMI_DATA_HDR_DATA_TYPE_MASK 0x3
175 #define WMI_DATA_HDR_DATA_TYPE_SHIFT 6
178 #define WMI_DATA_HDR_SEQNO_MASK 0xFFF
179 #define WMI_DATA_HDR_SEQNO_SHIFT 0
181 #define WMI_DATA_HDR_AMSDU_MASK 0x1
182 #define WMI_DATA_HDR_AMSDU_SHIFT 12
184 #define WMI_DATA_HDR_META_MASK 0x7
185 #define WMI_DATA_HDR_META_SHIFT 13
187 #define WMI_DATA_HDR_PAD_BEFORE_DATA_MASK 0xFF
188 #define WMI_DATA_HDR_PAD_BEFORE_DATA_SHIFT 0x8
191 #define WMI_DATA_HDR_IF_IDX_MASK 0xF
193 #define WMI_DATA_HDR_TRIG 0x10
194 #define WMI_DATA_HDR_EOSP 0x10
235 static inline void wmi_data_hdr_set_up(
struct wmi_data_hdr *dhdr,
242 static inline u8 wmi_data_hdr_get_dot11(
struct wmi_data_hdr *dhdr)
269 static inline u8 wmi_data_hdr_get_if_idx(
struct wmi_data_hdr *dhdr)
275 #define WMI_MAX_TX_META_SZ 12
276 #define WMI_META_VERSION_1 0x01
277 #define WMI_META_VERSION_2 0x02
280 #define WMI_META_V2_FLAG_CSUM_OFFLOAD 0x01
326 #define WMI_CMD_HDR_IF_ID_MASK 0xF
341 static inline u8 wmi_cmd_hdr_get_if_idx(
struct wmi_cmd_hdr *chdr)
681 #define WMI_MAX_KEY_INDEX 3
683 #define WMI_MAX_KEY_LEN 32
690 #define ATH6KL_CIPHER_WEP 0
691 #define ATH6KL_CIPHER_TKIP 1
692 #define ATH6KL_CIPHER_AES_OCB 2
693 #define ATH6KL_CIPHER_AES_CCM 3
694 #define ATH6KL_CIPHER_CKIP 5
695 #define ATH6KL_CIPHER_CCKM_KRK 6
696 #define ATH6KL_CIPHER_NONE 7
701 #define ATH6KL_RATE_MAXSIZE 15
703 #define ATH_OUI_TYPE 0x01
704 #define WPA_OUI_TYPE 0x01
705 #define WMM_PARAM_OUI_SUBTYPE 0x01
706 #define WMM_OUI_TYPE 0x02
707 #define WSC_OUT_TYPE 0x04
759 #define KEY_OP_INIT_TSC 0x01
760 #define KEY_OP_INIT_RSC 0x02
763 #define KEY_OP_INIT_VAL 0x03
764 #define KEY_OP_VALID_MASK 0x03
791 #define WMI_KRK_LEN 16
800 #define WMI_PMKID_LEN 16
988 #define MAX_PROBED_SSIDS 16
1204 #define WMI_MAX_CHANNELS 32
1323 #define ATH6KL_MCAST_FILTER_MAC_ADDR_SIZE 6
1540 #define ATH6KL_COUNTRY_RD_SHIFT 16
1573 #define DEF_LRSSI_SCAN_PERIOD 5
1574 #define DEF_LRSSI_ROAM_THRESHOLD 20
1575 #define DEF_LRSSI_ROAM_FLOOR 60
1576 #define DEF_SCAN_FOR_ROAM_INTVL 2
1695 #define MAX_OPT_DATA_LEN 1400
1855 #define MAX_ROAM_TBL_CAND 5
1884 #define WMM_TSPEC_IE_LEN 63
2017 #define WSC_REG_ACTIVE 1
2018 #define WSC_REG_INACTIVE 0
2020 #define WOW_MAX_FILTERS_PER_LIST 4
2021 #define WOW_PATTERN_SIZE 64
2022 #define WOW_MASK_SIZE 64
2024 #define MAC_MAX_FILTERS_PER_LIST 4
2035 #define MAX_IP_ADDRS 2
2134 #define PEER_NODE_JOIN_EVENT 0x00
2135 #define PEER_NODE_LEAVE_EVENT 0x01
2136 #define PEER_FIRST_NODE_JOIN_EVENT 0x10
2137 #define PEER_LAST_NODE_LEAVE_EVENT 0x11
2148 #define TX_COMPLETE_STATUS_SUCCESS 0
2149 #define TX_COMPLETE_STATUS_RETRIES 1
2150 #define TX_COMPLETE_STATUS_NOLINK 2
2151 #define TX_COMPLETE_STATUS_TIMEOUT 3
2152 #define TX_COMPLETE_STATUS_OTHER 4
2188 #define AP_MAX_NUM_STA 10
2191 #define MCAST_AID 0xFF
2193 #define DEF_AP_COUNTRY_CODE "US "
2202 #define WMI_AP_MLME_ASSOC 1
2203 #define WMI_AP_DISASSOC 2
2204 #define WMI_AP_DEAUTH 3
2205 #define WMI_AP_MLME_AUTHORIZE 4
2206 #define WMI_AP_MLME_UNAUTHORIZE 5
2362 #define P2P_FLAG_CAPABILITIES_REQ (0x00000001)
2363 #define P2P_FLAG_MACADDR_REQ (0x00000002)
2364 #define P2P_FLAG_HMODEL_REQ (0x00000002)
2481 u8 meta_ver,
void *tx_meta_info,
u8 if_idx);
2487 bool wmm_enabled,
u8 *
ac);
2499 u8 pairwise_crypto_len,
2501 u8 group_crypto_len,
int ssid_len,
u8 *
ssid,
2511 u32 home_dwell_time,
u32 force_scan_interval,
2517 u32 home_dwell_time,
u32 force_scan_interval,
2522 u16 fg_end_sec,
u16 bg_sec,
2523 u16 minact_chdw_msec,
u16 maxact_chdw_msec,
2524 u16 pas_chdw_msec,
u8 short_scan_ratio,
2525 u8 scan_ctrl_flag,
u32 max_dfsch_act_time,
2526 u16 maxact_scan_per_ssid);
2533 u16 listen_beacons);
2535 u16 bmiss_time,
u16 num_beacons);
2538 u16 ps_poll_num,
u16 dtim_policy,
2539 u16 tx_wakup_policy,
u16 num_tx_to_wakeup,
2540 u16 ps_fail_event_policy);
2549 u8 preamble_policy);
2558 u8 *key_rsc,
unsigned int key_rsc_len,
2572 u8 keep_alive_intvl);
2590 u8 list_id,
u8 filter_size,
2594 u16 list_id,
u16 filter_id);
2626 bool rx_dot11_hdr,
bool defrag_on_host);