Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2011-2014 The Linux Foundation. All rights reserved. |
| 3 | * |
| 4 | * Previously licensed under the ISC license by Qualcomm Atheros, Inc. |
| 5 | * |
| 6 | * |
| 7 | * Permission to use, copy, modify, and/or distribute this software for |
| 8 | * any purpose with or without fee is hereby granted, provided that the |
| 9 | * above copyright notice and this permission notice appear in all |
| 10 | * copies. |
| 11 | * |
| 12 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL |
| 13 | * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED |
| 14 | * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE |
| 15 | * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 16 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 17 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER |
| 18 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR |
| 19 | * PERFORMANCE OF THIS SOFTWARE. |
| 20 | */ |
| 21 | |
| 22 | /* |
| 23 | * This file was originally distributed by Qualcomm Atheros, Inc. |
| 24 | * under proprietary terms before Copyright ownership was assigned |
| 25 | * to the Linux Foundation. |
| 26 | */ |
| 27 | |
| 28 | /* |
| 29 | * |
| 30 | * This file lim_timer_utils.h contains the utility definitions |
| 31 | * LIM uses for timer handling. |
| 32 | * Author: Chandra Modumudi |
| 33 | * Date: 02/13/02 |
| 34 | * History:- |
| 35 | * Date Modified by Modification Information |
| 36 | * -------------------------------------------------------------------- |
| 37 | */ |
| 38 | #ifndef __LIM_TIMER_UTILS_H |
| 39 | #define __LIM_TIMER_UTILS_H |
| 40 | |
| 41 | #include "lim_types.h" |
| 42 | |
| 43 | /* Timer related functions */ |
| 44 | enum { |
| 45 | eLIM_MIN_CHANNEL_TIMER, |
| 46 | eLIM_MAX_CHANNEL_TIMER, |
| 47 | eLIM_JOIN_FAIL_TIMER, |
| 48 | eLIM_AUTH_FAIL_TIMER, |
| 49 | eLIM_AUTH_RESP_TIMER, |
| 50 | eLIM_ASSOC_FAIL_TIMER, |
| 51 | eLIM_REASSOC_FAIL_TIMER, |
| 52 | eLIM_PRE_AUTH_CLEANUP_TIMER, |
| 53 | eLIM_CNF_WAIT_TIMER, |
| 54 | eLIM_AUTH_RSP_TIMER, |
| 55 | eLIM_UPDATE_OLBC_CACHE_TIMER, |
| 56 | eLIM_PROBE_AFTER_HB_TIMER, |
| 57 | eLIM_ADDTS_RSP_TIMER, |
| 58 | eLIM_CHANNEL_SWITCH_TIMER, |
| 59 | eLIM_LEARN_DURATION_TIMER, |
| 60 | eLIM_QUIET_TIMER, |
| 61 | eLIM_QUIET_BSS_TIMER, |
| 62 | eLIM_WPS_OVERLAP_TIMER, |
| 63 | #ifdef WLAN_FEATURE_VOWIFI_11R |
| 64 | eLIM_FT_PREAUTH_RSP_TIMER, |
| 65 | #endif |
| 66 | eLIM_REMAIN_CHN_TIMER, |
| 67 | eLIM_PERIODIC_PROBE_REQ_TIMER, |
Prakash Dhavali | 7090c5f | 2015-11-02 17:55:19 -0800 | [diff] [blame] | 68 | eLIM_DISASSOC_ACK_TIMER, |
| 69 | eLIM_DEAUTH_ACK_TIMER, |
| 70 | eLIM_PERIODIC_JOIN_PROBE_REQ_TIMER, |
| 71 | eLIM_INSERT_SINGLESHOT_NOA_TIMER, |
| 72 | eLIM_CONVERT_ACTIVE_CHANNEL_TO_PASSIVE |
| 73 | }; |
| 74 | |
| 75 | #define LIM_DISASSOC_DEAUTH_ACK_TIMEOUT 500 |
| 76 | #define LIM_INSERT_SINGLESHOTNOA_TIMEOUT_VALUE 500 |
| 77 | |
| 78 | /* Timer Handler functions */ |
| 79 | uint32_t lim_create_timers(tpAniSirGlobal); |
| 80 | void lim_timer_handler(void *, uint32_t); |
| 81 | void lim_auth_response_timer_handler(void *, uint32_t); |
| 82 | void lim_assoc_failure_timer_handler(void *, uint32_t); |
| 83 | void limReassocFailureTimerHandler(void *, uint32_t); |
| 84 | |
| 85 | void lim_deactivate_and_change_timer(tpAniSirGlobal, uint32_t); |
| 86 | void limDummyPktExpTimerHandler(void *, uint32_t); |
| 87 | void lim_send_disassoc_frame_threshold_handler(void *, uint32_t); |
| 88 | void lim_cnf_wait_tmer_handler(void *, uint32_t); |
| 89 | void lim_deactivate_and_change_per_sta_id_timer(tpAniSirGlobal, uint32_t, uint16_t); |
| 90 | void lim_activate_cnf_timer(tpAniSirGlobal, uint16_t, tpPESession); |
| 91 | void lim_activate_auth_rsp_timer(tpAniSirGlobal, tLimPreAuthNode *); |
| 92 | void lim_update_olbc_cache_timer_handler(void *, uint32_t); |
| 93 | void lim_addts_response_timer_handler(void *, uint32_t); |
| 94 | void lim_channel_switch_timer_handler(void *, uint32_t); |
| 95 | void lim_quiet_timer_handler(void *, uint32_t); |
| 96 | void lim_quiet_bss_timer_handler(void *, uint32_t); |
| 97 | void limCBScanIntervalTimerHandler(void *, uint32_t); |
| 98 | void limCBScanDurationTimerHandler(void *, uint32_t); |
| 99 | #endif /* __LIM_TIMER_UTILS_H */ |