dcwifi: Add Dual Channel Wi-Fi component packages
[feed/packages.git] / net / dcwifi / dcwapd / files / dcwapd.uci
1 ######################################################
2 # Copyright 2018 EWSI
3 #
4 # Licensed to the public under the Apache License 2.0.
5 ######################################################
6 # Dual Channel Wi-Fi AP Daemon configuration
7
8 ###################
9 # General Options #
10 ###################
11 # The "enabled" option controls the run state of the Dual Channel Wi-Fi AP Daemon
12 # 0 - disabled, 1 - enabled
13 # The "tmpdir" option MUST be specified
14 # option tmpdir '<path_of_temp_dir>'
15
16 config general 'general'
17 option enabled 0
18 option tmpdir '/tmp/dcwapd'
19
20 ################
21 # Channel Sets #
22 ################
23 # Sections of type "channel-set" define a Dual Channel Wi-Fi primary channel,
24 # along with it's associated data channels
25 #
26 # The "data_channels" option is a space-delimited list of "datachannel"-typed instance names
27
28 config channel-set 'channelset0'
29 option enabled 0
30 # option enabled 1
31 option ssid 'OpenWrt'
32 option bridge 'br-lan'
33 option data_channels 'datachannel0'
34
35 #config channel-set 'channelset1'
36 # option enabled 0
37 # option ssid 'OpenWrt2'
38 # option bridge 'br-lan'
39 # option data_channels 'datachannel1'
40
41 #################
42 # Data Channels #
43 #################
44 # Sections of type "datachannel" define a Dual Channel Wi-Fi data channel,
45 # along with it's associated bridge and wireless interfaces
46 #
47 # The "interfaces" option is a space-delimited list of wireless interface names
48
49 config datachannel 'datachannel0'
50 option ssid 'DCW0'
51 option bridge 'br-dc0'
52 option interfaces 'wlan2 wlan5'
53
54 #config datachannel 'datachannel1'
55 # option ssid 'DCW1'
56 # option bridge 'br-dc1'
57 # option interfaces 'wlan4'
58
59 ####################
60 # Init Net Options #
61 ####################
62 # The "init_net" section MUST be specified
63 # This section will be used to save and restore the state of the data interfaces
64 config init_net 'init_net'
65
66 ###############
67 # Filter Sets #
68 ###############
69 # Sections of type "filter-set" define a Dual Channel Wi-Fi group of filters,
70 # along with it's associated MAC address and filter rules
71 #
72 # The "TFP_Default" filter set MUST be defined, although it is not required
73 # to have any associated filter rules
74 # The "TFP_Default" filter mac option can have the value of '*', meaning match
75 # all MAC addresses
76 #
77 # The "filters" option is a space-delimited list of "filter"-typed instance names
78
79 config filter-set 'TFP_Default'
80 option mac '*'
81 option filters 'filter0 filter1'
82
83 #config filter-set 'filterset0'
84 # option mac '00:00:BE:EF:F0:0D'
85 # option filters 'filter2'
86
87
88 ################
89 # Filter Rules #
90 ################
91 # Sections of type "filter" define a Dual Channel Wi-Fi filter,
92 # along with it's associated filter parameters
93 #
94 # Any or all of the filter options may be set to '*' to match
95 # all values
96
97 config filter 'filter0'
98 option packet_size '*'
99 option source_ip '*'
100 option source_port '80'
101 option protocol 'tcp'
102 option dest_port '*'
103
104 config filter 'filter1'
105 option packet_size '*'
106 option source_ip '*'
107 option source_port '443'
108 option protocol 'tcp'
109 option dest_port '*'
110
111 #config filter 'filter2'
112 # option packet_size '*'
113 # option source_ip '*'
114 # option source_port '22'
115 # option protocol 'tcp'
116 # option dest_port '*'