Kconfig 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. menuconfig RT_USING_WIFI
  2. bool "Using Wi-Fi framework"
  3. default n
  4. help
  5. Enable the RT-Thread Wi-Fi middleware which manages STA/AP interfaces,
  6. connection profiles, protocol glue, workqueues, and debugging hooks.
  7. if RT_USING_WIFI
  8. config RT_WLAN_DEVICE_STA_NAME
  9. string "The device name for station"
  10. default "wlan0"
  11. help
  12. Logical device name used for the station interface.
  13. config RT_WLAN_DEVICE_AP_NAME
  14. string "The device name for ap"
  15. default "wlan1"
  16. help
  17. Logical device name for the SoftAP interface.
  18. config RT_WLAN_SSID_MAX_LENGTH
  19. int "SSID maximum length"
  20. default 32
  21. help
  22. Upper bound for SSID strings stored by the framework.
  23. config RT_WLAN_PASSWORD_MAX_LENGTH
  24. int "Password maximum length"
  25. default 32
  26. help
  27. Maximum length of passphrases saved in configs.
  28. config RT_WLAN_DEV_EVENT_NUM
  29. int "Driver events maxcount"
  30. default 2
  31. help
  32. Number of event objects reserved for notifying upper layers.
  33. config RT_WLAN_MANAGE_ENABLE
  34. bool "Connection management Enable"
  35. default y
  36. help
  37. Turn on the connection manager (auto reconnect, scanning, CLI).
  38. if RT_WLAN_MANAGE_ENABLE
  39. config RT_WLAN_SCAN_WAIT_MS
  40. int "Set scan timeout time(ms)"
  41. default 10000
  42. help
  43. Timeout for synchronous scan requests in milliseconds.
  44. config RT_WLAN_CONNECT_WAIT_MS
  45. int "Set connect timeout time(ms)"
  46. default 10000
  47. help
  48. Connection attempt timeout.
  49. config RT_WLAN_SCAN_SORT
  50. bool "Automatic sorting of scan results"
  51. default y
  52. help
  53. Sort scan results by RSSI/channel automatically.
  54. config RT_WLAN_MSH_CMD_ENABLE
  55. bool "MSH command Enable"
  56. default y
  57. help
  58. Add msh shell commands (`wifi`, etc.) for management.
  59. config RT_WLAN_JOIN_SCAN_BY_MGNT
  60. bool "Enable wlan join scan"
  61. default y
  62. help
  63. Allow connection manager to trigger scans before joining.
  64. config RT_WLAN_AUTO_CONNECT_ENABLE
  65. bool "Auto connect Enable"
  66. select RT_WLAN_CFG_ENABLE
  67. select RT_WLAN_WORK_THREAD_ENABLE
  68. default y
  69. help
  70. Automatically reconnect using saved profiles when link drops.
  71. if RT_WLAN_AUTO_CONNECT_ENABLE
  72. config AUTO_CONNECTION_PERIOD_MS
  73. int "Auto connect period(ms)"
  74. default 2000
  75. help
  76. Interval between automatic reconnect attempts.
  77. endif
  78. endif
  79. config RT_WLAN_CFG_ENABLE
  80. bool "WiFi information automatically saved Enable"
  81. default y
  82. help
  83. Persist Wi-Fi credentials and settings to storage.
  84. if RT_WLAN_CFG_ENABLE
  85. config RT_WLAN_CFG_INFO_MAX
  86. int "Maximum number of WiFi information automatically saved"
  87. default 3
  88. help
  89. Maximum number of networks stored for auto-connect.
  90. endif
  91. config RT_WLAN_PROT_ENABLE
  92. bool "Transport protocol manage Enable"
  93. default y
  94. help
  95. Allow protocol modules (lwIP, etc.) to register with WLAN core.
  96. if RT_WLAN_PROT_ENABLE
  97. config RT_WLAN_PROT_NAME_LEN
  98. int "Transport protocol name length"
  99. default 8
  100. help
  101. Max length for protocol identifier strings.
  102. config RT_WLAN_PROT_MAX
  103. int "Transport protocol maxcount"
  104. default 2
  105. help
  106. Number of protocol backends that can be registered.
  107. config RT_WLAN_DEFAULT_PROT
  108. string "Default transport protocol"
  109. default "lwip"
  110. help
  111. Name of the protocol backend used when none specified.
  112. config RT_WLAN_PROT_LWIP_ENABLE
  113. bool "LWIP transport protocol Enable"
  114. select RT_USING_LWIP
  115. default y
  116. help
  117. Register lwIP as a transport backend for WLAN sockets.
  118. if RT_WLAN_PROT_LWIP_ENABLE
  119. config RT_WLAN_PROT_LWIP_NAME
  120. string "LWIP transport protocol name"
  121. default "lwip"
  122. help
  123. Name exported for the lwIP backend.
  124. config RT_WLAN_PROT_LWIP_PBUF_FORCE
  125. bool "Forced use of PBUF transmission"
  126. default n
  127. help
  128. Force PBUF-based data path even when zero-copy is possible.
  129. endif
  130. endif
  131. config RT_WLAN_WORK_THREAD_ENABLE
  132. bool "WLAN work queue thread Enable"
  133. default y
  134. help
  135. Spawn the WLAN workqueue thread that handles asynchronous tasks.
  136. if RT_WLAN_WORK_THREAD_ENABLE
  137. config RT_WLAN_WORKQUEUE_THREAD_NAME
  138. string "WLAN work queue thread name"
  139. default "wlan"
  140. help
  141. Name of the workqueue thread.
  142. config RT_WLAN_WORKQUEUE_THREAD_SIZE
  143. int "WLAN work queue thread size"
  144. default 2048
  145. help
  146. Stack size in bytes for the workqueue thread.
  147. config RT_WLAN_WORKQUEUE_THREAD_PRIO
  148. int "WLAN work queue thread priority"
  149. default 15
  150. help
  151. RT-Thread priority of the WLAN workqueue.
  152. endif
  153. menuconfig RT_WLAN_DEBUG
  154. bool "Enable WLAN Debugging Options"
  155. default n
  156. help
  157. Enable fine-grained debug switches for WLAN subsystems.
  158. if RT_WLAN_DEBUG
  159. config RT_WLAN_CMD_DEBUG
  160. bool "Enable Debugging of wlan_cmd.c"
  161. default n
  162. help
  163. Log detailed info from the command module.
  164. config RT_WLAN_MGNT_DEBUG
  165. bool "Enable Debugging of wlan_mgnt.c"
  166. default n
  167. help
  168. Debug connection management state transitions.
  169. config RT_WLAN_DEV_DEBUG
  170. bool "Enable Debugging of wlan_dev.c"
  171. default n
  172. help
  173. Trace driver-level operations.
  174. config RT_WLAN_PROT_DEBUG
  175. bool "Enable Debugging of wlan_prot.c"
  176. default n
  177. help
  178. Dump protocol manager operations.
  179. config RT_WLAN_CFG_DEBUG
  180. bool "Enable Debugging of wlan_cfg.c"
  181. default n
  182. help
  183. Trace configuration load/save.
  184. config RT_WLAN_LWIP_DEBUG
  185. bool "Enable Debugging of wlan_lwip.c"
  186. default n
  187. help
  188. Print lwIP glue logs.
  189. endif
  190. endif