aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/wl1271_acx.h
diff options
context:
space:
mode:
authorJuuso Oikarinen <juuso.oikarinen@nokia.com>2009-10-13 05:47:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:48:08 -0400
commit8793f9bb19c00b26532e37f1f516e1d9c7bc0476 (patch)
treecb1c12ec546584761894976f1258a7cb236f0287 /drivers/net/wireless/wl12xx/wl1271_acx.h
parent2b60100bf04aba28133ccb24efd85f72fb1a5494 (diff)
wl1271: Add config structure for RX path parameters
Add a configuration structure for RX path parameters, and set default configuration values there. Signed-off-by: Juuso Oikarinen <juuso.oikarinen@nokia.com> Reviewed-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: Luciano Coelho <luciano.coelho@nokia.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1271_acx.h')
-rw-r--r--drivers/net/wireless/wl12xx/wl1271_acx.h43
1 files changed, 1 insertions, 42 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_acx.h b/drivers/net/wireless/wl12xx/wl1271_acx.h
index 8e3b97cff794..1fbd4e5fcc44 100644
--- a/drivers/net/wireless/wl12xx/wl1271_acx.h
+++ b/drivers/net/wireless/wl12xx/wl1271_acx.h
@@ -314,35 +314,13 @@ struct acx_dot11_grp_addr_tbl {
314 u8 mac_table[ADDRESS_GROUP_MAX_LEN]; 314 u8 mac_table[ADDRESS_GROUP_MAX_LEN];
315} __attribute__ ((packed)); 315} __attribute__ ((packed));
316 316
317#define RX_TIMEOUT_PS_POLL_MIN 0
318#define RX_TIMEOUT_PS_POLL_MAX (200000)
319#define RX_TIMEOUT_PS_POLL_DEF (15)
320#define RX_TIMEOUT_UPSD_MIN 0
321#define RX_TIMEOUT_UPSD_MAX (200000)
322#define RX_TIMEOUT_UPSD_DEF (15)
323
324struct acx_rx_timeout { 317struct acx_rx_timeout {
325 struct acx_header header; 318 struct acx_header header;
326 319
327 /*
328 * The longest time the STA will wait to receive
329 * traffic from the AP after a PS-poll has been
330 * transmitted.
331 */
332 u16 ps_poll_timeout; 320 u16 ps_poll_timeout;
333
334 /*
335 * The longest time the STA will wait to receive
336 * traffic from the AP after a frame has been sent
337 * from an UPSD enabled queue.
338 */
339 u16 upsd_timeout; 321 u16 upsd_timeout;
340} __attribute__ ((packed)); 322} __attribute__ ((packed));
341 323
342#define RTS_THRESHOLD_MIN 0
343#define RTS_THRESHOLD_MAX 4096
344#define RTS_THRESHOLD_DEF 2347
345
346struct acx_rts_threshold { 324struct acx_rts_threshold {
347 struct acx_header header; 325 struct acx_header header;
348 326
@@ -510,9 +488,6 @@ struct acx_bt_wlan_coex_param {
510 u8 padding[3]; 488 u8 padding[3];
511} __attribute__ ((packed)); 489} __attribute__ ((packed));
512 490
513#define CCA_THRSH_ENABLE_ENERGY_D 0x140A
514#define CCA_THRSH_DISABLE_ENERGY_D 0xFFEF
515
516struct acx_energy_detection { 491struct acx_energy_detection {
517 struct acx_header header; 492 struct acx_header header;
518 493
@@ -1017,22 +992,6 @@ struct wl1271_acx_mem_map {
1017 void *tx_ctrl; 992 void *tx_ctrl;
1018} __attribute__ ((packed)); 993} __attribute__ ((packed));
1019 994
1020enum wl1271_acx_rx_queue_type {
1021 RX_QUEUE_TYPE_RX_LOW_PRIORITY, /* All except the high priority */
1022 RX_QUEUE_TYPE_RX_HIGH_PRIORITY, /* Management and voice packets */
1023 RX_QUEUE_TYPE_NUM,
1024 RX_QUEUE_TYPE_MAX = USHORT_MAX
1025};
1026
1027#define WL1271_RX_INTR_THRESHOLD_DEF 0 /* no pacing, send interrupt on
1028 * every event */
1029#define WL1271_RX_INTR_THRESHOLD_MIN 0
1030#define WL1271_RX_INTR_THRESHOLD_MAX 15
1031
1032#define WL1271_RX_INTR_TIMEOUT_DEF 5
1033#define WL1271_RX_INTR_TIMEOUT_MIN 1
1034#define WL1271_RX_INTR_TIMEOUT_MAX 100
1035
1036struct wl1271_acx_rx_config_opt { 995struct wl1271_acx_rx_config_opt {
1037 struct acx_header header; 996 struct acx_header header;
1038 997
@@ -1122,7 +1081,7 @@ int wl1271_acx_tx_power(struct wl1271 *wl, int power);
1122int wl1271_acx_feature_cfg(struct wl1271 *wl); 1081int wl1271_acx_feature_cfg(struct wl1271 *wl);
1123int wl1271_acx_mem_map(struct wl1271 *wl, 1082int wl1271_acx_mem_map(struct wl1271 *wl,
1124 struct acx_header *mem_map, size_t len); 1083 struct acx_header *mem_map, size_t len);
1125int wl1271_acx_rx_msdu_life_time(struct wl1271 *wl, u32 life_time); 1084int wl1271_acx_rx_msdu_life_time(struct wl1271 *wl);
1126int wl1271_acx_rx_config(struct wl1271 *wl, u32 config, u32 filter); 1085int wl1271_acx_rx_config(struct wl1271 *wl, u32 config, u32 filter);
1127int wl1271_acx_pd_threshold(struct wl1271 *wl); 1086int wl1271_acx_pd_threshold(struct wl1271 *wl);
1128int wl1271_acx_slot(struct wl1271 *wl, enum acx_slot_type slot_time); 1087int wl1271_acx_slot(struct wl1271 *wl, enum acx_slot_type slot_time);