Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341467
b: refs/heads/master
c: a695228
h: refs/heads/master
i:
  341465: 268b697
  341463: 32dc7fe
v: v3
  • Loading branch information
Zefir Kurtisi authored and John W. Linville committed Nov 16, 2012
1 parent 3c4bee0 commit 6858fd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e5023c7cc11158f74a637aa92897da954572a25
refs/heads/master: a6952287942a13831502838d47e268d05c21c48f
7 changes: 6 additions & 1 deletion trunk/drivers/net/wireless/ath/ath9k/dfs_pattern_detector.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,15 @@ struct radar_types {
#define MIN_PPB_THRESH 50
#define PPB_THRESH(PPB) ((PPB * MIN_PPB_THRESH + 50) / 100)
#define PRF2PRI(PRF) ((1000000 + PRF / 2) / PRF)
/* percentage of pulse width tolerance */
#define WIDTH_TOLERANCE 5
#define WIDTH_LOWER(X) ((X*(100-WIDTH_TOLERANCE)+50)/100)
#define WIDTH_UPPER(X) ((X*(100+WIDTH_TOLERANCE)+50)/100)

#define ETSI_PATTERN(ID, WMIN, WMAX, PMIN, PMAX, PRF, PPB) \
{ \
ID, WMIN, WMAX, (PRF2PRI(PMAX) - PRI_TOLERANCE), \
ID, WIDTH_LOWER(WMIN), WIDTH_UPPER(WMAX), \
(PRF2PRI(PMAX) - PRI_TOLERANCE), \
(PRF2PRI(PMIN) * PRF + PRI_TOLERANCE), PRF, PPB * PRF, \
PPB_THRESH(PPB), PRI_TOLERANCE, \
}
Expand Down

0 comments on commit 6858fd9

Please sign in to comment.