diff options
author | Juuso Oikarinen <juuso.oikarinen@nokia.com> | 2009-10-13 05:47:42 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-27 16:48:08 -0400 |
commit | 51f2be24328957f9e2acf116b1b1d2dfd10bf41f (patch) | |
tree | 495c00ecd36cb7e84aeff4b9fd837d8e184cb8e0 /drivers/net/wireless/wl12xx/wl1271_acx.h | |
parent | 45b531a86f93c82d8e390e19a6258111b3627bb0 (diff) |
wl1271: Add config structure for connection management parameters
Add a configuration structure for connection management 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.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1271_acx.h b/drivers/net/wireless/wl12xx/wl1271_acx.h index 63cddceb39a4..73ef2bdf3b74 100644 --- a/drivers/net/wireless/wl12xx/wl1271_acx.h +++ b/drivers/net/wireless/wl12xx/wl1271_acx.h | |||
@@ -377,11 +377,6 @@ struct acx_beacon_filter_option { | |||
377 | (BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM * \ | 377 | (BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM * \ |
378 | BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE)) | 378 | BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE)) |
379 | 379 | ||
380 | #define BEACON_RULE_PASS_ON_CHANGE BIT(0) | ||
381 | #define BEACON_RULE_PASS_ON_APPEARANCE BIT(1) | ||
382 | |||
383 | #define BEACON_FILTER_IE_ID_CHANNEL_SWITCH_ANN (37) | ||
384 | |||
385 | struct acx_beacon_filter_ie_table { | 380 | struct acx_beacon_filter_ie_table { |
386 | struct acx_header header; | 381 | struct acx_header header; |
387 | 382 | ||
@@ -390,9 +385,6 @@ struct acx_beacon_filter_ie_table { | |||
390 | u8 pad[3]; | 385 | u8 pad[3]; |
391 | } __attribute__ ((packed)); | 386 | } __attribute__ ((packed)); |
392 | 387 | ||
393 | #define SYNCH_FAIL_DEFAULT_THRESHOLD 5 /* number of beacons */ | ||
394 | #define NO_BEACON_DEFAULT_TIMEOUT (100) /* TU */ | ||
395 | |||
396 | struct acx_conn_monit_params { | 388 | struct acx_conn_monit_params { |
397 | struct acx_header header; | 389 | struct acx_header header; |
398 | 390 | ||
@@ -497,11 +489,6 @@ struct acx_energy_detection { | |||
497 | u8 pad; | 489 | u8 pad; |
498 | } __attribute__ ((packed)); | 490 | } __attribute__ ((packed)); |
499 | 491 | ||
500 | #define BCN_RX_TIMEOUT_DEF_VALUE 10000 | ||
501 | #define BROADCAST_RX_TIMEOUT_DEF_VALUE 20000 | ||
502 | #define RX_BROADCAST_IN_PS_DEF_VALUE 1 | ||
503 | #define CONSECUTIVE_PS_POLL_FAILURE_DEF 4 | ||
504 | |||
505 | struct acx_beacon_broadcast { | 492 | struct acx_beacon_broadcast { |
506 | struct acx_header header; | 493 | struct acx_header header; |
507 | 494 | ||
@@ -575,14 +562,6 @@ struct acx_current_tx_power { | |||
575 | u8 padding[3]; | 562 | u8 padding[3]; |
576 | } __attribute__ ((packed)); | 563 | } __attribute__ ((packed)); |
577 | 564 | ||
578 | enum acx_wake_up_event { | ||
579 | WAKE_UP_EVENT_BEACON_BITMAP = 0x01, /* Wake on every Beacon*/ | ||
580 | WAKE_UP_EVENT_DTIM_BITMAP = 0x02, /* Wake on every DTIM*/ | ||
581 | WAKE_UP_EVENT_N_DTIM_BITMAP = 0x04, /* Wake on every Nth DTIM */ | ||
582 | WAKE_UP_EVENT_N_BEACONS_BITMAP = 0x08, /* Wake on every Nth Beacon */ | ||
583 | WAKE_UP_EVENT_BITS_MASK = 0x0F | ||
584 | }; | ||
585 | |||
586 | struct acx_wake_up_condition { | 565 | struct acx_wake_up_condition { |
587 | struct acx_header header; | 566 | struct acx_header header; |
588 | 567 | ||
@@ -1038,8 +1017,7 @@ enum { | |||
1038 | }; | 1017 | }; |
1039 | 1018 | ||
1040 | 1019 | ||
1041 | int wl1271_acx_wake_up_conditions(struct wl1271 *wl, u8 wake_up_event, | 1020 | int wl1271_acx_wake_up_conditions(struct wl1271 *wl); |
1042 | u8 listen_interval); | ||
1043 | int wl1271_acx_sleep_auth(struct wl1271 *wl, u8 sleep_auth); | 1021 | int wl1271_acx_sleep_auth(struct wl1271 *wl, u8 sleep_auth); |
1044 | int wl1271_acx_fw_version(struct wl1271 *wl, char *buf, size_t len); | 1022 | int wl1271_acx_fw_version(struct wl1271 *wl, char *buf, size_t len); |
1045 | int wl1271_acx_tx_power(struct wl1271 *wl, int power); | 1023 | int wl1271_acx_tx_power(struct wl1271 *wl, int power); |