wireless.tex 2.8 KB

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