9 uci.load('basicstation')
13 render: function(data) {
16 /* Advanced Settings */
17 m = new form.Map('basicstation', _('Advanced Settings'));
19 /* RF Configuration */
20 s = m.section(form.GridSection, 'rfconf', _('RF Configuration'));
23 s.nodescriptions = true;
25 o = s.option(form.ListValue, 'type', _('Type'),
26 _('RF front end type'));
30 o = s.option(form.Flag, 'txEnable', _('Tx enable'),
31 _('Enable transmission capabilities'));
34 o = s.option(form.Value, 'freq', _('Frequency'),
35 _('Frequency in Hz'));
36 o.datatype = 'uinteger';
38 o = s.option(form.Value, 'antennaGain', _('Antenna Gain'),
39 _('Antenna gain in dBi'));
40 o.datatype = 'uinteger';
42 o = s.option(form.Value, 'rssiOffset', _('RSSI Offset'),
43 _('RSSI offset in dBm'));
46 o = s.option(form.ListValue, 'useRssiTcomp', _('RSSI Tcomp'),
47 _('RSSI Tcomp object to be used for this RF configuration'));
48 options = uci.sections('basicstation', 'rssitcomp')
49 for (var i = 0; i < options.length; i++) {
50 var value = options[i]['.name'];
56 s = m.section(form.GridSection, 'rssitcomp', _('RSSI Tcomp'));
59 s.nodescripitons = true;
61 o = s.option(form.Value, 'coeff_a', _('Coeff A'));
64 o = s.option(form.Value, 'coeff_b', _('Coeff B'));
67 o = s.option(form.Value, 'coeff_c', _('Coeff C'));
70 o = s.option(form.Value, 'coeff_d', _('Coeff D'));
73 o = s.option(form.Value, 'coeff_e', _('Coeff E'));
76 /* TX Gain Lookup Table */
77 s = m.section(form.GridSection, 'txlut', _('TX Gain Lookup Table'));
80 s.nodescriptions = true;
82 o = s.option(form.Value, 'rfPower', _('RF Power'),
83 _('RF output power target in dBm'));
84 o.datatype = 'uinteger';
86 o = s.option(form.Flag, 'paGain', _('PA Enable'),
87 _('Power amplifier enabled'));
90 o = s.option(form.Value, 'pwrIdx', _('Power Index'),
91 _('Possible gain settings from 0 (min. gain) to 22 (max. gain)'));
92 o.datatype = 'range(0,22)';
94 o = s.option(form.DynamicList, 'usedBy', _('Used By'),
95 _('RF configurations that use this tx gain object'));
96 options = uci.sections('basicstation', 'rfconf');
97 for (var i = 0; i < options.length; i++) {
98 var value = options[i]['.name'];