wireless.tex 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. The WiFi settings are configured in the file \texttt{/etc/config/wireless}
  2. (currently supported on Broadcom and Atheros). When booting the router for the first time
  3. it should detect your card and create a sample configuration that looks like this:
  4. \paragraph{Sample Broadcom wireless config:}
  5. \begin{Verbatim}
  6. config wifi-device "wl0"
  7. option type "broadcom"
  8. option channel "5"
  9. config wifi-iface
  10. option device "wl0"
  11. option mode "ap"
  12. option ssid "OpenWrt"
  13. option hidden "0"
  14. option encryption "none"
  15. \end{Verbatim}
  16. \paragraph{Sample Atheros wireless config:}
  17. \begin{Verbatim}
  18. config wifi-device "wifi0"
  19. option type "atheros"
  20. option channel "5"
  21. option mode "11g"
  22. config wifi-iface
  23. option device "wifi0"
  24. option mode "ap"
  25. option ssid "OpenWrt"
  26. option hidden "0"
  27. option encryption "none"
  28. \end{Verbatim}
  29. There are two types of config sections in this file. The '\texttt{wifi-device}' refers to
  30. the physical wifi interface and '\texttt{wifi-iface}' configures a virtual interface on top
  31. of that (if supported by the driver).
  32. \paragraph{Options for the \texttt{wifi-device}:}
  33. \begin{itemize}
  34. \item \texttt{type} \\
  35. The driver to use for this interface.
  36. \item \texttt{mode} \\
  37. The frequency band (\texttt{b}, \texttt{g}, \texttt{bg}, \texttt{a})
  38. \item \texttt{country} \\
  39. The country code used to determine the regulatory settings.
  40. \item \texttt{channel} \\
  41. The wifi channel (e.g. 1-14, depending on your country setting).
  42. \item \texttt{maxassoc} \\
  43. Maximum number of associated clients
  44. \end{itemize}
  45. \paragraph{Options for the \texttt{wifi-iface}:}
  46. \begin{itemize}
  47. \item \texttt{mode} \\
  48. Operating mode:
  49. \begin{itemize}
  50. \item \texttt{ap} \\
  51. Access point mode
  52. \item \texttt{sta} \\
  53. Client mode
  54. \item \texttt{adhoc} \\
  55. Ad-Hoc mode
  56. \item \texttt{wds} \\
  57. WDS point-to-point link
  58. \end{itemize}
  59. \item \texttt{network} \\
  60. Selects the interface section from \texttt{/etc/config/network} to be
  61. used with this interface
  62. \item \texttt{encryption} \\
  63. Encryption setting. Accepts the following values:
  64. \begin{itemize}
  65. \item \texttt{psk}, \texttt{psk2} \\
  66. WPA(2) Pre-shared Key
  67. \item \texttt{wpa}, \texttt{wpa2} \\
  68. WPA(2) RADIUS
  69. \end{itemize}
  70. \item \texttt{key} (wpa and psk) \\
  71. Either the WPA key (PSK mode) or the RADIUS shared secret (WPA RADIUS mode)
  72. \item \texttt{server} (wpa) \\
  73. The RADIUS server address
  74. \item \texttt{port} (wpa) \\
  75. The RADIUS server port
  76. \end{itemize}
  77. \paragraph{Limitations:}
  78. Only the following mode combinations are supported:
  79. \begin{itemize}
  80. \item \textbf{Broadcom}: \\
  81. \begin{itemize}
  82. \item 1x \texttt{sta}, 0-3x \texttt{ap}
  83. \item 1-4x \texttt{ap}
  84. \item 1x \texttt{adhoc}
  85. \end{itemize}
  86. WDS links can only be used in pure AP mode and can't use WEP (except when sharing the
  87. settings with the master interface, which is done automatically).
  88. \item \textbf{Atheros}: \\
  89. \begin{itemize}
  90. \item 1x \texttt{sta}, 0-4x \texttt{ap}
  91. \item 1-4x \texttt{ap}
  92. \item 1x \texttt{adhoc}
  93. \end{itemize}
  94. \end{itemize}