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