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 file. By default '
\texttt{option network lan
}' is
4 commented. This prevents unsecured sharing of the network over the wireless interface.
6 \paragraph{Generic Broadcom wireless config:
}
9 config wifi-device "wl0"
10 option type "broadcom"
19 option encryption "none"
22 \paragraph{Generic Atheros wireless config:
}
25 config wifi-device "wifi0"
36 option encryption "none"
39 \paragraph{Generic multi-radio Atheros wireless conifg:
}
42 config wifi-device wifi0
50 option ssid OpenWrt_private
52 option encryption none
54 config wifi-device wifi1
62 option ssid OpenWrt_public
64 option encryption none
67 There are two types of config sections in this file. The '
\texttt{wifi-device
}' refers to
68 the physical wifi interface and '
\texttt{wifi-iface
}' configures a virtual interface on top
69 of that (if supported by the driver).
71 A full outline of the wireless configuration file with description of each field:
74 config wifi-device wifi device name
75 option type broadcom, atheros
76 option country us, uk, fr, de, etc.
78 option maxassoc
1-
128 (broadcom only)
80 option mode
11b,
11g,
11a,
11bg (atheros only)
83 option network the interface you want wifi to bridge with
84 option device wifi0, wifi1, wifi2, wifiN
85 option mode ap, sta, adhoc, or wds
87 option bssid bssid address
88 option encryption none, wep, psk, psk2, wpa, wpa2
89 option key encryption key
94 option server ip address
100 \paragraph{Options for the
\texttt{wifi-device
}:
}
103 \item \texttt{type
} \\
104 The driver to use for this interface.
106 \item \texttt{country
} \\
107 The country code used to determine the regulatory settings.
109 \item \texttt{channel
} \\
110 The wifi channel (e.g.
1-
14, depending on your country setting).
112 \item \texttt{maxassoc
} \\
113 Optional: Maximum number of associated clients. This feature is supported only on the broadcom chipset.
115 \item \texttt{distance
} \\
116 Optional: Distance between the ap and the furthest client in meters. This feature is supported only on the atheros chipset.
118 \item \texttt{mode
} \\
119 The frequency band (
\texttt{b
},
\texttt{g
},
\texttt{bg
},
\texttt{a
}). This feature is only supported on the atheros chipset.
124 \paragraph{Options for the
\texttt{wifi-iface
}:
}
127 \item \texttt{network
} \\
128 Selects the interface section from
\texttt{/etc/config/network
} to be
129 used with this interface
131 \item \texttt{device
} \\
132 Set the wifi device name.
134 \item \texttt{mode
} \\
141 \item \texttt{sta
} \\
144 \item \texttt{adhoc
} \\
147 \item \texttt{wds
} \\
148 WDS point-to-point link
153 Set the SSID to be used on the wifi device.
156 Set the BSSID address to be used for wds to set the mac address of the other wds unit.
158 \item \texttt{encryption
} \\
159 Encryption setting. Accepts the following values:
164 \item \texttt{psk
},
\texttt{psk2
} \\
165 WPA(
2) Pre-shared Key
167 \item \texttt{wpa
},
\texttt{wpa2
} \\
171 \item \texttt{key, key1, key2, key3, key4
} (wep, wpa and psk) \\
172 WEP key, WPA key (PSK mode) or the RADIUS shared secret (WPA RADIUS mode)
174 \item \texttt{server
} (wpa) \\
175 The RADIUS server ip address
177 \item \texttt{port
} (wpa) \\
178 The RADIUS server port
180 \item \texttt{hidden
} \\
181 0 broadcasts the ssid;
1 disables broadcasting of the ssid
183 \item \texttt{isolate
} \\
184 Optional: Isolation is a mode usually set on hotspots that limits the clients to communicate only with the AP and not with other wireless clients.
185 0 disables ap isolation (default);
1 enables ap isolation.
190 \paragraph{Limitations:
}
192 There are certain limitations when combining modes.
193 Only the following mode combinations are supported:
196 \item \textbf{Broadcom
}: \\
198 \item 1x
\texttt{sta
},
0-
3x
\texttt{ap
}
199 \item 1-
4x
\texttt{ap
}
200 \item 1x
\texttt{adhoc
}
203 WDS links can only be used in pure AP mode and cannot use WEP (except when sharing the
204 settings with the master interface, which is done automatically).
206 \item \textbf{Atheros
}: \\
208 \item 1x
\texttt{sta
},
0-
4x
\texttt{ap
}
209 \item 1-
4x
\texttt{ap
}
210 \item 1x
\texttt{adhoc
}