<%+cbi/valueheader%>

<script type="text/javascript">//<![CDATA[
	var freqlist = <%= luci.http.write_json(self.freqlist) %>;
	var hwmodes  = <%= luci.http.write_json(self.hwmodes) %>;

	var channels = {
		'11g': [
			'auto', 'auto', true
		],
		'11a': [
			'auto', 'auto', true
		]
	};

	for (var i = 0; i < freqlist.length; i++)
		channels[(freqlist[i].mhz > 2484) ? '11a' : '11g'].push(
			freqlist[i].channel,
			'%d (%d MHz)'.format(freqlist[i].channel, freqlist[i].mhz),
			!freqlist[i].restricted
		);

	va