Go to the documentation of this file.
39 #ifndef __CARL9170_SHARED_FWCMD_H
40 #define __CARL9170_SHARED_FWCMD_H
42 #define CARL9170_MAX_CMD_LEN 64
43 #define CARL9170_MAX_CMD_PAYLOAD_LEN 60
45 #define CARL9170FW_API_MIN_VER 1
46 #define CARL9170FW_API_MAX_VER 1
103 #define CARL9170_SET_KEY_CMD_SIZE 28
109 #define CARL9170_DISABLE_KEY_CMD_SIZE 4
126 #define CARL9170FW_PHY_HT_ENABLE 0x4
127 #define CARL9170FW_PHY_HT_DYN2040 0x8
128 #define CARL9170FW_PHY_HT_EXT_CHAN_OFF 0x3
129 #define CARL9170FW_PHY_HT_EXT_CHAN_OFF_S 2
141 #define CARL9170_RF_INIT_SIZE 28
146 #define CARL9170_RF_INIT_RESULT_SIZE 4
148 #define CARL9170_PSM_SLEEP 0x1000
149 #define CARL9170_PSM_SOFTWARE 0
150 #define CARL9170_PSM_WAKE 0
151 #define CARL9170_PSM_COUNTER 0xfff
152 #define CARL9170_PSM_COUNTER_S 0
157 #define CARL9170_PSM_SIZE 4
162 #define CARL9170_RX_FILTER_CMD_SIZE 4
164 #define CARL9170_RX_FILTER_BAD 0x01
165 #define CARL9170_RX_FILTER_OTHER_RA 0x02
166 #define CARL9170_RX_FILTER_DECRY_FAIL 0x04
167 #define CARL9170_RX_FILTER_CTL_OTHER 0x08
168 #define CARL9170_RX_FILTER_CTL_PSPOLL 0x10
169 #define CARL9170_RX_FILTER_CTL_BACKR 0x20
170 #define CARL9170_RX_FILTER_MGMT 0x40
171 #define CARL9170_RX_FILTER_DATA 0x80
172 #define CARL9170_RX_FILTER_EVERYTHING (~0)
180 #define CARL9170_BCN_CTRL_CMD_SIZE 16
182 #define CARL9170_BCN_CTRL_DRAIN 0
183 #define CARL9170_BCN_CTRL_CAB_TRIGGER 1
195 #define CARL9170_WOL_CMD_SIZE 60
197 #define CARL9170_WOL_DISCONNECT 1
198 #define CARL9170_WOL_MAGIC_PKT 2
230 #define CARL9170_TX_STATUS_QUEUE 3
231 #define CARL9170_TX_STATUS_QUEUE_S 0
232 #define CARL9170_TX_STATUS_RIX_S 2
233 #define CARL9170_TX_STATUS_RIX (3 << CARL9170_TX_STATUS_RIX_S)
234 #define CARL9170_TX_STATUS_TRIES_S 4
235 #define CARL9170_TX_STATUS_TRIES (7 << CARL9170_TX_STATUS_TRIES_S)
236 #define CARL9170_TX_STATUS_SUCCESS 0x80
238 #ifdef __CARL9170FW__
265 #define CARL9170_TX_STATUS_SIZE 2
267 #define CARL9170_RSP_TX_STATUS_NUM (CARL9170_MAX_CMD_PAYLOAD_LEN / \
268 sizeof(struct _carl9170_tx_status))
270 #define CARL9170_TX_MAX_RATE_TRIES 7
272 #define CARL9170_TX_MAX_RATES 4
273 #define CARL9170_TX_MAX_RETRY_RATES (CARL9170_TX_MAX_RATES - 1)
274 #define CARL9170_ERR_MAGIC "ERR:"
275 #define CARL9170_BUG_MAGIC "BUG:"
280 #define CARL9170_GPIO_SIZE 4
288 #define CARL9170_TSF_RSP_SIZE 8
306 #ifdef __CARL9170FW__