xref: /wlan-dirver/qca-wifi-host-cmn/umac/dfs/core/src/dfs_internal.h (revision bea437e2293c3d4fb1b5704fcf633aedac996962)
1 /*
2  * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
3  * Copyright (c) 2008 Atheros Communications, Inc.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for
6  * any purpose with or without fee is hereby granted, provided that the
7  * above copyright notice and this permission notice appear in all
8  * copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
11  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
12  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
13  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
16  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /**
21  * DOC: The structurs and functions in this file are used only within DFS
22  * component.
23  */
24 
25 #ifndef _DFS_INTERNAL_H_
26 #define _DFS_INTERNAL_H_
27 
28 #include <qdf_timer.h>
29 #include "dfs.h"
30 
31 /**
32  * enum DFS_DOMAIN - DFS domain
33  * @DFS_UNINIT_DOMAIN: Uninitialized domain
34  * @DFS_FCC_DOMAIN: FCC domain
35  * @DFS_ETSI_DOMAIN: ETSI domain
36  * @DFS_MKK4_DOMAIN: MKK domain
37  * @DFS_CN_DOMAIN: China domain
38  * @DFS_KR_DOMAIN: Korea domain
39  * @DFS_MKKN_DOMAIN: MKKN domain
40  * @DFS_UNDEF_DOMAIN: Undefined domain
41  */
42 enum DFS_DOMAIN {
43 	DFS_UNINIT_DOMAIN = 0,
44 	DFS_FCC_DOMAIN    = 1,
45 	DFS_ETSI_DOMAIN   = 2,
46 	DFS_MKK4_DOMAIN   = 3,
47 	DFS_CN_DOMAIN     = 4,
48 	DFS_KR_DOMAIN     = 5,
49 	DFS_MKKN_DOMAIN   = 6,
50 	DFS_UNDEF_DOMAIN
51 };
52 
53 /* CAPABILITY: the device support STA DFS */
54 #define WLAN_CEXT_STADFS 0x00000040
55 
56 /**
57  * dfs_chan2freq() - Convert channel to frequency value.
58  * @chan: Pointer to dfs_channel structure.
59  *
60  * Return: Channel frequency.
61  */
62 uint16_t dfs_chan2freq(struct dfs_channel *chan);
63 
64 #endif /*  _DFS_INTERNAL_H_ */
65