r modes = [
		'', 'Legacy', true,
		'n', 'N', hwmodes.n,
		'ac', 'AC', hwmodes.ac
	];

	var htmodes = {
		'':   [
			'', '-', true
		],
		'n':  [
			'HT20', '20 MHz', true,
			'HT40', '40 MHz', true
		],
		'ac': [
			'VHT20', '20 MHz', true,
			'VHT40', '40 MHz', true,
			'VHT80', '80 MHz', true,
			'VHT160', '160 MHz', true
		]
	};

	var bands = {
		'':   [
			'11g', '2.4 GHz', (channels['11g'].length > 3),
			'11a', '5 GHz', (channels['11a'].length > 3)
		],
		'n':  [
			'11g', '2.4 GHz', (channels['11g']