/*
 * Generated configuration file, do not edit.
 * uiGenerator v2.98a
 * Copyright (C) 2002-2005 Ubicom Inc. <www.ubicom.com>.  All rights reserved.
 */

function wireless_advanced_js_loaded() { return true }

function createDataObjectFromBinaryArray (initial)
{
	if (initial) createDataObject();
	var d = data;
	i = 0;				// global, accessed by the s*() functions
	d.wireless.RTS_threshold=sU(2);
	d.wireless.beacon_period=sU(2);
	d.wireless.burst_time=sU(2);
	d.wireless.dot11d_enabled=sU(1);
	d.wireless.dtim_interval=sU(1);
	d.wireless.force_11n_sslot=sU(1);
	d.wireless.frag_threshold=sU(2);
	d.wireless.shortgi=sU(1);
	d.wireless.tx_chain_mask=sU(1);
	d.wireless.tx_power=sU(1);
	for (var i1=0; i1<6; i1++) {
		d.wireless.wds_mac[i1]=sH(6);
	}
	d.wireless.erp_protection=sU(1);
	d.wireless.pure_n=sU(1);
	d.wireless.qos_enabled=sU(1);
	d.wireless.wds_enabled=sU(1);
	d.wireless.auto_channel=sU(1);
	d.wireless.phy_mode=sU(1);
	d.wireless.aggr_byte_cnt=sU(2);
	d.wireless.aggr_hwq_thresh=sU(2);
	d.wireless.aggr_pkt_cnt=sU(2);
	d.wireless.aggr_timer_freq=sU(2);
	d.wireless.aggr_timer_ticks=sU(2);
	d.wireless.cwm_threshold=sU(1);
	d.wireless.tpc_max_gain=sU(1);
}

function createBinaryArrayFromDataObject()
{
	byte_array = new Array;		// global, accessed by the g*() functions
	var d = data;
	gU(d.wireless.RTS_threshold,2);
	gU(d.wireless.beacon_period,2);
	gU(d.wireless.burst_time,2);
	gU(d.wireless.dot11d_enabled,1);
	gU(d.wireless.dtim_interval,1);
	gU(d.wireless.force_11n_sslot,1);
	gU(d.wireless.frag_threshold,2);
	gU(d.wireless.shortgi,1);
	gU(d.wireless.tx_chain_mask,1);
	gU(d.wireless.tx_power,1);
	for (var i1=0; i1<6; i1++) {
		gH(d.wireless.wds_mac[i1],6);
	}
	gU(d.wireless.erp_protection,1);
	gU(d.wireless.pure_n,1);
	gU(d.wireless.qos_enabled,1);
	gU(d.wireless.wds_enabled,1);
	gU(d.wireless.auto_channel,1);
	gU(d.wireless.phy_mode,1);
	gU(d.wireless.aggr_byte_cnt,2);
	gU(d.wireless.aggr_hwq_thresh,2);
	gU(d.wireless.aggr_pkt_cnt,2);
	gU(d.wireless.aggr_timer_freq,2);
	gU(d.wireless.aggr_timer_ticks,2);
	gU(d.wireless.cwm_threshold,1);
	gU(d.wireless.tpc_max_gain,1);
	return byte_array;
}

function naturalizeDataObject()
{
	var d = data;
	d.wireless.RTS_threshold=naturalize(d.wireless.RTS_threshold);
	d.wireless.beacon_period=naturalize(d.wireless.beacon_period);
	d.wireless.burst_time=naturalize(d.wireless.burst_time);
	d.wireless.dtim_interval=naturalize(d.wireless.dtim_interval);
	d.wireless.frag_threshold=naturalize(d.wireless.frag_threshold);
	d.wireless.tx_chain_mask=naturalize(d.wireless.tx_chain_mask);
	for (var i1=0; i1<6; i1++) {
	}
	d.wireless.aggr_byte_cnt=naturalize(d.wireless.aggr_byte_cnt);
	d.wireless.aggr_hwq_thresh=naturalize(d.wireless.aggr_hwq_thresh);
	d.wireless.aggr_pkt_cnt=naturalize(d.wireless.aggr_pkt_cnt);
	d.wireless.aggr_timer_freq=naturalize(d.wireless.aggr_timer_freq);
	d.wireless.aggr_timer_ticks=naturalize(d.wireless.aggr_timer_ticks);
	d.wireless.cwm_threshold=naturalize(d.wireless.cwm_threshold);
	d.wireless.tpc_max_gain=naturalize(d.wireless.tpc_max_gain);
}
