Skip to content

Commit b219d5f

Browse files
committed
luci-mod-network: add autoneg and duplex options
Add Auto negotiation and Duplex options to the device settings form. Signed-off-by: sion-111 <s.piotrowski91@gmail.com>
1 parent 9531979 commit b219d5f

File tree

1 file changed

+16
-0
lines changed
  • modules/luci-mod-network/htdocs/luci-static/resources/tools

1 file changed

+16
-0
lines changed

modules/luci-mod-network/htdocs/luci-static/resources/tools/network.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,22 @@ return baseclass.extend({
11411141
o.placeholder = dev ? dev._devstate('qlen') : '';
11421142
o.datatype = 'uinteger';
11431143

1144+
1145+
o = this.replaceOption(s, 'devgeneral', form.ListValue, 'autoneg', _('Auto negotiation'));
1146+
o.value('',_(''));
1147+
o.value('1', _('Enable'));
1148+
o.value('0', _('Disable'));
1149+
o.default = '';
1150+
o.rmempty = true;
1151+
1152+
1153+
o = this.replaceOption(s, 'devgeneral', form.ListValue, 'duplex', _('Duplex'));
1154+
o.value('',_(''));
1155+
o.value('1', _('Full duplex'));
1156+
o.value('0', _('Half duplex'));
1157+
o.default = '';
1158+
o.rmempty = true;
1159+
11441160
/* PSE / PoE options */
11451161
if (hasPSE) {
11461162
o = this.replaceOption(s, 'devpse', form.ListValue, 'pse', _('PoE (C33)'),

0 commit comments

Comments
 (0)