Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
drivers
net
wireless
ath
ath9k
dfs_pattern_detector.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2012 Neratec Solutions AG
3
*
4
* Permission to use, copy, modify, and/or distribute this software for any
5
* purpose with or without fee is hereby granted, provided that the above
6
* copyright notice and this permission notice appear in all copies.
7
*
8
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
*/
16
17
#ifndef DFS_PATTERN_DETECTOR_H
18
#define DFS_PATTERN_DETECTOR_H
19
20
#include <linux/types.h>
21
#include <linux/list.h>
22
#include <
linux/nl80211.h
>
23
31
struct
pulse_event
{
32
u64
ts
;
33
u16
freq
;
34
u8
width
;
35
u8
rssi
;
36
};
37
50
struct
radar_detector_specs
{
51
u8
type_id
;
52
u8
width_min
;
53
u8
width_max
;
54
u16
pri_min
;
55
u16
pri_max
;
56
u8
num_pri
;
57
u8
ppb
;
58
u8
ppb_thresh
;
59
u8
max_pri_tolerance
;
60
};
61
73
struct
dfs_pattern_detector
{
74
void
(*
exit
)(
struct
dfs_pattern_detector
*dpd);
75
bool
(*
set_domain
)(
struct
dfs_pattern_detector
*dpd,
76
enum
nl80211_dfs_regions
region
);
77
bool
(*
add_pulse
)(
struct
dfs_pattern_detector
*dpd,
78
struct
pulse_event
*pe);
79
80
enum
nl80211_dfs_regions
region
;
81
u8
num_radar_types
;
82
u64
last_pulse_ts
;
83
84
const
struct
radar_detector_specs
*
radar_spec
;
85
struct
list_head
channel_detectors
;
86
};
87
93
#if defined(CONFIG_ATH9K_DFS_CERTIFIED)
94
extern
struct
dfs_pattern_detector
*
95
dfs_pattern_detector_init
(
enum
nl80211_dfs_regions
region
);
96
#else
97
static
inline
struct
dfs_pattern_detector
*
98
dfs_pattern_detector_init
(
enum
nl80211_dfs_regions
region
)
99
{
100
return
NULL
;
101
}
102
#endif
/* CONFIG_ATH9K_DFS_CERTIFIED */
103
104
#endif
/* DFS_PATTERN_DETECTOR_H */
Generated on Thu Jan 10 2013 14:09:05 for Linux Kernel by
1.8.2