Skip to content

Commit

Permalink
Network: Fix bug where 2.4GHz networks are forced for infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed Jun 12, 2020
1 parent eaa1ffd commit de8d6e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/networkManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function addConnection(conNameStr, conType, conAdapter, conSettings, callback) {
if (conType === "wifi") {
exec('nmcli connection add type ' + conType + " ifname " + conAdapter +
" con-name " + conNameStr + " ssid " + conSettings.ssid.value + " 802-11-wireless.mode " +
conSettings.mode.value + " 802-11-wireless.band " + conSettings.band.value +
conSettings.mode.value + (conSettings.band === {} ? (' 802-11-wireless.band ' + conSettings.band.value) : '') +
" ipv4.method " + conSettings.ipaddresstype.value + " connection.autoconnect no " + " && " +
"nmcli -g connection.uuid con show " + conNameStr, (error, stdout, stderr) => {
if (stderr) {
Expand Down
2 changes: 1 addition & 1 deletion src/networkconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ class NetworkConfig extends basePage {
this.setState({ showModal: false});
var nm = this.state.netConnectionFilteredSelected.label;
this.setState({netConnectionFilteredSelected: {value: 'new', label: nm, type: this.state.netDeviceSelected.type, state: ""},
curSettings: {mode: {value: "infrastructure"}, ipaddresstype: {value: "auto"}, band: {value: "bg"}, ssid: {value: ""}, ipaddress: {value: ""}, subnet: {value: ""}, wpaType: {value: "wpa-psk"}, password: {value: ""}, attachedIface: {value: '""'}}});
curSettings: {mode: {value: "infrastructure"}, ipaddresstype: {value: "auto"}, band: {value: ""}, ssid: {value: ""}, ipaddress: {value: ""}, subnet: {value: ""}, wpaType: {value: "wpa-psk"}, password: {value: ""}, attachedIface: {value: '""'}}});
}

renderContent() {
Expand Down

0 comments on commit de8d6e4

Please sign in to comment.