1menuconfig RT_USING_WIFI
2    bool "Using Wi-Fi framework"
3    default n
4
5    if RT_USING_WIFI
6        config RT_WLAN_DEVICE_STA_NAME
7            string "The device name for station"
8            default "wlan0"
9
10        config RT_WLAN_DEVICE_AP_NAME
11            string "The device name for ap"
12            default "wlan1"
13
14        config RT_WLAN_SSID_MAX_LENGTH
15            int "SSID maximum length"
16            default 32
17
18        config RT_WLAN_PASSWORD_MAX_LENGTH
19            int "Password maximum length"
20            default 32
21
22        config RT_WLAN_DEV_EVENT_NUM
23            int "Driver events maxcount"
24            default 2
25
26        config RT_WLAN_MANAGE_ENABLE
27            bool "Connection management Enable"
28            default y
29
30        if RT_WLAN_MANAGE_ENABLE
31            config RT_WLAN_SCAN_WAIT_MS
32                int "Set scan timeout time(ms)"
33                default 10000
34
35            config RT_WLAN_CONNECT_WAIT_MS
36                int "Set connect timeout time(ms)"
37                default 10000
38
39            config RT_WLAN_SCAN_SORT
40                bool "Automatic sorting of scan results"
41                default y
42
43            config RT_WLAN_MSH_CMD_ENABLE
44                bool "MSH command Enable"
45                default y
46
47            config RT_WLAN_JOIN_SCAN_BY_MGNT
48                bool "Enable wlan join scan"
49                default y
50
51            config RT_WLAN_AUTO_CONNECT_ENABLE
52                bool "Auto connect Enable"
53                select RT_WLAN_CFG_ENABLE
54                select RT_WLAN_WORK_THREAD_ENABLE
55                default y
56
57            if RT_WLAN_AUTO_CONNECT_ENABLE
58                config AUTO_CONNECTION_PERIOD_MS
59                    int "Auto connect period(ms)"
60                    default 2000
61            endif
62        endif
63
64        config RT_WLAN_CFG_ENABLE
65            bool "WiFi information automatically saved Enable"
66            default y
67
68        if RT_WLAN_CFG_ENABLE
69            config RT_WLAN_CFG_INFO_MAX
70                int "Maximum number of WiFi information automatically saved"
71                default 3
72        endif
73
74        config RT_WLAN_PROT_ENABLE
75            bool "Transport protocol manage Enable"
76            default y
77
78        if RT_WLAN_PROT_ENABLE
79            config RT_WLAN_PROT_NAME_LEN
80                int "Transport protocol name length"
81                default 8
82
83            config RT_WLAN_PROT_MAX
84                int "Transport protocol maxcount"
85                default 2
86
87            config RT_WLAN_DEFAULT_PROT
88                string "Default transport protocol"
89                default "lwip"
90
91            config RT_WLAN_PROT_LWIP_ENABLE
92                bool "LWIP transport protocol Enable"
93                select RT_USING_LWIP
94                default y
95
96            if RT_WLAN_PROT_LWIP_ENABLE
97                config RT_WLAN_PROT_LWIP_NAME
98                    string "LWIP transport protocol name"
99                    default "lwip"
100
101                config RT_WLAN_PROT_LWIP_PBUF_FORCE
102                    bool "Forced use of PBUF transmission"
103                    default n
104            endif
105        endif
106
107        config RT_WLAN_WORK_THREAD_ENABLE
108            bool "WLAN work queue thread Enable"
109            default y
110
111        if RT_WLAN_WORK_THREAD_ENABLE
112            config RT_WLAN_WORKQUEUE_THREAD_NAME
113                string "WLAN work queue thread name"
114                default "wlan"
115
116            config RT_WLAN_WORKQUEUE_THREAD_SIZE
117                int "WLAN work queue thread size"
118                default 2048
119
120            config RT_WLAN_WORKQUEUE_THREAD_PRIO
121                int "WLAN work queue thread priority"
122                default 15
123        endif
124
125        menuconfig RT_WLAN_DEBUG
126            bool "Enable WLAN Debugging Options"
127            default n
128
129        if RT_WLAN_DEBUG
130            config RT_WLAN_CMD_DEBUG
131                bool "Enable Debugging of wlan_cmd.c"
132                default n
133
134            config RT_WLAN_MGNT_DEBUG
135                bool "Enable Debugging of wlan_mgnt.c"
136                default n
137
138            config RT_WLAN_DEV_DEBUG
139                bool "Enable Debugging of wlan_dev.c"
140                default n
141
142            config RT_WLAN_PROT_DEBUG
143                bool "Enable Debugging of wlan_prot.c"
144                default n
145
146            config RT_WLAN_CFG_DEBUG
147                bool "Enable Debugging of wlan_cfg.c"
148                default n
149
150            config RT_WLAN_LWIP_DEBUG
151                bool "Enable Debugging of wlan_lwip.c"
152                default n
153        endif
154    endif
155