12b27bdccSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2f5fc0f86SLuciano Coelho /* 3f5fc0f86SLuciano Coelho * This file is part of wl1271 4f5fc0f86SLuciano Coelho * 5f5fc0f86SLuciano Coelho * Copyright (C) 1998-2009 Texas Instruments. All rights reserved. 61937e742SJuuso Oikarinen * Copyright (C) 2008-2010 Nokia Corporation 7f5fc0f86SLuciano Coelho * 8f5fc0f86SLuciano Coelho * Contact: Luciano Coelho <luciano.coelho@nokia.com> 9f5fc0f86SLuciano Coelho */ 10f5fc0f86SLuciano Coelho 1100d20100SShahar Levi #ifndef __ACX_H__ 1200d20100SShahar Levi #define __ACX_H__ 13f5fc0f86SLuciano Coelho 14c31be25aSLuciano Coelho #include "wlcore.h" 1500d20100SShahar Levi #include "cmd.h" 16f5fc0f86SLuciano Coelho 17f5fc0f86SLuciano Coelho /************************************************************************* 18f5fc0f86SLuciano Coelho 19f5fc0f86SLuciano Coelho Host Interrupt Register (WiLink -> Host) 20f5fc0f86SLuciano Coelho 21f5fc0f86SLuciano Coelho **************************************************************************/ 22f5fc0f86SLuciano Coelho /* HW Initiated interrupt Watchdog timer expiration */ 23f5fc0f86SLuciano Coelho #define WL1271_ACX_INTR_WATCHDOG BIT(0) 24f5fc0f86SLuciano Coelho /* Init sequence is done (masked interrupt, detection through polling only ) */ 25f5fc0f86SLuciano Coelho #define WL1271_ACX_INTR_INIT_COMPLETE BIT(1) 26f5fc0f86SLuciano Coelho /* Event was entered to Event MBOX #A*/ 27f5fc0f86SLuciano Coelho #define WL1271_ACX_INTR_EVENT_A BIT(2) 28f5fc0f86SLuciano Coelho /* Event was entered to Event MBOX #B*/ 29f5fc0f86SLuciano Coelho #define WL1271_ACX_INTR_EVENT_B BIT(3) 30f5fc0f86SLuciano Coelho /* Command processing completion*/ 31f5fc0f86SLuciano Coelho #define WL1271_ACX_INTR_CMD_COMPLETE BIT(4) 32f5fc0f86SLuciano Coelho /* Signaling the host on HW wakeup */ 33f5fc0f86SLuciano Coelho #define WL1271_ACX_INTR_HW_AVAILABLE BIT(5) 34f5fc0f86SLuciano Coelho /* The MISC bit is used for aggregation of RX, TxComplete and TX rate update */ 35f5fc0f86SLuciano Coelho #define WL1271_ACX_INTR_DATA BIT(6) 36e8a8b252SStefan Weil /* Trace message on MBOX #A */ 37f5fc0f86SLuciano Coelho #define WL1271_ACX_INTR_TRACE_A BIT(7) 38e8a8b252SStefan Weil /* Trace message on MBOX #B */ 39f5fc0f86SLuciano Coelho #define WL1271_ACX_INTR_TRACE_B BIT(8) 40f5755fe9SIdo Reis /* SW FW Initiated interrupt Watchdog timer expiration */ 41f5755fe9SIdo Reis #define WL1271_ACX_SW_INTR_WATCHDOG BIT(9) 42f5fc0f86SLuciano Coelho 43f5fc0f86SLuciano Coelho #define WL1271_ACX_INTR_ALL 0xFFFFFFFF 44f5fc0f86SLuciano Coelho 45f5755fe9SIdo Reis /* all possible interrupts - only appropriate ones will be masked in */ 46f5755fe9SIdo Reis #define WLCORE_ALL_INTR_MASK (WL1271_ACX_INTR_WATCHDOG | \ 47ccc83b04SEliad Peller WL1271_ACX_INTR_EVENT_A | \ 48f5fc0f86SLuciano Coelho WL1271_ACX_INTR_EVENT_B | \ 4937079a83SLuciano Coelho WL1271_ACX_INTR_HW_AVAILABLE | \ 50f5755fe9SIdo Reis WL1271_ACX_INTR_DATA | \ 51f5755fe9SIdo Reis WL1271_ACX_SW_INTR_WATCHDOG) 52f5fc0f86SLuciano Coelho 53f5fc0f86SLuciano Coelho /* Target's information element */ 54f5fc0f86SLuciano Coelho struct acx_header { 55f5fc0f86SLuciano Coelho struct wl1271_cmd_header cmd; 56f5fc0f86SLuciano Coelho 57f5fc0f86SLuciano Coelho /* acx (or information element) header */ 58d0f63b20SLuciano Coelho __le16 id; 59f5fc0f86SLuciano Coelho 60f5fc0f86SLuciano Coelho /* payload length (not including headers */ 61d0f63b20SLuciano Coelho __le16 len; 62ba2d3587SEric Dumazet } __packed; 63f5fc0f86SLuciano Coelho 64f5fc0f86SLuciano Coelho struct acx_error_counter { 65f5fc0f86SLuciano Coelho struct acx_header header; 66f5fc0f86SLuciano Coelho 67f5fc0f86SLuciano Coelho /* The number of PLCP errors since the last time this */ 68f5fc0f86SLuciano Coelho /* information element was interrogated. This field is */ 69f5fc0f86SLuciano Coelho /* automatically cleared when it is interrogated.*/ 70d0f63b20SLuciano Coelho __le32 PLCP_error; 71f5fc0f86SLuciano Coelho 72f5fc0f86SLuciano Coelho /* The number of FCS errors since the last time this */ 73f5fc0f86SLuciano Coelho /* information element was interrogated. This field is */ 74f5fc0f86SLuciano Coelho /* automatically cleared when it is interrogated.*/ 75d0f63b20SLuciano Coelho __le32 FCS_error; 76f5fc0f86SLuciano Coelho 77f5fc0f86SLuciano Coelho /* The number of MPDUs without PLCP header errors received*/ 78f5fc0f86SLuciano Coelho /* since the last time this information element was interrogated. */ 79f5fc0f86SLuciano Coelho /* This field is automatically cleared when it is interrogated.*/ 80d0f63b20SLuciano Coelho __le32 valid_frame; 81f5fc0f86SLuciano Coelho 82f5fc0f86SLuciano Coelho /* the number of missed sequence numbers in the squentially */ 83f5fc0f86SLuciano Coelho /* values of frames seq numbers */ 84d0f63b20SLuciano Coelho __le32 seq_num_miss; 85ba2d3587SEric Dumazet } __packed; 86f5fc0f86SLuciano Coelho 877f097988SEliad Peller enum wl12xx_role { 887f097988SEliad Peller WL1271_ROLE_STA = 0, 897f097988SEliad Peller WL1271_ROLE_IBSS, 907f097988SEliad Peller WL1271_ROLE_AP, 917f097988SEliad Peller WL1271_ROLE_DEVICE, 927f097988SEliad Peller WL1271_ROLE_P2P_CL, 937f097988SEliad Peller WL1271_ROLE_P2P_GO, 94c0174ee2SMaital Hahn WL1271_ROLE_MESH_POINT, 957f097988SEliad Peller 967f097988SEliad Peller WL12XX_INVALID_ROLE_TYPE = 0xff 977f097988SEliad Peller }; 987f097988SEliad Peller 99f5fc0f86SLuciano Coelho enum wl1271_psm_mode { 100f5fc0f86SLuciano Coelho /* Active mode */ 101f5fc0f86SLuciano Coelho WL1271_PSM_CAM = 0, 102f5fc0f86SLuciano Coelho 103f5fc0f86SLuciano Coelho /* Power save mode */ 104f5fc0f86SLuciano Coelho WL1271_PSM_PS = 1, 105f5fc0f86SLuciano Coelho 106f5fc0f86SLuciano Coelho /* Extreme low power */ 107f5fc0f86SLuciano Coelho WL1271_PSM_ELP = 2, 10826b5858aSLuciano Coelho 10926b5858aSLuciano Coelho WL1271_PSM_MAX = WL1271_PSM_ELP, 11066340e5bSArik Nemtsov 11166340e5bSArik Nemtsov /* illegal out of band value of PSM mode */ 11266340e5bSArik Nemtsov WL1271_PSM_ILLEGAL = 0xff 113f5fc0f86SLuciano Coelho }; 114f5fc0f86SLuciano Coelho 115f5fc0f86SLuciano Coelho struct acx_sleep_auth { 116f5fc0f86SLuciano Coelho struct acx_header header; 117f5fc0f86SLuciano Coelho 118f5fc0f86SLuciano Coelho /* The sleep level authorization of the device. */ 119f5fc0f86SLuciano Coelho /* 0 - Always active*/ 120f5fc0f86SLuciano Coelho /* 1 - Power down mode: light / fast sleep*/ 121f5fc0f86SLuciano Coelho /* 2 - ELP mode: Deep / Max sleep*/ 122f5fc0f86SLuciano Coelho u8 sleep_auth; 123f5fc0f86SLuciano Coelho u8 padding[3]; 124ba2d3587SEric Dumazet } __packed; 125f5fc0f86SLuciano Coelho 126f5fc0f86SLuciano Coelho enum { 127f5fc0f86SLuciano Coelho HOSTIF_PCI_MASTER_HOST_INDIRECT, 128f5fc0f86SLuciano Coelho HOSTIF_PCI_MASTER_HOST_DIRECT, 129f5fc0f86SLuciano Coelho HOSTIF_SLAVE, 130f5fc0f86SLuciano Coelho HOSTIF_PKT_RING, 131f5fc0f86SLuciano Coelho HOSTIF_DONTCARE = 0xFF 132f5fc0f86SLuciano Coelho }; 133f5fc0f86SLuciano Coelho 134f5fc0f86SLuciano Coelho #define DEFAULT_UCAST_PRIORITY 0 135f5fc0f86SLuciano Coelho #define DEFAULT_RX_Q_PRIORITY 0 136f5fc0f86SLuciano Coelho #define DEFAULT_RXQ_PRIORITY 0 /* low 0 .. 15 high */ 137f5fc0f86SLuciano Coelho #define DEFAULT_RXQ_TYPE 0x07 /* All frames, Data/Ctrl/Mgmt */ 138f5fc0f86SLuciano Coelho #define TRACE_BUFFER_MAX_SIZE 256 139f5fc0f86SLuciano Coelho 140f5fc0f86SLuciano Coelho #define DP_RX_PACKET_RING_CHUNK_SIZE 1600 141f5fc0f86SLuciano Coelho #define DP_TX_PACKET_RING_CHUNK_SIZE 1600 142f5fc0f86SLuciano Coelho #define DP_RX_PACKET_RING_CHUNK_NUM 2 143f5fc0f86SLuciano Coelho #define DP_TX_PACKET_RING_CHUNK_NUM 2 144f5fc0f86SLuciano Coelho #define DP_TX_COMPLETE_TIME_OUT 20 145f5fc0f86SLuciano Coelho 146f5fc0f86SLuciano Coelho #define TX_MSDU_LIFETIME_MIN 0 147f5fc0f86SLuciano Coelho #define TX_MSDU_LIFETIME_MAX 3000 148f5fc0f86SLuciano Coelho #define TX_MSDU_LIFETIME_DEF 512 149f5fc0f86SLuciano Coelho #define RX_MSDU_LIFETIME_MIN 0 150f5fc0f86SLuciano Coelho #define RX_MSDU_LIFETIME_MAX 0xFFFFFFFF 151f5fc0f86SLuciano Coelho #define RX_MSDU_LIFETIME_DEF 512000 152f5fc0f86SLuciano Coelho 153f5fc0f86SLuciano Coelho struct acx_rx_msdu_lifetime { 154f5fc0f86SLuciano Coelho struct acx_header header; 155f5fc0f86SLuciano Coelho 156f5fc0f86SLuciano Coelho /* 157f5fc0f86SLuciano Coelho * The maximum amount of time, in TU, before the 158f5fc0f86SLuciano Coelho * firmware discards the MSDU. 159f5fc0f86SLuciano Coelho */ 160d0f63b20SLuciano Coelho __le32 lifetime; 161ba2d3587SEric Dumazet } __packed; 162f5fc0f86SLuciano Coelho 163f5fc0f86SLuciano Coelho enum acx_slot_type { 164f5fc0f86SLuciano Coelho SLOT_TIME_LONG = 0, 165f5fc0f86SLuciano Coelho SLOT_TIME_SHORT = 1, 166f5fc0f86SLuciano Coelho DEFAULT_SLOT_TIME = SLOT_TIME_SHORT, 167f5fc0f86SLuciano Coelho MAX_SLOT_TIMES = 0xFF 168f5fc0f86SLuciano Coelho }; 169f5fc0f86SLuciano Coelho 170f5fc0f86SLuciano Coelho #define STATION_WONE_INDEX 0 171f5fc0f86SLuciano Coelho 172f5fc0f86SLuciano Coelho struct acx_slot { 173f5fc0f86SLuciano Coelho struct acx_header header; 174f5fc0f86SLuciano Coelho 1757f097988SEliad Peller u8 role_id; 176f5fc0f86SLuciano Coelho u8 wone_index; /* Reserved */ 177f5fc0f86SLuciano Coelho u8 slot_time; 1787f097988SEliad Peller u8 reserved[5]; 179ba2d3587SEric Dumazet } __packed; 180f5fc0f86SLuciano Coelho 181f5fc0f86SLuciano Coelho 182c87dec9fSJuuso Oikarinen #define ACX_MC_ADDRESS_GROUP_MAX (8) 183c87dec9fSJuuso Oikarinen #define ADDRESS_GROUP_MAX_LEN (ETH_ALEN * ACX_MC_ADDRESS_GROUP_MAX) 184f5fc0f86SLuciano Coelho 185f5fc0f86SLuciano Coelho struct acx_dot11_grp_addr_tbl { 186f5fc0f86SLuciano Coelho struct acx_header header; 187f5fc0f86SLuciano Coelho 1887f097988SEliad Peller u8 role_id; 189f5fc0f86SLuciano Coelho u8 enabled; 190f5fc0f86SLuciano Coelho u8 num_groups; 1917f097988SEliad Peller u8 pad[1]; 192f5fc0f86SLuciano Coelho u8 mac_table[ADDRESS_GROUP_MAX_LEN]; 193ba2d3587SEric Dumazet } __packed; 194f5fc0f86SLuciano Coelho 195f5fc0f86SLuciano Coelho struct acx_rx_timeout { 196f5fc0f86SLuciano Coelho struct acx_header header; 197f5fc0f86SLuciano Coelho 1987f097988SEliad Peller u8 role_id; 1997f097988SEliad Peller u8 reserved; 200d0f63b20SLuciano Coelho __le16 ps_poll_timeout; 201d0f63b20SLuciano Coelho __le16 upsd_timeout; 2027f097988SEliad Peller u8 padding[2]; 203ba2d3587SEric Dumazet } __packed; 204f5fc0f86SLuciano Coelho 205f5fc0f86SLuciano Coelho struct acx_rts_threshold { 206f5fc0f86SLuciano Coelho struct acx_header header; 207f5fc0f86SLuciano Coelho 2087f097988SEliad Peller u8 role_id; 2097f097988SEliad Peller u8 reserved; 210d0f63b20SLuciano Coelho __le16 threshold; 211ba2d3587SEric Dumazet } __packed; 212f5fc0f86SLuciano Coelho 213f5fc0f86SLuciano Coelho struct acx_beacon_filter_option { 214f5fc0f86SLuciano Coelho struct acx_header header; 215f5fc0f86SLuciano Coelho 2167f097988SEliad Peller u8 role_id; 217f5fc0f86SLuciano Coelho u8 enable; 218f5fc0f86SLuciano Coelho /* 219f5fc0f86SLuciano Coelho * The number of beacons without the unicast TIM 220f5fc0f86SLuciano Coelho * bit set that the firmware buffers before 221f5fc0f86SLuciano Coelho * signaling the host about ready frames. 222f5fc0f86SLuciano Coelho * When set to 0 and the filter is enabled, beacons 223f5fc0f86SLuciano Coelho * without the unicast TIM bit set are dropped. 224f5fc0f86SLuciano Coelho */ 225f5fc0f86SLuciano Coelho u8 max_num_beacons; 2267f097988SEliad Peller u8 pad[1]; 227ba2d3587SEric Dumazet } __packed; 228f5fc0f86SLuciano Coelho 229f5fc0f86SLuciano Coelho /* 230f5fc0f86SLuciano Coelho * ACXBeaconFilterEntry (not 221) 231f5fc0f86SLuciano Coelho * Byte Offset Size (Bytes) Definition 232f5fc0f86SLuciano Coelho * =========== ============ ========== 233f5fc0f86SLuciano Coelho * 0 1 IE identifier 234f5fc0f86SLuciano Coelho * 1 1 Treatment bit mask 235f5fc0f86SLuciano Coelho * 236f5fc0f86SLuciano Coelho * ACXBeaconFilterEntry (221) 237f5fc0f86SLuciano Coelho * Byte Offset Size (Bytes) Definition 238f5fc0f86SLuciano Coelho * =========== ============ ========== 239f5fc0f86SLuciano Coelho * 0 1 IE identifier 240f5fc0f86SLuciano Coelho * 1 1 Treatment bit mask 241f5fc0f86SLuciano Coelho * 2 3 OUI 242f5fc0f86SLuciano Coelho * 5 1 Type 243f5fc0f86SLuciano Coelho * 6 2 Version 244f5fc0f86SLuciano Coelho * 245f5fc0f86SLuciano Coelho * 246f5fc0f86SLuciano Coelho * Treatment bit mask - The information element handling: 247f5fc0f86SLuciano Coelho * bit 0 - The information element is compared and transferred 248f5fc0f86SLuciano Coelho * in case of change. 249f5fc0f86SLuciano Coelho * bit 1 - The information element is transferred to the host 250f5fc0f86SLuciano Coelho * with each appearance or disappearance. 251f5fc0f86SLuciano Coelho * Note that both bits can be set at the same time. 252f5fc0f86SLuciano Coelho */ 253f5fc0f86SLuciano Coelho #define BEACON_FILTER_TABLE_MAX_IE_NUM (32) 254f5fc0f86SLuciano Coelho #define BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM (6) 255f5fc0f86SLuciano Coelho #define BEACON_FILTER_TABLE_IE_ENTRY_SIZE (2) 256f5fc0f86SLuciano Coelho #define BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE (6) 257f5fc0f86SLuciano Coelho #define BEACON_FILTER_TABLE_MAX_SIZE ((BEACON_FILTER_TABLE_MAX_IE_NUM * \ 258f5fc0f86SLuciano Coelho BEACON_FILTER_TABLE_IE_ENTRY_SIZE) + \ 259f5fc0f86SLuciano Coelho (BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM * \ 260f5fc0f86SLuciano Coelho BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE)) 261f5fc0f86SLuciano Coelho 262f5fc0f86SLuciano Coelho struct acx_beacon_filter_ie_table { 263f5fc0f86SLuciano Coelho struct acx_header header; 264f5fc0f86SLuciano Coelho 2657f097988SEliad Peller u8 role_id; 266f5fc0f86SLuciano Coelho u8 num_ie; 2677f097988SEliad Peller u8 pad[2]; 2681937e742SJuuso Oikarinen u8 table[BEACON_FILTER_TABLE_MAX_SIZE]; 269ba2d3587SEric Dumazet } __packed; 270f5fc0f86SLuciano Coelho 27134415236SJuuso Oikarinen struct acx_conn_monit_params { 27234415236SJuuso Oikarinen struct acx_header header; 27334415236SJuuso Oikarinen 2747f097988SEliad Peller u8 role_id; 2757f097988SEliad Peller u8 padding[3]; 276d0f63b20SLuciano Coelho __le32 synch_fail_thold; /* number of beacons missed */ 277d0f63b20SLuciano Coelho __le32 bss_lose_timeout; /* number of TU's from synch fail */ 278ba2d3587SEric Dumazet } __packed; 27934415236SJuuso Oikarinen 280f5fc0f86SLuciano Coelho struct acx_bt_wlan_coex { 281f5fc0f86SLuciano Coelho struct acx_header header; 282f5fc0f86SLuciano Coelho 283f5fc0f86SLuciano Coelho u8 enable; 284f5fc0f86SLuciano Coelho u8 pad[3]; 285ba2d3587SEric Dumazet } __packed; 286f5fc0f86SLuciano Coelho 2873be4112cSEliad Peller struct acx_bt_wlan_coex_param { 288885c9907SJuuso Oikarinen struct acx_header header; 289885c9907SJuuso Oikarinen 290133b7326SGuy Mishol __le32 params[WLCORE_CONF_SG_PARAMS_MAX]; 291885c9907SJuuso Oikarinen u8 param_idx; 292885c9907SJuuso Oikarinen u8 padding[3]; 293ba2d3587SEric Dumazet } __packed; 294885c9907SJuuso Oikarinen 2956e92b416SLuciano Coelho struct acx_dco_itrim_params { 2966e92b416SLuciano Coelho struct acx_header header; 2976e92b416SLuciano Coelho 2986e92b416SLuciano Coelho u8 enable; 2996e92b416SLuciano Coelho u8 padding[3]; 3006e92b416SLuciano Coelho __le32 timeout; 301ba2d3587SEric Dumazet } __packed; 3026e92b416SLuciano Coelho 303f5fc0f86SLuciano Coelho struct acx_energy_detection { 304f5fc0f86SLuciano Coelho struct acx_header header; 305f5fc0f86SLuciano Coelho 306f5fc0f86SLuciano Coelho /* The RX Clear Channel Assessment threshold in the PHY */ 307d0f63b20SLuciano Coelho __le16 rx_cca_threshold; 308f5fc0f86SLuciano Coelho u8 tx_energy_detection; 309f5fc0f86SLuciano Coelho u8 pad; 310ba2d3587SEric Dumazet } __packed; 311f5fc0f86SLuciano Coelho 312f5fc0f86SLuciano Coelho struct acx_beacon_broadcast { 313f5fc0f86SLuciano Coelho struct acx_header header; 314f5fc0f86SLuciano Coelho 3157f097988SEliad Peller u8 role_id; 316f5fc0f86SLuciano Coelho /* Enables receiving of broadcast packets in PS mode */ 317f5fc0f86SLuciano Coelho u8 rx_broadcast_in_ps; 318f5fc0f86SLuciano Coelho 3197f097988SEliad Peller __le16 beacon_rx_timeout; 3207f097988SEliad Peller __le16 broadcast_timeout; 3217f097988SEliad Peller 322f5fc0f86SLuciano Coelho /* Consecutive PS Poll failures before updating the host */ 323f5fc0f86SLuciano Coelho u8 ps_poll_threshold; 3247f097988SEliad Peller u8 pad[1]; 325ba2d3587SEric Dumazet } __packed; 326f5fc0f86SLuciano Coelho 327f5fc0f86SLuciano Coelho struct acx_event_mask { 328f5fc0f86SLuciano Coelho struct acx_header header; 329f5fc0f86SLuciano Coelho 330d0f63b20SLuciano Coelho __le32 event_mask; 331d0f63b20SLuciano Coelho __le32 high_event_mask; /* Unused */ 332ba2d3587SEric Dumazet } __packed; 333f5fc0f86SLuciano Coelho 334f5fc0f86SLuciano Coelho #define SCAN_PASSIVE BIT(0) 335f5fc0f86SLuciano Coelho #define SCAN_5GHZ_BAND BIT(1) 336f5fc0f86SLuciano Coelho #define SCAN_TRIGGERED BIT(2) 337f5fc0f86SLuciano Coelho #define SCAN_PRIORITY_HIGH BIT(3) 338f5fc0f86SLuciano Coelho 3392b60100bSJuuso Oikarinen /* When set, disable HW encryption */ 3402b60100bSJuuso Oikarinen #define DF_ENCRYPTION_DISABLE 0x01 3412b60100bSJuuso Oikarinen #define DF_SNIFF_MODE_ENABLE 0x80 3422b60100bSJuuso Oikarinen 343f5fc0f86SLuciano Coelho struct acx_feature_config { 344f5fc0f86SLuciano Coelho struct acx_header header; 345f5fc0f86SLuciano Coelho 3467f097988SEliad Peller u8 role_id; 3477f097988SEliad Peller u8 padding[3]; 348d0f63b20SLuciano Coelho __le32 options; 349d0f63b20SLuciano Coelho __le32 data_flow_options; 350ba2d3587SEric Dumazet } __packed; 351f5fc0f86SLuciano Coelho 352f5fc0f86SLuciano Coelho struct acx_current_tx_power { 353f5fc0f86SLuciano Coelho struct acx_header header; 354f5fc0f86SLuciano Coelho 3557f097988SEliad Peller u8 role_id; 356f5fc0f86SLuciano Coelho u8 current_tx_power; 3577f097988SEliad Peller u8 padding[2]; 358ba2d3587SEric Dumazet } __packed; 359f5fc0f86SLuciano Coelho 360f5fc0f86SLuciano Coelho struct acx_wake_up_condition { 361f5fc0f86SLuciano Coelho struct acx_header header; 362f5fc0f86SLuciano Coelho 3637f097988SEliad Peller u8 role_id; 364f5fc0f86SLuciano Coelho u8 wake_up_event; /* Only one bit can be set */ 365f5fc0f86SLuciano Coelho u8 listen_interval; 3667f097988SEliad Peller u8 pad[1]; 367ba2d3587SEric Dumazet } __packed; 368f5fc0f86SLuciano Coelho 369f5fc0f86SLuciano Coelho struct acx_aid { 370f5fc0f86SLuciano Coelho struct acx_header header; 371f5fc0f86SLuciano Coelho 372f5fc0f86SLuciano Coelho /* 373f5fc0f86SLuciano Coelho * To be set when associated with an AP. 374f5fc0f86SLuciano Coelho */ 3757f097988SEliad Peller u8 role_id; 3767f097988SEliad Peller u8 reserved; 377d0f63b20SLuciano Coelho __le16 aid; 378ba2d3587SEric Dumazet } __packed; 379f5fc0f86SLuciano Coelho 380f5fc0f86SLuciano Coelho enum acx_preamble_type { 381f5fc0f86SLuciano Coelho ACX_PREAMBLE_LONG = 0, 382f5fc0f86SLuciano Coelho ACX_PREAMBLE_SHORT = 1 383f5fc0f86SLuciano Coelho }; 384f5fc0f86SLuciano Coelho 385f5fc0f86SLuciano Coelho struct acx_preamble { 386f5fc0f86SLuciano Coelho struct acx_header header; 387f5fc0f86SLuciano Coelho 388f5fc0f86SLuciano Coelho /* 389f5fc0f86SLuciano Coelho * When set, the WiLink transmits the frames with a short preamble and 390f5fc0f86SLuciano Coelho * when cleared, the WiLink transmits the frames with a long preamble. 391f5fc0f86SLuciano Coelho */ 3927f097988SEliad Peller u8 role_id; 393f5fc0f86SLuciano Coelho u8 preamble; 3947f097988SEliad Peller u8 padding[2]; 395ba2d3587SEric Dumazet } __packed; 396f5fc0f86SLuciano Coelho 397f5fc0f86SLuciano Coelho enum acx_ctsprotect_type { 398f5fc0f86SLuciano Coelho CTSPROTECT_DISABLE = 0, 399f5fc0f86SLuciano Coelho CTSPROTECT_ENABLE = 1 400f5fc0f86SLuciano Coelho }; 401f5fc0f86SLuciano Coelho 402f5fc0f86SLuciano Coelho struct acx_ctsprotect { 403f5fc0f86SLuciano Coelho struct acx_header header; 4047f097988SEliad Peller u8 role_id; 405f5fc0f86SLuciano Coelho u8 ctsprotect; 4067f097988SEliad Peller u8 padding[2]; 407ba2d3587SEric Dumazet } __packed; 408f5fc0f86SLuciano Coelho 409f5fc0f86SLuciano Coelho struct acx_rate_class { 410d0f63b20SLuciano Coelho __le32 enabled_rates; 411f5fc0f86SLuciano Coelho u8 short_retry_limit; 412f5fc0f86SLuciano Coelho u8 long_retry_limit; 413f5fc0f86SLuciano Coelho u8 aflags; 414f5fc0f86SLuciano Coelho u8 reserved; 415f5fc0f86SLuciano Coelho }; 416f5fc0f86SLuciano Coelho 4177f097988SEliad Peller struct acx_rate_policy { 41879b223f4SArik Nemtsov struct acx_header header; 41979b223f4SArik Nemtsov 42079b223f4SArik Nemtsov __le32 rate_policy_idx; 42179b223f4SArik Nemtsov struct acx_rate_class rate_policy; 42279b223f4SArik Nemtsov } __packed; 42379b223f4SArik Nemtsov 424f5fc0f86SLuciano Coelho struct acx_ac_cfg { 425f5fc0f86SLuciano Coelho struct acx_header header; 4267f097988SEliad Peller u8 role_id; 427f5fc0f86SLuciano Coelho u8 ac; 4287f097988SEliad Peller u8 aifsn; 429f5fc0f86SLuciano Coelho u8 cw_min; 430d0f63b20SLuciano Coelho __le16 cw_max; 431d0f63b20SLuciano Coelho __le16 tx_op_limit; 432ba2d3587SEric Dumazet } __packed; 433f5fc0f86SLuciano Coelho 434f5fc0f86SLuciano Coelho struct acx_tid_config { 435f5fc0f86SLuciano Coelho struct acx_header header; 4367f097988SEliad Peller u8 role_id; 437f5fc0f86SLuciano Coelho u8 queue_id; 438f5fc0f86SLuciano Coelho u8 channel_type; 439f5fc0f86SLuciano Coelho u8 tsid; 440f5fc0f86SLuciano Coelho u8 ps_scheme; 441f5fc0f86SLuciano Coelho u8 ack_policy; 4427f097988SEliad Peller u8 padding[2]; 443d0f63b20SLuciano Coelho __le32 apsd_conf[2]; 444ba2d3587SEric Dumazet } __packed; 445f5fc0f86SLuciano Coelho 446f5fc0f86SLuciano Coelho struct acx_frag_threshold { 447f5fc0f86SLuciano Coelho struct acx_header header; 448d0f63b20SLuciano Coelho __le16 frag_threshold; 449f5fc0f86SLuciano Coelho u8 padding[2]; 450ba2d3587SEric Dumazet } __packed; 451f5fc0f86SLuciano Coelho 452f5fc0f86SLuciano Coelho struct acx_tx_config_options { 453f5fc0f86SLuciano Coelho struct acx_header header; 454d0f63b20SLuciano Coelho __le16 tx_compl_timeout; /* msec */ 455d0f63b20SLuciano Coelho __le16 tx_compl_threshold; /* number of packets */ 456ba2d3587SEric Dumazet } __packed; 457f5fc0f86SLuciano Coelho 4587f097988SEliad Peller struct wl12xx_acx_config_memory { 459c8bde243SEliad Peller struct acx_header header; 460c8bde243SEliad Peller 461c8bde243SEliad Peller u8 rx_mem_block_num; 462c8bde243SEliad Peller u8 tx_min_mem_block_num; 463c8bde243SEliad Peller u8 num_stations; 464c8bde243SEliad Peller u8 num_ssid_profiles; 465c8bde243SEliad Peller __le32 total_tx_descriptors; 466c8bde243SEliad Peller u8 dyn_mem_enable; 467c8bde243SEliad Peller u8 tx_free_req; 468c8bde243SEliad Peller u8 rx_free_req; 469c8bde243SEliad Peller u8 tx_min; 47095dac04fSIdo Yariv u8 fwlog_blocks; 47195dac04fSIdo Yariv u8 padding[3]; 472c8bde243SEliad Peller } __packed; 473c8bde243SEliad Peller 474f5fc0f86SLuciano Coelho struct wl1271_acx_mem_map { 475f5fc0f86SLuciano Coelho struct acx_header header; 476f5fc0f86SLuciano Coelho 477d0f63b20SLuciano Coelho __le32 code_start; 478d0f63b20SLuciano Coelho __le32 code_end; 479f5fc0f86SLuciano Coelho 480d0f63b20SLuciano Coelho __le32 wep_defkey_start; 481d0f63b20SLuciano Coelho __le32 wep_defkey_end; 482f5fc0f86SLuciano Coelho 483d0f63b20SLuciano Coelho __le32 sta_table_start; 484d0f63b20SLuciano Coelho __le32 sta_table_end; 485f5fc0f86SLuciano Coelho 486d0f63b20SLuciano Coelho __le32 packet_template_start; 487d0f63b20SLuciano Coelho __le32 packet_template_end; 488f5fc0f86SLuciano Coelho 489f5fc0f86SLuciano Coelho /* Address of the TX result interface (control block) */ 490d0f63b20SLuciano Coelho __le32 tx_result; 491d0f63b20SLuciano Coelho __le32 tx_result_queue_start; 492f5fc0f86SLuciano Coelho 493d0f63b20SLuciano Coelho __le32 queue_memory_start; 494d0f63b20SLuciano Coelho __le32 queue_memory_end; 495f5fc0f86SLuciano Coelho 496d0f63b20SLuciano Coelho __le32 packet_memory_pool_start; 497d0f63b20SLuciano Coelho __le32 packet_memory_pool_end; 498f5fc0f86SLuciano Coelho 499d0f63b20SLuciano Coelho __le32 debug_buffer1_start; 500d0f63b20SLuciano Coelho __le32 debug_buffer1_end; 501f5fc0f86SLuciano Coelho 502d0f63b20SLuciano Coelho __le32 debug_buffer2_start; 503d0f63b20SLuciano Coelho __le32 debug_buffer2_end; 504f5fc0f86SLuciano Coelho 505f5fc0f86SLuciano Coelho /* Number of blocks FW allocated for TX packets */ 506d0f63b20SLuciano Coelho __le32 num_tx_mem_blocks; 507f5fc0f86SLuciano Coelho 508f5fc0f86SLuciano Coelho /* Number of blocks FW allocated for RX packets */ 509d0f63b20SLuciano Coelho __le32 num_rx_mem_blocks; 510f5fc0f86SLuciano Coelho 511f5fc0f86SLuciano Coelho /* the following 4 fields are valid in SLAVE mode only */ 512f5fc0f86SLuciano Coelho u8 *tx_cbuf; 513f5fc0f86SLuciano Coelho u8 *rx_cbuf; 514d0f63b20SLuciano Coelho __le32 rx_ctrl; 515d0f63b20SLuciano Coelho __le32 tx_ctrl; 516ba2d3587SEric Dumazet } __packed; 517f5fc0f86SLuciano Coelho 518f5fc0f86SLuciano Coelho struct wl1271_acx_rx_config_opt { 519f5fc0f86SLuciano Coelho struct acx_header header; 520f5fc0f86SLuciano Coelho 521d0f63b20SLuciano Coelho __le16 mblk_threshold; 522d0f63b20SLuciano Coelho __le16 threshold; 523d0f63b20SLuciano Coelho __le16 timeout; 524f5fc0f86SLuciano Coelho u8 queue_type; 525f5fc0f86SLuciano Coelho u8 reserved; 526ba2d3587SEric Dumazet } __packed; 527f5fc0f86SLuciano Coelho 52811f70f97SJuuso Oikarinen 52911f70f97SJuuso Oikarinen struct wl1271_acx_bet_enable { 53011f70f97SJuuso Oikarinen struct acx_header header; 53111f70f97SJuuso Oikarinen 5327f097988SEliad Peller u8 role_id; 53311f70f97SJuuso Oikarinen u8 enable; 53411f70f97SJuuso Oikarinen u8 max_consecutive; 5357f097988SEliad Peller u8 padding[1]; 536ba2d3587SEric Dumazet } __packed; 53711f70f97SJuuso Oikarinen 53801c09162SJuuso Oikarinen #define ACX_IPV4_VERSION 4 53901c09162SJuuso Oikarinen #define ACX_IPV6_VERSION 6 54001c09162SJuuso Oikarinen #define ACX_IPV4_ADDR_SIZE 4 541c5312772SEliad Peller 542c5312772SEliad Peller /* bitmap of enabled arp_filter features */ 543c5312772SEliad Peller #define ACX_ARP_FILTER_ARP_FILTERING BIT(0) 544c5312772SEliad Peller #define ACX_ARP_FILTER_AUTO_ARP BIT(1) 545c5312772SEliad Peller 54601c09162SJuuso Oikarinen struct wl1271_acx_arp_filter { 54701c09162SJuuso Oikarinen struct acx_header header; 5487f097988SEliad Peller u8 role_id; 54901c09162SJuuso Oikarinen u8 version; /* ACX_IPV4_VERSION, ACX_IPV6_VERSION */ 550c5312772SEliad Peller u8 enable; /* bitmap of enabled ARP filtering features */ 5517f097988SEliad Peller u8 padding[1]; 55201c09162SJuuso Oikarinen u8 address[16]; /* The configured device IP address - all ARP 55301c09162SJuuso Oikarinen requests directed to this IP address will pass 55401c09162SJuuso Oikarinen through. For IPv4, the first four bytes are 55501c09162SJuuso Oikarinen used. */ 556ba2d3587SEric Dumazet } __packed; 55701c09162SJuuso Oikarinen 55838ad2d87SJuuso Oikarinen struct wl1271_acx_pm_config { 55938ad2d87SJuuso Oikarinen struct acx_header header; 56038ad2d87SJuuso Oikarinen 56138ad2d87SJuuso Oikarinen __le32 host_clk_settling_time; 56238ad2d87SJuuso Oikarinen u8 host_fast_wakeup_support; 56338ad2d87SJuuso Oikarinen u8 padding[3]; 564ba2d3587SEric Dumazet } __packed; 56501c09162SJuuso Oikarinen 566c1899554SJuuso Oikarinen struct wl1271_acx_keep_alive_mode { 567c1899554SJuuso Oikarinen struct acx_header header; 568c1899554SJuuso Oikarinen 5697f097988SEliad Peller u8 role_id; 570c1899554SJuuso Oikarinen u8 enabled; 5717f097988SEliad Peller u8 padding[2]; 572ba2d3587SEric Dumazet } __packed; 573c1899554SJuuso Oikarinen 574c1899554SJuuso Oikarinen enum { 575c1899554SJuuso Oikarinen ACX_KEEP_ALIVE_NO_TX = 0, 576c1899554SJuuso Oikarinen ACX_KEEP_ALIVE_PERIOD_ONLY 577c1899554SJuuso Oikarinen }; 578c1899554SJuuso Oikarinen 579c1899554SJuuso Oikarinen enum { 580c1899554SJuuso Oikarinen ACX_KEEP_ALIVE_TPL_INVALID = 0, 581c1899554SJuuso Oikarinen ACX_KEEP_ALIVE_TPL_VALID 582c1899554SJuuso Oikarinen }; 583c1899554SJuuso Oikarinen 584c1899554SJuuso Oikarinen struct wl1271_acx_keep_alive_config { 585c1899554SJuuso Oikarinen struct acx_header header; 586c1899554SJuuso Oikarinen 5877f097988SEliad Peller u8 role_id; 588c1899554SJuuso Oikarinen u8 index; 589c1899554SJuuso Oikarinen u8 tpl_validation; 590c1899554SJuuso Oikarinen u8 trigger; 5917f097988SEliad Peller __le32 period; 592ba2d3587SEric Dumazet } __packed; 593c1899554SJuuso Oikarinen 5949d68d1eeSLuciano Coelho /* TODO: maybe this needs to be moved somewhere else? */ 59548a61477SShahar Levi #define HOST_IF_CFG_RX_FIFO_ENABLE BIT(0) 59648a61477SShahar Levi #define HOST_IF_CFG_TX_EXTRA_BLKS_SWAP BIT(1) 59748a61477SShahar Levi #define HOST_IF_CFG_TX_PAD_TO_SDIO_BLK BIT(3) 598b8422dcbSLuciano Coelho #define HOST_IF_CFG_RX_PAD_TO_SDIO_BLK BIT(4) 599b8422dcbSLuciano Coelho #define HOST_IF_CFG_ADD_RX_ALIGNMENT BIT(6) 60048a61477SShahar Levi 601f5fc0f86SLuciano Coelho enum { 60200236aedSJuuso Oikarinen WL1271_ACX_TRIG_TYPE_LEVEL = 0, 60300236aedSJuuso Oikarinen WL1271_ACX_TRIG_TYPE_EDGE, 60400236aedSJuuso Oikarinen }; 60500236aedSJuuso Oikarinen 60600236aedSJuuso Oikarinen enum { 60700236aedSJuuso Oikarinen WL1271_ACX_TRIG_DIR_LOW = 0, 60800236aedSJuuso Oikarinen WL1271_ACX_TRIG_DIR_HIGH, 60900236aedSJuuso Oikarinen WL1271_ACX_TRIG_DIR_BIDIR, 61000236aedSJuuso Oikarinen }; 61100236aedSJuuso Oikarinen 61200236aedSJuuso Oikarinen enum { 61300236aedSJuuso Oikarinen WL1271_ACX_TRIG_ENABLE = 1, 61400236aedSJuuso Oikarinen WL1271_ACX_TRIG_DISABLE, 61500236aedSJuuso Oikarinen }; 61600236aedSJuuso Oikarinen 61700236aedSJuuso Oikarinen enum { 61800236aedSJuuso Oikarinen WL1271_ACX_TRIG_METRIC_RSSI_BEACON = 0, 61900236aedSJuuso Oikarinen WL1271_ACX_TRIG_METRIC_RSSI_DATA, 62000236aedSJuuso Oikarinen WL1271_ACX_TRIG_METRIC_SNR_BEACON, 62100236aedSJuuso Oikarinen WL1271_ACX_TRIG_METRIC_SNR_DATA, 62200236aedSJuuso Oikarinen }; 62300236aedSJuuso Oikarinen 62400236aedSJuuso Oikarinen enum { 62500236aedSJuuso Oikarinen WL1271_ACX_TRIG_IDX_RSSI = 0, 62600236aedSJuuso Oikarinen WL1271_ACX_TRIG_COUNT = 8, 62700236aedSJuuso Oikarinen }; 62800236aedSJuuso Oikarinen 62900236aedSJuuso Oikarinen struct wl1271_acx_rssi_snr_trigger { 63000236aedSJuuso Oikarinen struct acx_header header; 63100236aedSJuuso Oikarinen 6327f097988SEliad Peller u8 role_id; 63300236aedSJuuso Oikarinen u8 metric; 63400236aedSJuuso Oikarinen u8 type; 63500236aedSJuuso Oikarinen u8 dir; 6367f097988SEliad Peller __le16 threshold; 6377f097988SEliad Peller __le16 pacing; /* 0 - 60000 ms */ 63800236aedSJuuso Oikarinen u8 hysteresis; 63900236aedSJuuso Oikarinen u8 index; 64000236aedSJuuso Oikarinen u8 enable; 6417f097988SEliad Peller u8 padding[1]; 64200236aedSJuuso Oikarinen }; 64300236aedSJuuso Oikarinen 64400236aedSJuuso Oikarinen struct wl1271_acx_rssi_snr_avg_weights { 64500236aedSJuuso Oikarinen struct acx_header header; 64600236aedSJuuso Oikarinen 6477f097988SEliad Peller u8 role_id; 6487f097988SEliad Peller u8 padding[3]; 64900236aedSJuuso Oikarinen u8 rssi_beacon; 65000236aedSJuuso Oikarinen u8 rssi_data; 65100236aedSJuuso Oikarinen u8 snr_beacon; 65200236aedSJuuso Oikarinen u8 snr_data; 65300236aedSJuuso Oikarinen }; 65400236aedSJuuso Oikarinen 6550f9c8250SArik Nemtsov 6560f9c8250SArik Nemtsov /* special capability bit (not employed by the 802.11n spec) */ 6570f9c8250SArik Nemtsov #define WL12XX_HT_CAP_HT_OPERATION BIT(16) 6580f9c8250SArik Nemtsov 659e8b03a2bSShahar Levi /* 660e8b03a2bSShahar Levi * ACX_PEER_HT_CAP 661e8b03a2bSShahar Levi * Configure HT capabilities - declare the capabilities of the peer 662e8b03a2bSShahar Levi * we are connected to. 663e8b03a2bSShahar Levi */ 664e8b03a2bSShahar Levi struct wl1271_acx_ht_capabilities { 665e8b03a2bSShahar Levi struct acx_header header; 666e8b03a2bSShahar Levi 6670f9c8250SArik Nemtsov /* bitmask of capability bits supported by the peer */ 668e8b03a2bSShahar Levi __le32 ht_capabilites; 669e8b03a2bSShahar Levi 6707f097988SEliad Peller /* Indicates to which link these capabilities apply. */ 6717f097988SEliad Peller u8 hlid; 672e8b03a2bSShahar Levi 673e8b03a2bSShahar Levi /* 674e8b03a2bSShahar Levi * This the maximum A-MPDU length supported by the AP. The FW may not 675e8b03a2bSShahar Levi * exceed this length when sending A-MPDUs 676e8b03a2bSShahar Levi */ 677e8b03a2bSShahar Levi u8 ampdu_max_length; 678e8b03a2bSShahar Levi 679e8b03a2bSShahar Levi /* This is the minimal spacing required when sending A-MPDUs to the AP*/ 680e8b03a2bSShahar Levi u8 ampdu_min_spacing; 6817f097988SEliad Peller 6827f097988SEliad Peller u8 padding; 683e8b03a2bSShahar Levi } __packed; 684e8b03a2bSShahar Levi 685e8b03a2bSShahar Levi /* 686e8b03a2bSShahar Levi * ACX_HT_BSS_OPERATION 687e8b03a2bSShahar Levi * Configure HT capabilities - AP rules for behavior in the BSS. 688e8b03a2bSShahar Levi */ 689e8b03a2bSShahar Levi struct wl1271_acx_ht_information { 690e8b03a2bSShahar Levi struct acx_header header; 691e8b03a2bSShahar Levi 6927f097988SEliad Peller u8 role_id; 6937f097988SEliad Peller 694e8b03a2bSShahar Levi /* Values: 0 - RIFS not allowed, 1 - RIFS allowed */ 695e8b03a2bSShahar Levi u8 rifs_mode; 696e8b03a2bSShahar Levi 697e8b03a2bSShahar Levi /* Values: 0 - 3 like in spec */ 698e8b03a2bSShahar Levi u8 ht_protection; 699e8b03a2bSShahar Levi 700e8b03a2bSShahar Levi /* Values: 0 - GF protection not required, 1 - GF protection required */ 701e8b03a2bSShahar Levi u8 gf_protection; 702e8b03a2bSShahar Levi 703e8b03a2bSShahar Levi /*Values: 0 - TX Burst limit not required, 1 - TX Burst Limit required*/ 704e8b03a2bSShahar Levi u8 ht_tx_burst_limit; 705e8b03a2bSShahar Levi 706e8b03a2bSShahar Levi /* 707e8b03a2bSShahar Levi * Values: 0 - Dual CTS protection not required, 708e8b03a2bSShahar Levi * 1 - Dual CTS Protection required 709e8b03a2bSShahar Levi * Note: When this value is set to 1 FW will protect all TXOP with RTS 710e8b03a2bSShahar Levi * frame and will not use CTS-to-self regardless of the value of the 711e8b03a2bSShahar Levi * ACX_CTS_PROTECTION information element 712e8b03a2bSShahar Levi */ 713e8b03a2bSShahar Levi u8 dual_cts_protection; 714e8b03a2bSShahar Levi 7157f097988SEliad Peller u8 padding[2]; 716e8b03a2bSShahar Levi } __packed; 717e8b03a2bSShahar Levi 7180f9c8250SArik Nemtsov struct wl1271_acx_ba_initiator_policy { 7194b7fac77SLevi, Shahar struct acx_header header; 7200f9c8250SArik Nemtsov 7210f9c8250SArik Nemtsov /* Specifies role Id, Range 0-7, 0xFF means ANY role. */ 7224b7fac77SLevi, Shahar u8 role_id; 7230f9c8250SArik Nemtsov 7244b7fac77SLevi, Shahar /* 7250f9c8250SArik Nemtsov * Per TID setting for allowing TX BA. Set a bit to 1 to allow 7260f9c8250SArik Nemtsov * TX BA sessions for the corresponding TID. 7274b7fac77SLevi, Shahar */ 7280f9c8250SArik Nemtsov u8 tid_bitmap; 7294b7fac77SLevi, Shahar 7304b7fac77SLevi, Shahar /* Windows size in number of packets */ 7310f9c8250SArik Nemtsov u8 win_size; 7324b7fac77SLevi, Shahar 7330f9c8250SArik Nemtsov u8 padding1[1]; 7340f9c8250SArik Nemtsov 7350f9c8250SArik Nemtsov /* As initiator inactivity timeout in time units(TU) of 1024us */ 7364b7fac77SLevi, Shahar u16 inactivity_timeout; 7374b7fac77SLevi, Shahar 7380f9c8250SArik Nemtsov u8 padding[2]; 7394b7fac77SLevi, Shahar } __packed; 7404b7fac77SLevi, Shahar 741bbba3e68SLevi, Shahar struct wl1271_acx_ba_receiver_setup { 742bbba3e68SLevi, Shahar struct acx_header header; 743bbba3e68SLevi, Shahar 7440f9c8250SArik Nemtsov /* Specifies link id, range 0-31 */ 7450f9c8250SArik Nemtsov u8 hlid; 746bbba3e68SLevi, Shahar 747bbba3e68SLevi, Shahar u8 tid; 748bbba3e68SLevi, Shahar 749bbba3e68SLevi, Shahar u8 enable; 750bbba3e68SLevi, Shahar 751bbba3e68SLevi, Shahar /* Windows size in number of packets */ 7520f9c8250SArik Nemtsov u8 win_size; 753bbba3e68SLevi, Shahar 754bbba3e68SLevi, Shahar /* BA session starting sequence number. RANGE 0-FFF */ 755bbba3e68SLevi, Shahar u16 ssn; 7560f9c8250SArik Nemtsov 7570f9c8250SArik Nemtsov u8 padding[2]; 758bbba3e68SLevi, Shahar } __packed; 759bbba3e68SLevi, Shahar 7609c531149SEliad Peller struct wl12xx_acx_fw_tsf_information { 761bbbb538eSJuuso Oikarinen struct acx_header header; 762bbbb538eSJuuso Oikarinen 7639c531149SEliad Peller u8 role_id; 7649c531149SEliad Peller u8 padding1[3]; 765bbbb538eSJuuso Oikarinen __le32 current_tsf_high; 766bbbb538eSJuuso Oikarinen __le32 current_tsf_low; 767bbbb538eSJuuso Oikarinen __le32 last_bttt_high; 768bbbb538eSJuuso Oikarinen __le32 last_tbtt_low; 769bbbb538eSJuuso Oikarinen u8 last_dtim_count; 7709c531149SEliad Peller u8 padding2[3]; 77172e93e91SLuciano Coelho } __packed; 772bbbb538eSJuuso Oikarinen 773f84673d5SEliad Peller struct wl1271_acx_ps_rx_streaming { 774f84673d5SEliad Peller struct acx_header header; 775f84673d5SEliad Peller 7767f097988SEliad Peller u8 role_id; 777f84673d5SEliad Peller u8 tid; 778f84673d5SEliad Peller u8 enable; 779f84673d5SEliad Peller 780f84673d5SEliad Peller /* interval between triggers (10-100 msec) */ 781f84673d5SEliad Peller u8 period; 782f84673d5SEliad Peller 783f84673d5SEliad Peller /* timeout before first trigger (0-200 msec) */ 784f84673d5SEliad Peller u8 timeout; 7857f097988SEliad Peller u8 padding[3]; 786f84673d5SEliad Peller } __packed; 787f84673d5SEliad Peller 7883618f30fSArik Nemtsov struct wl1271_acx_ap_max_tx_retry { 78979b223f4SArik Nemtsov struct acx_header header; 79079b223f4SArik Nemtsov 7917f097988SEliad Peller u8 role_id; 7927f097988SEliad Peller u8 padding_1; 7937f097988SEliad Peller 79479b223f4SArik Nemtsov /* 79579b223f4SArik Nemtsov * the number of frames transmission failures before 79679b223f4SArik Nemtsov * issuing the aging event. 79779b223f4SArik Nemtsov */ 79879b223f4SArik Nemtsov __le16 max_tx_retry; 79979b223f4SArik Nemtsov } __packed; 80079b223f4SArik Nemtsov 801ee60833aSEliad Peller struct wl1271_acx_config_ps { 802ee60833aSEliad Peller struct acx_header header; 803ee60833aSEliad Peller 804ee60833aSEliad Peller u8 exit_retries; 805ee60833aSEliad Peller u8 enter_retries; 806ee60833aSEliad Peller u8 padding[2]; 807ee60833aSEliad Peller __le32 null_data_rate; 808ee60833aSEliad Peller } __packed; 809ee60833aSEliad Peller 81099a2775dSArik Nemtsov struct wl1271_acx_inconnection_sta { 81199a2775dSArik Nemtsov struct acx_header header; 81299a2775dSArik Nemtsov 81399a2775dSArik Nemtsov u8 addr[ETH_ALEN]; 814028e7243SEliad Peller u8 role_id; 815028e7243SEliad Peller u8 padding; 81699a2775dSArik Nemtsov } __packed; 81799a2775dSArik Nemtsov 818ff86843dSShahar Levi /* 819ff86843dSShahar Levi * ACX_FM_COEX_CFG 820ff86843dSShahar Levi * set the FM co-existence parameters. 821ff86843dSShahar Levi */ 822ff86843dSShahar Levi struct wl1271_acx_fm_coex { 823ff86843dSShahar Levi struct acx_header header; 824ff86843dSShahar Levi /* enable(1) / disable(0) the FM Coex feature */ 825ff86843dSShahar Levi u8 enable; 826ff86843dSShahar Levi /* 827ff86843dSShahar Levi * Swallow period used in COEX PLL swallowing mechanism. 828ff86843dSShahar Levi * 0xFF = use FW default 829ff86843dSShahar Levi */ 830ff86843dSShahar Levi u8 swallow_period; 831ff86843dSShahar Levi /* 832ff86843dSShahar Levi * The N divider used in COEX PLL swallowing mechanism for Fref of 833ff86843dSShahar Levi * 38.4/19.2 Mhz. 0xFF = use FW default 834ff86843dSShahar Levi */ 835ff86843dSShahar Levi u8 n_divider_fref_set_1; 836ff86843dSShahar Levi /* 837ff86843dSShahar Levi * The N divider used in COEX PLL swallowing mechanism for Fref of 838ff86843dSShahar Levi * 26/52 Mhz. 0xFF = use FW default 839ff86843dSShahar Levi */ 840ff86843dSShahar Levi u8 n_divider_fref_set_2; 841ff86843dSShahar Levi /* 842ff86843dSShahar Levi * The M divider used in COEX PLL swallowing mechanism for Fref of 843ff86843dSShahar Levi * 38.4/19.2 Mhz. 0xFFFF = use FW default 844ff86843dSShahar Levi */ 845ff86843dSShahar Levi __le16 m_divider_fref_set_1; 846ff86843dSShahar Levi /* 847ff86843dSShahar Levi * The M divider used in COEX PLL swallowing mechanism for Fref of 848ff86843dSShahar Levi * 26/52 Mhz. 0xFFFF = use FW default 849ff86843dSShahar Levi */ 850ff86843dSShahar Levi __le16 m_divider_fref_set_2; 851ff86843dSShahar Levi /* 852ff86843dSShahar Levi * The time duration in uSec required for COEX PLL to stabilize. 853ff86843dSShahar Levi * 0xFFFFFFFF = use FW default 854ff86843dSShahar Levi */ 855ff86843dSShahar Levi __le32 coex_pll_stabilization_time; 856ff86843dSShahar Levi /* 857ff86843dSShahar Levi * The time duration in uSec required for LDO to stabilize. 858ff86843dSShahar Levi * 0xFFFFFFFF = use FW default 859ff86843dSShahar Levi */ 860ff86843dSShahar Levi __le16 ldo_stabilization_time; 861ff86843dSShahar Levi /* 862ff86843dSShahar Levi * The disturbed frequency band margin around the disturbed frequency 863ff86843dSShahar Levi * center (single sided). 864ff86843dSShahar Levi * For example, if 2 is configured, the following channels will be 865ff86843dSShahar Levi * considered disturbed channel: 866ff86843dSShahar Levi * 80 +- 0.1 MHz, 91 +- 0.1 MHz, 98 +- 0.1 MHz, 102 +- 0.1 MH 867ff86843dSShahar Levi * 0xFF = use FW default 868ff86843dSShahar Levi */ 869ff86843dSShahar Levi u8 fm_disturbed_band_margin; 870ff86843dSShahar Levi /* 871ff86843dSShahar Levi * The swallow clock difference of the swallowing mechanism. 872ff86843dSShahar Levi * 0xFF = use FW default 873ff86843dSShahar Levi */ 874ff86843dSShahar Levi u8 swallow_clk_diff; 875ff86843dSShahar Levi } __packed; 876ff86843dSShahar Levi 877fa6ad9f0SEliad Peller #define ACX_RATE_MGMT_ALL_PARAMS 0xff 878fa6ad9f0SEliad Peller struct wl12xx_acx_set_rate_mgmt_params { 879fa6ad9f0SEliad Peller struct acx_header header; 880fa6ad9f0SEliad Peller 881fa6ad9f0SEliad Peller u8 index; /* 0xff to configure all params */ 882fa6ad9f0SEliad Peller u8 padding1; 883fa6ad9f0SEliad Peller __le16 rate_retry_score; 884fa6ad9f0SEliad Peller __le16 per_add; 885fa6ad9f0SEliad Peller __le16 per_th1; 886fa6ad9f0SEliad Peller __le16 per_th2; 887fa6ad9f0SEliad Peller __le16 max_per; 888fa6ad9f0SEliad Peller u8 inverse_curiosity_factor; 889fa6ad9f0SEliad Peller u8 tx_fail_low_th; 890fa6ad9f0SEliad Peller u8 tx_fail_high_th; 891fa6ad9f0SEliad Peller u8 per_alpha_shift; 892fa6ad9f0SEliad Peller u8 per_add_shift; 893fa6ad9f0SEliad Peller u8 per_beta1_shift; 894fa6ad9f0SEliad Peller u8 per_beta2_shift; 895fa6ad9f0SEliad Peller u8 rate_check_up; 896fa6ad9f0SEliad Peller u8 rate_check_down; 897fa6ad9f0SEliad Peller u8 rate_retry_policy[ACX_RATE_MGMT_NUM_OF_RATES]; 898fa6ad9f0SEliad Peller u8 padding2[2]; 899fa6ad9f0SEliad Peller } __packed; 900fa6ad9f0SEliad Peller 9019487775cSEliad Peller struct wl12xx_acx_config_hangover { 9029487775cSEliad Peller struct acx_header header; 9039487775cSEliad Peller 9049487775cSEliad Peller __le32 recover_time; 9059487775cSEliad Peller u8 hangover_period; 9069487775cSEliad Peller u8 dynamic_mode; 9079487775cSEliad Peller u8 early_termination_mode; 9089487775cSEliad Peller u8 max_period; 9099487775cSEliad Peller u8 min_period; 9109487775cSEliad Peller u8 increase_delta; 9119487775cSEliad Peller u8 decrease_delta; 9129487775cSEliad Peller u8 quiet_time; 9139487775cSEliad Peller u8 increase_time; 9149487775cSEliad Peller u8 window_size; 9159487775cSEliad Peller u8 padding[2]; 9169487775cSEliad Peller } __packed; 9179487775cSEliad Peller 918c21eebb5SEyal Shapira 919c21eebb5SEyal Shapira struct acx_default_rx_filter { 920c21eebb5SEyal Shapira struct acx_header header; 921c21eebb5SEyal Shapira u8 enable; 922c21eebb5SEyal Shapira 923c21eebb5SEyal Shapira /* action of type FILTER_XXX */ 924c21eebb5SEyal Shapira u8 default_action; 925c21eebb5SEyal Shapira 926c21eebb5SEyal Shapira u8 pad[2]; 927c21eebb5SEyal Shapira } __packed; 928c21eebb5SEyal Shapira 929c21eebb5SEyal Shapira 930c21eebb5SEyal Shapira struct acx_rx_filter_cfg { 931c21eebb5SEyal Shapira struct acx_header header; 932c21eebb5SEyal Shapira 933c21eebb5SEyal Shapira u8 enable; 934c21eebb5SEyal Shapira 935c21eebb5SEyal Shapira /* 0 - WL1271_MAX_RX_FILTERS-1 */ 936c21eebb5SEyal Shapira u8 index; 937c21eebb5SEyal Shapira 938c21eebb5SEyal Shapira u8 action; 939c21eebb5SEyal Shapira 940c21eebb5SEyal Shapira u8 num_fields; 941*398978f7SGustavo A. R. Silva u8 fields[]; 942c21eebb5SEyal Shapira } __packed; 943c21eebb5SEyal Shapira 9440a9ffac0SNadim Zubidat struct acx_roaming_stats { 9450a9ffac0SNadim Zubidat struct acx_header header; 9460a9ffac0SNadim Zubidat 9470a9ffac0SNadim Zubidat u8 role_id; 9480a9ffac0SNadim Zubidat u8 pad[3]; 9490a9ffac0SNadim Zubidat u32 missed_beacons; 9500a9ffac0SNadim Zubidat u8 snr_data; 9510a9ffac0SNadim Zubidat u8 snr_bacon; 9520a9ffac0SNadim Zubidat s8 rssi_data; 9530a9ffac0SNadim Zubidat s8 rssi_beacon; 9540a9ffac0SNadim Zubidat } __packed; 9550a9ffac0SNadim Zubidat 95600236aedSJuuso Oikarinen enum { 9578332f0f6SEliad Peller ACX_WAKE_UP_CONDITIONS = 0x0000, 9588332f0f6SEliad Peller ACX_MEM_CFG = 0x0001, 9598332f0f6SEliad Peller ACX_SLOT = 0x0002, 9608332f0f6SEliad Peller ACX_AC_CFG = 0x0003, 9618332f0f6SEliad Peller ACX_MEM_MAP = 0x0004, 9628332f0f6SEliad Peller ACX_AID = 0x0005, 9638332f0f6SEliad Peller ACX_MEDIUM_USAGE = 0x0006, 9648332f0f6SEliad Peller ACX_STATISTICS = 0x0007, 9658332f0f6SEliad Peller ACX_PWR_CONSUMPTION_STATISTICS = 0x0008, 9668332f0f6SEliad Peller ACX_TID_CFG = 0x0009, 9678332f0f6SEliad Peller ACX_PS_RX_STREAMING = 0x000A, 9688332f0f6SEliad Peller ACX_BEACON_FILTER_OPT = 0x000B, 9698332f0f6SEliad Peller ACX_NOISE_HIST = 0x000C, 9708332f0f6SEliad Peller ACX_HDK_VERSION = 0x000D, 9718332f0f6SEliad Peller ACX_PD_THRESHOLD = 0x000E, 9728332f0f6SEliad Peller ACX_TX_CONFIG_OPT = 0x000F, 9738332f0f6SEliad Peller ACX_CCA_THRESHOLD = 0x0010, 9748332f0f6SEliad Peller ACX_EVENT_MBOX_MASK = 0x0011, 9758332f0f6SEliad Peller ACX_CONN_MONIT_PARAMS = 0x0012, 9768332f0f6SEliad Peller ACX_DISABLE_BROADCASTS = 0x0013, 9778332f0f6SEliad Peller ACX_BCN_DTIM_OPTIONS = 0x0014, 9788332f0f6SEliad Peller ACX_SG_ENABLE = 0x0015, 9798332f0f6SEliad Peller ACX_SG_CFG = 0x0016, 9808332f0f6SEliad Peller ACX_FM_COEX_CFG = 0x0017, 9818332f0f6SEliad Peller ACX_BEACON_FILTER_TABLE = 0x0018, 9828332f0f6SEliad Peller ACX_ARP_IP_FILTER = 0x0019, 9838332f0f6SEliad Peller ACX_ROAMING_STATISTICS_TBL = 0x001A, 9848332f0f6SEliad Peller ACX_RATE_POLICY = 0x001B, 9858332f0f6SEliad Peller ACX_CTS_PROTECTION = 0x001C, 9868332f0f6SEliad Peller ACX_SLEEP_AUTH = 0x001D, 9878332f0f6SEliad Peller ACX_PREAMBLE_TYPE = 0x001E, 9888332f0f6SEliad Peller ACX_ERROR_CNT = 0x001F, 9898332f0f6SEliad Peller ACX_IBSS_FILTER = 0x0020, 9908332f0f6SEliad Peller ACX_SERVICE_PERIOD_TIMEOUT = 0x0021, 9918332f0f6SEliad Peller ACX_TSF_INFO = 0x0022, 9928332f0f6SEliad Peller ACX_CONFIG_PS_WMM = 0x0023, 9938332f0f6SEliad Peller ACX_ENABLE_RX_DATA_FILTER = 0x0024, 9948332f0f6SEliad Peller ACX_SET_RX_DATA_FILTER = 0x0025, 9958332f0f6SEliad Peller ACX_GET_DATA_FILTER_STATISTICS = 0x0026, 9968332f0f6SEliad Peller ACX_RX_CONFIG_OPT = 0x0027, 9978332f0f6SEliad Peller ACX_FRAG_CFG = 0x0028, 9988332f0f6SEliad Peller ACX_BET_ENABLE = 0x0029, 9998332f0f6SEliad Peller ACX_RSSI_SNR_TRIGGER = 0x002A, 10008332f0f6SEliad Peller ACX_RSSI_SNR_WEIGHTS = 0x002B, 10018332f0f6SEliad Peller ACX_KEEP_ALIVE_MODE = 0x002C, 10028332f0f6SEliad Peller ACX_SET_KEEP_ALIVE_CONFIG = 0x002D, 10038332f0f6SEliad Peller ACX_BA_SESSION_INIT_POLICY = 0x002E, 10048332f0f6SEliad Peller ACX_BA_SESSION_RX_SETUP = 0x002F, 10058332f0f6SEliad Peller ACX_PEER_HT_CAP = 0x0030, 10068332f0f6SEliad Peller ACX_HT_BSS_OPERATION = 0x0031, 10078332f0f6SEliad Peller ACX_COEX_ACTIVITY = 0x0032, 10088332f0f6SEliad Peller ACX_BURST_MODE = 0x0033, 10098332f0f6SEliad Peller ACX_SET_RATE_MGMT_PARAMS = 0x0034, 10108332f0f6SEliad Peller ACX_GET_RATE_MGMT_PARAMS = 0x0035, 10118332f0f6SEliad Peller ACX_SET_RATE_ADAPT_PARAMS = 0x0036, 10128332f0f6SEliad Peller ACX_SET_DCO_ITRIM_PARAMS = 0x0037, 10138332f0f6SEliad Peller ACX_GEN_FW_CMD = 0x0038, 10148332f0f6SEliad Peller ACX_HOST_IF_CFG_BITMAP = 0x0039, 10158332f0f6SEliad Peller ACX_MAX_TX_FAILURE = 0x003A, 10168332f0f6SEliad Peller ACX_UPDATE_INCONNECTION_STA_LIST = 0x003B, 10178332f0f6SEliad Peller DOT11_RX_MSDU_LIFE_TIME = 0x003C, 10188332f0f6SEliad Peller DOT11_CUR_TX_PWR = 0x003D, 10198332f0f6SEliad Peller DOT11_RTS_THRESHOLD = 0x003E, 10208332f0f6SEliad Peller DOT11_GROUP_ADDRESS_TBL = 0x003F, 10218332f0f6SEliad Peller ACX_PM_CONFIG = 0x0040, 10228332f0f6SEliad Peller ACX_CONFIG_PS = 0x0041, 10238332f0f6SEliad Peller ACX_CONFIG_HANGOVER = 0x0042, 10248332f0f6SEliad Peller ACX_FEATURE_CFG = 0x0043, 10258332f0f6SEliad Peller ACX_PROTECTION_CFG = 0x0044, 1026f5fc0f86SLuciano Coelho }; 1027f5fc0f86SLuciano Coelho 1028f5fc0f86SLuciano Coelho 10290603d891SEliad Peller int wl1271_acx_wake_up_conditions(struct wl1271 *wl, 1030dae728feSEyal Shapira struct wl12xx_vif *wlvif, 1031dae728feSEyal Shapira u8 wake_up_event, u8 listen_interval); 1032f5fc0f86SLuciano Coelho int wl1271_acx_sleep_auth(struct wl1271 *wl, u8 sleep_auth); 10330603d891SEliad Peller int wl1271_acx_tx_power(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10340603d891SEliad Peller int power); 10350603d891SEliad Peller int wl1271_acx_feature_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif); 1036f5fc0f86SLuciano Coelho int wl1271_acx_mem_map(struct wl1271 *wl, 1037f5fc0f86SLuciano Coelho struct acx_header *mem_map, size_t len); 10388793f9bbSJuuso Oikarinen int wl1271_acx_rx_msdu_life_time(struct wl1271 *wl); 10390603d891SEliad Peller int wl1271_acx_slot(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10400603d891SEliad Peller enum acx_slot_type slot_time); 10410603d891SEliad Peller int wl1271_acx_group_address_tbl(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10420603d891SEliad Peller bool enable, void *mc_list, u32 mc_list_len); 10430603d891SEliad Peller int wl1271_acx_service_period_timeout(struct wl1271 *wl, 10440603d891SEliad Peller struct wl12xx_vif *wlvif); 10450603d891SEliad Peller int wl1271_acx_rts_threshold(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10460603d891SEliad Peller u32 rts_threshold); 10476e92b416SLuciano Coelho int wl1271_acx_dco_itrim_params(struct wl1271 *wl); 10480603d891SEliad Peller int wl1271_acx_beacon_filter_opt(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10490603d891SEliad Peller bool enable_filter); 10500603d891SEliad Peller int wl1271_acx_beacon_filter_table(struct wl1271 *wl, 10510603d891SEliad Peller struct wl12xx_vif *wlvif); 10520603d891SEliad Peller int wl1271_acx_conn_monit_params(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10530603d891SEliad Peller bool enable); 10547fc3a864SJuuso Oikarinen int wl1271_acx_sg_enable(struct wl1271 *wl, bool enable); 10553be4112cSEliad Peller int wl12xx_acx_sg_cfg(struct wl1271 *wl); 1056f5fc0f86SLuciano Coelho int wl1271_acx_cca_threshold(struct wl1271 *wl); 10570603d891SEliad Peller int wl1271_acx_bcn_dtim_options(struct wl1271 *wl, struct wl12xx_vif *wlvif); 10580603d891SEliad Peller int wl1271_acx_aid(struct wl1271 *wl, struct wl12xx_vif *wlvif, u16 aid); 1059f5fc0f86SLuciano Coelho int wl1271_acx_event_mbox_mask(struct wl1271 *wl, u32 event_mask); 10600603d891SEliad Peller int wl1271_acx_set_preamble(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10610603d891SEliad Peller enum acx_preamble_type preamble); 10620603d891SEliad Peller int wl1271_acx_cts_protect(struct wl1271 *wl, struct wl12xx_vif *wlvif, 1063f5fc0f86SLuciano Coelho enum acx_ctsprotect_type ctsprotect); 10644987257cSLuciano Coelho int wl1271_acx_statistics(struct wl1271 *wl, void *stats); 106530d0c8fdSEliad Peller int wl1271_acx_sta_rate_policies(struct wl1271 *wl, struct wl12xx_vif *wlvif); 106679b223f4SArik Nemtsov int wl1271_acx_ap_rate_policy(struct wl1271 *wl, struct conf_tx_rate_class *c, 106779b223f4SArik Nemtsov u8 idx); 10680603d891SEliad Peller int wl1271_acx_ac_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10690603d891SEliad Peller u8 ac, u8 cw_min, u16 cw_max, u8 aifsn, u16 txop); 10700603d891SEliad Peller int wl1271_acx_tid_cfg(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10710603d891SEliad Peller u8 queue_id, u8 channel_type, 1072f2054df5SKalle Valo u8 tsid, u8 ps_scheme, u8 ack_policy, 1073f2054df5SKalle Valo u32 apsd_conf0, u32 apsd_conf1); 10745f704d18SArik Nemtsov int wl1271_acx_frag_threshold(struct wl1271 *wl, u32 frag_threshold); 1075f5fc0f86SLuciano Coelho int wl1271_acx_tx_config_options(struct wl1271 *wl); 10767f097988SEliad Peller int wl12xx_acx_mem_cfg(struct wl1271 *wl); 1077f5fc0f86SLuciano Coelho int wl1271_acx_init_mem_config(struct wl1271 *wl); 1078f5fc0f86SLuciano Coelho int wl1271_acx_init_rx_interrupt(struct wl1271 *wl); 10793cfd6cf9SJuuso Oikarinen int wl1271_acx_smart_reflex(struct wl1271 *wl); 10800603d891SEliad Peller int wl1271_acx_bet_enable(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10810603d891SEliad Peller bool enable); 10820603d891SEliad Peller int wl1271_acx_arp_ip_filter(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10830603d891SEliad Peller u8 enable, __be32 address); 108438ad2d87SJuuso Oikarinen int wl1271_acx_pm_config(struct wl1271 *wl); 10850603d891SEliad Peller int wl1271_acx_keep_alive_mode(struct wl1271 *wl, struct wl12xx_vif *vif, 10860603d891SEliad Peller bool enable); 10870603d891SEliad Peller int wl1271_acx_keep_alive_config(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10880603d891SEliad Peller u8 index, u8 tpl_valid); 10890603d891SEliad Peller int wl1271_acx_rssi_snr_trigger(struct wl1271 *wl, struct wl12xx_vif *wlvif, 10900603d891SEliad Peller bool enable, s16 thold, u8 hyst); 10910603d891SEliad Peller int wl1271_acx_rssi_snr_avg_weights(struct wl1271 *wl, 10920603d891SEliad Peller struct wl12xx_vif *wlvif); 1093c4db1c87SShahar Levi int wl1271_acx_set_ht_capabilities(struct wl1271 *wl, 1094c4db1c87SShahar Levi struct ieee80211_sta_ht_cap *ht_cap, 10950b932ab9SArik Nemtsov bool allow_ht_operation, u8 hlid); 1096c4db1c87SShahar Levi int wl1271_acx_set_ht_information(struct wl1271 *wl, 10970603d891SEliad Peller struct wl12xx_vif *wlvif, 1098c4db1c87SShahar Levi u16 ht_operation_mode); 10990603d891SEliad Peller int wl12xx_acx_set_ba_initiator_policy(struct wl1271 *wl, 11000603d891SEliad Peller struct wl12xx_vif *wlvif); 11010f9c8250SArik Nemtsov int wl12xx_acx_set_ba_receiver_session(struct wl1271 *wl, u8 tid_index, 110242c7372aSMaxim Altshul u16 ssn, bool enable, u8 peer_hlid, 110342c7372aSMaxim Altshul u8 win_size); 11049c531149SEliad Peller int wl12xx_acx_tsf_info(struct wl1271 *wl, struct wl12xx_vif *wlvif, 11059c531149SEliad Peller u64 *mactime); 11069eb599e9SEliad Peller int wl1271_acx_ps_rx_streaming(struct wl1271 *wl, struct wl12xx_vif *wlvif, 11079eb599e9SEliad Peller bool enable); 11080603d891SEliad Peller int wl1271_acx_ap_max_tx_retry(struct wl1271 *wl, struct wl12xx_vif *wlvif); 1109d2d66c56SEliad Peller int wl12xx_acx_config_ps(struct wl1271 *wl, struct wl12xx_vif *wlvif); 1110028e7243SEliad Peller int wl1271_acx_set_inconnection_sta(struct wl1271 *wl, 1111028e7243SEliad Peller struct wl12xx_vif *wlvif, u8 *addr); 1112ff86843dSShahar Levi int wl1271_acx_fm_coex(struct wl1271 *wl); 1113fa6ad9f0SEliad Peller int wl12xx_acx_set_rate_mgmt_params(struct wl1271 *wl); 11149487775cSEliad Peller int wl12xx_acx_config_hangover(struct wl1271 *wl); 11150a9ffac0SNadim Zubidat int wlcore_acx_average_rssi(struct wl1271 *wl, struct wl12xx_vif *wlvif, 11160a9ffac0SNadim Zubidat s8 *avg_rssi); 11174161923aSEyal Shapira 1118c21eebb5SEyal Shapira int wl1271_acx_default_rx_filter_enable(struct wl1271 *wl, bool enable, 1119c21eebb5SEyal Shapira enum rx_filter_action action); 1120c21eebb5SEyal Shapira int wl1271_acx_set_rx_filter(struct wl1271 *wl, u8 index, bool enable, 1121c21eebb5SEyal Shapira struct wl12xx_rx_filter *filter); 1122f5fc0f86SLuciano Coelho #endif /* __WL1271_ACX_H__ */ 1123