diff options
Diffstat (limited to 'drivers/net/wireless/wl12xx/wl1251_acx.h')
-rw-r--r-- | drivers/net/wireless/wl12xx/wl1251_acx.h | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/drivers/net/wireless/wl12xx/wl1251_acx.h b/drivers/net/wireless/wl12xx/wl1251_acx.h index cafb9145950..652371432cd 100644 --- a/drivers/net/wireless/wl12xx/wl1251_acx.h +++ b/drivers/net/wireless/wl12xx/wl1251_acx.h | |||
@@ -450,6 +450,11 @@ struct acx_beacon_filter_option { | |||
450 | (BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM * \ | 450 | (BEACON_FILTER_TABLE_MAX_VENDOR_SPECIFIC_IE_NUM * \ |
451 | BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE)) | 451 | BEACON_FILTER_TABLE_EXTRA_VENDOR_SPECIFIC_IE_SIZE)) |
452 | 452 | ||
453 | #define BEACON_RULE_PASS_ON_CHANGE BIT(0) | ||
454 | #define BEACON_RULE_PASS_ON_APPEARANCE BIT(1) | ||
455 | |||
456 | #define BEACON_FILTER_IE_ID_CHANNEL_SWITCH_ANN (37) | ||
457 | |||
453 | struct acx_beacon_filter_ie_table { | 458 | struct acx_beacon_filter_ie_table { |
454 | struct acx_header header; | 459 | struct acx_header header; |
455 | 460 | ||
@@ -458,6 +463,16 @@ struct acx_beacon_filter_ie_table { | |||
458 | u8 pad[3]; | 463 | u8 pad[3]; |
459 | } __attribute__ ((packed)); | 464 | } __attribute__ ((packed)); |
460 | 465 | ||
466 | #define SYNCH_FAIL_DEFAULT_THRESHOLD 10 /* number of beacons */ | ||
467 | #define NO_BEACON_DEFAULT_TIMEOUT (500) /* in microseconds */ | ||
468 | |||
469 | struct acx_conn_monit_params { | ||
470 | struct acx_header header; | ||
471 | |||
472 | u32 synch_fail_thold; /* number of beacons missed */ | ||
473 | u32 bss_lose_timeout; /* number of TU's from synch fail */ | ||
474 | }; | ||
475 | |||
461 | enum { | 476 | enum { |
462 | SG_ENABLE = 0, | 477 | SG_ENABLE = 0, |
463 | SG_DISABLE, | 478 | SG_DISABLE, |
@@ -1134,6 +1149,23 @@ struct wl1251_acx_mem_map { | |||
1134 | u32 num_rx_mem_blocks; | 1149 | u32 num_rx_mem_blocks; |
1135 | } __attribute__ ((packed)); | 1150 | } __attribute__ ((packed)); |
1136 | 1151 | ||
1152 | |||
1153 | struct wl1251_acx_wr_tbtt_and_dtim { | ||
1154 | |||
1155 | struct acx_header header; | ||
1156 | |||
1157 | /* Time in TUs between two consecutive beacons */ | ||
1158 | u16 tbtt; | ||
1159 | |||
1160 | /* | ||
1161 | * DTIM period | ||
1162 | * For BSS: Number of TBTTs in a DTIM period (range: 1-10) | ||
1163 | * For IBSS: value shall be set to 1 | ||
1164 | */ | ||
1165 | u8 dtim; | ||
1166 | u8 padding; | ||
1167 | } __attribute__ ((packed)); | ||
1168 | |||
1137 | /************************************************************************* | 1169 | /************************************************************************* |
1138 | 1170 | ||
1139 | Host Interrupt Register (WiLink -> Host) | 1171 | Host Interrupt Register (WiLink -> Host) |
@@ -1273,8 +1305,9 @@ int wl1251_acx_slot(struct wl1251 *wl, enum acx_slot_type slot_time); | |||
1273 | int wl1251_acx_group_address_tbl(struct wl1251 *wl); | 1305 | int wl1251_acx_group_address_tbl(struct wl1251 *wl); |
1274 | int wl1251_acx_service_period_timeout(struct wl1251 *wl); | 1306 | int wl1251_acx_service_period_timeout(struct wl1251 *wl); |
1275 | int wl1251_acx_rts_threshold(struct wl1251 *wl, u16 rts_threshold); | 1307 | int wl1251_acx_rts_threshold(struct wl1251 *wl, u16 rts_threshold); |
1276 | int wl1251_acx_beacon_filter_opt(struct wl1251 *wl); | 1308 | int wl1251_acx_beacon_filter_opt(struct wl1251 *wl, bool enable_filter); |
1277 | int wl1251_acx_beacon_filter_table(struct wl1251 *wl); | 1309 | int wl1251_acx_beacon_filter_table(struct wl1251 *wl); |
1310 | int wl1251_acx_conn_monit_params(struct wl1251 *wl); | ||
1278 | int wl1251_acx_sg_enable(struct wl1251 *wl); | 1311 | int wl1251_acx_sg_enable(struct wl1251 *wl); |
1279 | int wl1251_acx_sg_cfg(struct wl1251 *wl); | 1312 | int wl1251_acx_sg_cfg(struct wl1251 *wl); |
1280 | int wl1251_acx_cca_threshold(struct wl1251 *wl); | 1313 | int wl1251_acx_cca_threshold(struct wl1251 *wl); |
@@ -1288,5 +1321,6 @@ int wl1251_acx_statistics(struct wl1251 *wl, struct acx_statistics *stats); | |||
1288 | int wl1251_acx_tsf_info(struct wl1251 *wl, u64 *mactime); | 1321 | int wl1251_acx_tsf_info(struct wl1251 *wl, u64 *mactime); |
1289 | int wl1251_acx_rate_policies(struct wl1251 *wl); | 1322 | int wl1251_acx_rate_policies(struct wl1251 *wl); |
1290 | int wl1251_acx_mem_cfg(struct wl1251 *wl); | 1323 | int wl1251_acx_mem_cfg(struct wl1251 *wl); |
1324 | int wl1251_acx_wr_tbtt_and_dtim(struct wl1251 *wl, u16 tbtt, u8 dtim); | ||
1291 | 1325 | ||
1292 | #endif /* __WL1251_ACX_H__ */ | 1326 | #endif /* __WL1251_ACX_H__ */ |