Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
dfs_pattern_detector.c File Reference
#include <linux/slab.h>
#include <linux/export.h>
#include "dfs_pattern_detector.h"
#include "dfs_pri_detector.h"

Go to the source code of this file.

Data Structures

struct  radar_types
 
struct  channel_detector
 

Macros

#define PRI_TOLERANCE   16
 
#define MIN_PPB_THRESH   50
 
#define PPB_THRESH(PPB)   ((PPB * MIN_PPB_THRESH + 50) / 100)
 
#define PRF2PRI(PRF)   ((1000000 + PRF / 2) / PRF)
 
#define ETSI_PATTERN(ID, WMIN, WMAX, PMIN, PMAX, PRF, PPB)
 

Functions

struct dfs_pattern_detectordfs_pattern_detector_init (enum nl80211_dfs_regions region)
 
 EXPORT_SYMBOL (dfs_pattern_detector_init)
 

Macro Definition Documentation

#define ETSI_PATTERN (   ID,
  WMIN,
  WMAX,
  PMIN,
  PMAX,
  PRF,
  PPB 
)
Value:
{ \
ID, WMIN, WMAX, (PRF2PRI(PMAX) - PRI_TOLERANCE), \
(PRF2PRI(PMIN) * PRF + PRI_TOLERANCE), PRF, PPB * PRF, \
}

Definition at line 46 of file dfs_pattern_detector.c.

#define MIN_PPB_THRESH   50

Definition at line 42 of file dfs_pattern_detector.c.

#define PPB_THRESH (   PPB)    ((PPB * MIN_PPB_THRESH + 50) / 100)

Definition at line 43 of file dfs_pattern_detector.c.

#define PRF2PRI (   PRF)    ((1000000 + PRF / 2) / PRF)

Definition at line 44 of file dfs_pattern_detector.c.

#define PRI_TOLERANCE   16

Definition at line 27 of file dfs_pattern_detector.c.

Function Documentation

struct dfs_pattern_detector* dfs_pattern_detector_init ( enum nl80211_dfs_regions  region)
read

Definition at line 283 of file dfs_pattern_detector.c.

EXPORT_SYMBOL ( dfs_pattern_detector_init  )