1menu "Example Configuration"
2
3    choice
4        bool "Mesh Topology"
5        default MESH_TOPO_TREE
6        help
7            Mesh Network Topology.
8
9        config MESH_TOPO_TREE
10            bool "MESH_TOPO_TREE"
11        config MESH_TOPO_CHAIN
12            bool "MESH_TOPO_CHAIN"
13    endchoice
14
15    config MESH_TOPOLOGY
16        int
17        default 0 if MESH_TOPO_TREE
18        default 1 if MESH_TOPO_CHAIN
19        help
20            Mesh Network Topology.
21
22    config MESH_ENABLE_PS
23        bool "Enable mesh PS (power save) function"
24        default y
25        help
26            Enable/Disable Power Save function.
27
28    choice
29        bool "Mesh PS device duty cycle type"
30        depends on MESH_ENABLE_PS
31        default MESH_PS_DEV_DUTY_TYPE_REQUEST
32        help
33            Mesh PS device duty cycle type.
34
35        config MESH_PS_DEV_DUTY_TYPE_REQUEST
36            bool "MESH_PS_DEV_DUTY_TYPE_REQUEST"
37        config MESH_PS_DEV_DUTY_TYPE_DEMAND
38            bool "MESH_PS_DEV_DUTY_TYPE_DEMAND"
39    endchoice
40
41    config MESH_PS_DEV_DUTY_TYPE
42        int
43        depends on MESH_ENABLE_PS
44        default 1 if MESH_PS_DEV_DUTY_TYPE_REQUEST
45        default 4 if MESH_PS_DEV_DUTY_TYPE_DEMAND
46        help
47            Mesh PS device duty cycle type.
48
49    config MESH_PS_DEV_DUTY
50        int "Mesh PS device duty cycle"
51        depends on MESH_ENABLE_PS
52        range 1 100
53        default 10
54        help
55            Mesh PS device duty cycle.
56
57    config MESH_PS_NWK_DUTY
58        int "Mesh PS network duty cycle"
59        depends on MESH_ENABLE_PS
60        range 1 100
61        default 10
62        help
63            Mesh PS network duty cycle.
64
65    config MESH_PS_NWK_DUTY_DURATION
66        int "Mesh PS network duty cycle duration (unit: minutes)"
67        depends on MESH_ENABLE_PS
68        range -1 100
69        default -1
70        help
71            Mesh PS network duty cycle duration.
72
73    choice
74        bool "Mesh PS network duty cycle rule"
75        depends on MESH_ENABLE_PS
76        default MESH_PS_NETWORK_DUTY_APPLIED_ENTIRE
77        help
78            Mesh PS network duty cycle rule.
79
80        config MESH_PS_NETWORK_DUTY_APPLIED_ENTIRE
81            bool "MESH_PS_NETWORK_DUTY_APPLIED_ENTIRE"
82        config MESH_PS_NETWORK_DUTY_APPLIED_UPLINK
83            bool "MESH_PS_NETWORK_DUTY_APPLIED_UPLINK"
84    endchoice
85
86    config MESH_PS_NWK_DUTY_RULE
87        int
88        depends on MESH_ENABLE_PS
89        default 0 if MESH_PS_NETWORK_DUTY_APPLIED_ENTIRE
90        default 1 if MESH_PS_NETWORK_DUTY_APPLIED_UPLINK
91        help
92            Mesh PS network duty cycle rule.
93
94    config MESH_MAX_LAYER
95        int "Mesh Max Layer"
96        range 1 25 if MESH_TOPO_TREE
97        range 1 1000 if MESH_TOPO_CHAIN
98        default 6
99        help
100            Max layer allowed in mesh network.
101
102    config MESH_CHANNEL
103        int "channel"
104        range 0 14
105        default 0
106        help
107            mesh network channel.
108
109    config MESH_ROUTER_SSID
110        string "Router SSID"
111        default "ROUTER_SSID"
112        help
113            Router SSID.
114
115    config MESH_ROUTER_PASSWD
116        string "Router password"
117        default "ROUTER_PASSWD"
118        help
119            Router password.
120
121    choice
122        bool "Mesh AP Authentication Mode"
123        default WIFI_AUTH_WPA2_PSK
124        help
125            Authentication mode.
126
127        config WIFI_AUTH_OPEN
128            bool "WIFI_AUTH_OPEN"
129        config WIFI_AUTH_WPA_PSK
130            bool "WIFI_AUTH_WPA_PSK"
131        config WIFI_AUTH_WPA2_PSK
132            bool "WIFI_AUTH_WPA2_PSK"
133        config WIFI_AUTH_WPA_WPA2_PSK
134            bool "WIFI_AUTH_WPA_WPA2_PSK"
135    endchoice
136
137    config MESH_AP_AUTHMODE
138        int
139        default 0 if WIFI_AUTH_OPEN
140        default 2 if WIFI_AUTH_WPA_PSK
141        default 3 if WIFI_AUTH_WPA2_PSK
142        default 4 if WIFI_AUTH_WPA_WPA2_PSK
143        help
144            Mesh AP authentication mode.
145
146    config MESH_AP_PASSWD
147        string "Mesh AP Password"
148        default "MAP_PASSWD"
149        help
150            Mesh AP password.
151
152    config MESH_AP_CONNECTIONS
153        int "Mesh AP Connections"
154        range 1 10
155        default 6
156        help
157            The number of mesh stations allowed to connect in.
158
159    config MESH_NON_MESH_AP_CONNECTIONS
160        int "Mesh Non Mesh AP Connections"
161        range 0 9
162        default 0
163        help
164            The number of non-mesh stations allowed to connect in.
165
166    config MESH_ROUTE_TABLE_SIZE
167        int "Mesh Routing Table Size"
168        range 1 300
169        default 50
170        help
171            The number of devices over the network(max: 300).
172endmenu
173