sample: eliminate clever code to determine which proc file is accessed
[madwifi/.git] / README.dfs
1 2007-10-11 Benoit PAPILLAULT <benoit.papillault@free.fr>
2
3 Conformance testing to the following standards:
4 * ETSI 301 893 v1.4.1 (dated 2007-07)
5 * FCC
6 * IEEE 802.11h-2003 (dated 2003-10-14)
7
8 ETSI and FCC defines the regulation constraints and defines several roles :
9 * "master"
10 * "slave without radar detection"
11 * "slave with radar detection"
12
13 Frequencies & channels where DFS is applicable:
14 * ETSI : 5250-5350MHz , 5470-5725MHz
15 * IEEE 802.11 center frequencies : 
16   5260, 5280, 5300, 5320
17   5500, 5520, 5540, 5560, 5580, 5600, 5620, 5640, 5660, 5680, 5700
18 * IEEE 802.11 channels :
19     52,   56,   60,   64
20    100,  104,  108,  112,  116,  120,  124,  128,  132,  136,  140
21
22 Simulating a radar pulse:
23 echo "<tsf> <rssi> <width>" > /proc/sys/dev/wifi0/radar_pulse
24
25 Simulating a radar detected event:
26 iwpriv wlan0 doth_radar
27
28 == Notes on DFS in various modes ==
29
30 A VAP interface can be used in several modes:
31 * IEEE80211_M_STA "sta"         : DFS is implemented as "slave"
32 * IEEE80211_M_IBSS "adhoc"      : DFS is implemented as "master"
33 * IEEE80211_M_AHDEMO "ahdemo"   : DFS is implemented as "master"
34 * IEEE80211_M_HOSTAP "ap"       : DFS is implemented as "master"
35 * IEEE80211_M_MONITOR "monitor" : DFS is not implemented
36 * IEEE80211_M_WDS "wds"         : DFS is implemented as "master"
37
38 == Implementation notes ==
39
40 sc->sc_curchan.privFlags & CHANNEL_DFS is set if ETSI/FCC compliance is
41 required by regulation. It does not mean that 802.11h is required. This flag
42 is automatically adjusted by ath_radar_correct_dfs_flags() according to the
43 regulation for the specified frequency.
44
45 ic->ic_flags & IEEE80211_F_DOTH is set if IEEE 802.11h is required. It matches
46 dot11SpectrumManagementRequired as described in IEEE 802.11h. Default value is
47 1 and can be changed at anytime by the user through iwpriv.
48
49 ETSI/FCC mechanisms (Channel Availability Check, In-Service Monitoring, Channel
50 Shutdown, Non-Occupancy Period) and IEEE 802.11h magnums (Selecting and
51 advertising a new channel, ...) are implemented ONLY if both flags are set.
52