Changeset 2757

Show
Ignore:
Timestamp:
10/17/07 22:45:47 (1 year ago)
Author:
benoit
Message:

Separate FCC/ETSI radar patterns list. Ignored pulses with width being 0 or 255

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • madwifi/branches/madwifi-dfs/ath/Makefile

    r2570 r2757  
    5555endif 
    5656 
     57# You need to either define DFS_DOMAIN_ETSI or DFS_DOMAIN_FCC 
     58COPTS   += -DDFS_DOMAIN_ETSI 
     59 
    5760include $(TOP)/Makefile.inc 
    5861 
  • madwifi/branches/madwifi-dfs/ath/if_ath_radar.c

    r2730 r2757  
    125125 
    126126static struct radar_pattern_specification radar_patterns[] = { 
     127#ifdef DFS_DOMAIN_ETSI 
    127128        {"ETSI [ 200]", 4900, 5100, AH_TRUE, 20, 3, 4, 10, 4, 8, AH_TRUE}, 
    128129        {"ETSI [ 300]", 3267, 3399, AH_TRUE, 20, 3, 4, 10, 4, 6, AH_TRUE}, 
     
    139140        {"ETSI [3500]", 280, 290, AH_TRUE, 20, 4, 4, 25, 2, 20, AH_TRUE}, 
    140141        {"ETSI [4000]", 245, 255, AH_TRUE, 20, 4, 4, 25, 5, 20, AH_TRUE}, 
     142#endif 
     143#ifdef DFS_DOMAIN_FCC 
    141144        {"FCC [1,1399-1714]", 1399, 1714, AH_TRUE, 10, 5, 10, 18, 4, 6, AH_FALSE}, 
    142145        {"FCC [2,147-235]", 147, 235, AH_TRUE, 10, 8, 10, 29, 6, 12, AH_FALSE}, 
     
    148151        {"FCC [3-4,314-392]", 314, 392, AH_TRUE, 10, 8, 8, 18, 2, 16, AH_FALSE}, 
    149152        {"FCC [3-4,393-471]", 393, 471, AH_TRUE, 10, 8, 8, 18, 2, 16, AH_FALSE} 
     153#endif 
    150154}; 
    151155 
     
    15581562                DEV_NAME(dev), tsf, rssi, width); 
    15591563 
     1564        /* pulses with 0 or 255 width seems to trigger false detection of 
     1565         * radar. we ignored it then. */ 
     1566 
     1567        if (width==0 || width==255) { 
     1568                /* ignored */ 
     1569                return ; 
     1570        } 
     1571 
    15601572        /* check if the new radar pulse is after the last one recorded, or 
    15611573         * else, we flush the history */