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