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:
5 \paragraph{Sample Broadcom wireless config:
}
8 config wifi-device "wl0"
17 option encryption "none"
20 \paragraph{Sample Atheros wireless config:
}
23 config wifi-device "wifi0"
33 option encryption "none"
36 There are two types of config sections in this file. The '
\texttt{wifi-device
}' refers to
37 the physical wifi interface and '
\texttt{wifi-iface
}' configures a virtual interface on top
38 of that (if supported by the driver).
40 \paragraph{Options for the
\texttt{wifi-device
}:
}
43 \item \texttt{type
} \\
44 The driver to use for this interface.
46 \item \texttt{mode
} \\
47 The frequency band (
\texttt{b
},
\texttt{g
},
\texttt{bg
},
\texttt{a
})
49 \item \texttt{country
} \\
50 The country code used to determine the regulatory settings.
52 \item \texttt{channel
} \\
53 The wifi channel (e.g.
1-
14, depending on your country setting).
55 \item \texttt{maxassoc
} \\
56 Maximum number of associated clients
60 \paragraph{Options for the
\texttt{wifi-iface
}:
}
63 \item \texttt{mode
} \\
73 \item \texttt{adhoc
} \\
77 WDS point-to-point link
81 \item \texttt{network
} \\
82 Selects the interface section from
\texttt{/etc/config/network
} to be
83 used with this interface
85 \item \texttt{encryption
} \\
86 Encryption setting. Accepts the following values:
89 \item \texttt{psk
},
\texttt{psk2
} \\
92 \item \texttt{wpa
},
\texttt{wpa2
} \\
97 \item \texttt{key
} (wpa and psk) \\
98 Either the WPA key (PSK mode) or the RADIUS shared secret (WPA RADIUS mode)
100 \item \texttt{server
} (wpa) \\
101 The RADIUS server address
103 \item \texttt{port
} (wpa) \\
104 The RADIUS server port
108 \paragraph{Limitations:
}
110 Only the following mode combinations are supported:
113 \item \textbf{Broadcom
}: \\
115 \item 1x
\texttt{sta
},
0-
3x
\texttt{ap
}
116 \item 1-
4x
\texttt{ap
}
117 \item 1x
\texttt{adhoc
}
120 WDS links can only be used in pure AP mode and can't use WEP (except when sharing the
121 settings with the master interface, which is done automatically).
123 \item \textbf{Atheros
}: \\
125 \item 1x
\texttt{sta
},
0-
4x
\texttt{ap
}
126 \item 1-
4x
\texttt{ap
}
127 \item 1x
\texttt{adhoc
}