summaryrefslogtreecommitdiff
path: root/core/mac/src/pe/lim/lim_timer_utils.h
blob: c03ff4b3199960aa0107357c526e201b4adc0230 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
 * Copyright (c) 2011-2014, 2016, 2018 The Linux Foundation. All rights reserved.
 *
 * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
 *
 *
 * Permission to use, copy, modify, and/or distribute this software for
 * any purpose with or without fee is hereby granted, provided that the
 * above copyright notice and this permission notice appear in all
 * copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 */

/*
 * This file was originally distributed by Qualcomm Atheros, Inc.
 * under proprietary terms before Copyright ownership was assigned
 * to the Linux Foundation.
 */

/*
 *
 * This file lim_timer_utils.h contains the utility definitions
 * LIM uses for timer handling.
 * Author:        Chandra Modumudi
 * Date:          02/13/02
 * History:-
 * Date           Modified by    Modification Information
 * --------------------------------------------------------------------
 */
#ifndef __LIM_TIMER_UTILS_H
#define __LIM_TIMER_UTILS_H

#include "lim_types.h"

/* Timer related functions */
enum {
	eLIM_MIN_CHANNEL_TIMER,
	eLIM_MAX_CHANNEL_TIMER,
	eLIM_JOIN_FAIL_TIMER,
	eLIM_AUTH_FAIL_TIMER,
	eLIM_AUTH_RESP_TIMER,
	eLIM_ASSOC_FAIL_TIMER,
	eLIM_REASSOC_FAIL_TIMER,
	eLIM_PRE_AUTH_CLEANUP_TIMER,
	eLIM_CNF_WAIT_TIMER,
	eLIM_AUTH_RSP_TIMER,
	eLIM_UPDATE_OLBC_CACHE_TIMER,
	eLIM_PROBE_AFTER_HB_TIMER,
	eLIM_ADDTS_RSP_TIMER,
	eLIM_CHANNEL_SWITCH_TIMER,
	eLIM_LEARN_DURATION_TIMER,
	eLIM_QUIET_TIMER,
	eLIM_QUIET_BSS_TIMER,
	eLIM_WPS_OVERLAP_TIMER,
	eLIM_FT_PREAUTH_RSP_TIMER,
	eLIM_REMAIN_CHN_TIMER,
	eLIM_PERIODIC_PROBE_REQ_TIMER,
	eLIM_DISASSOC_ACK_TIMER,
	eLIM_DEAUTH_ACK_TIMER,
	eLIM_PERIODIC_JOIN_PROBE_REQ_TIMER,
	eLIM_INSERT_SINGLESHOT_NOA_TIMER,
	eLIM_CONVERT_ACTIVE_CHANNEL_TO_PASSIVE,
	eLIM_AUTH_RETRY_TIMER,
	eLIM_AUTH_SAE_TIMER
};

#define LIM_DISASSOC_DEAUTH_ACK_TIMEOUT         500
#define LIM_INSERT_SINGLESHOTNOA_TIMEOUT_VALUE  500

/* Timer Handler functions */
uint32_t lim_create_timers(tpAniSirGlobal);
void lim_timer_handler(void *, uint32_t);
void lim_auth_response_timer_handler(void *, uint32_t);
void lim_assoc_failure_timer_handler(void *, uint32_t);
void limReassocFailureTimerHandler(void *, uint32_t);

void lim_deactivate_and_change_timer(tpAniSirGlobal, uint32_t);
void limDummyPktExpTimerHandler(void *, uint32_t);
void lim_cnf_wait_tmer_handler(void *, uint32_t);
void lim_deactivate_and_change_per_sta_id_timer(tpAniSirGlobal, uint32_t, uint16_t);
void lim_activate_cnf_timer(tpAniSirGlobal, uint16_t, tpPESession);
void lim_activate_auth_rsp_timer(tpAniSirGlobal, tLimPreAuthNode *);
void lim_update_olbc_cache_timer_handler(void *, uint32_t);
void lim_addts_response_timer_handler(void *, uint32_t);
void lim_channel_switch_timer_handler(void *, uint32_t);
void lim_quiet_timer_handler(void *, uint32_t);
void lim_quiet_bss_timer_handler(void *, uint32_t);
void limCBScanIntervalTimerHandler(void *, uint32_t);
void limCBScanDurationTimerHandler(void *, uint32_t);
#endif /* __LIM_TIMER_UTILS_H */