This repository was archived by the owner on Apr 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
// defaults
11
11
const AP_SSID = process . env . AP_SSID || `WiFi Repeater` ;
12
12
const AP_PASSWORD = process . env . AP_PASSWORD || '' ;
13
- const AP_CHANNEL = process . env . AP_CHANNEL || 1 ;
13
+ const AP_CHANNEL = Number ( process . env . AP_CHANNEL ) || 1 ;
14
14
const AP_BAND = process . env . AP_PASSWORD || 'bg' ;
15
15
const WIFI_SSID = process . env . WIFI_SSID ;
16
16
const WIFI_PASSWORD = process . env . WIFI_PASSWORD ;
Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ export interface WirelessNetwork {
24
24
iface : string ;
25
25
ssid : string ;
26
26
password ?: string ;
27
- channel : number ;
28
- band : string ;
27
+ channel ? : number ;
28
+ band ? : string ;
29
29
}
30
30
31
31
const nm : string = 'org.freedesktop.NetworkManager' ;
@@ -49,7 +49,7 @@ export const createAccessPoint = async (device: WirelessNetwork): Promise<any> =
49
49
[ '802-11-wireless' , [
50
50
[ 'ssid' , [ 'ay' , stringToArrayOfBytes ( device . ssid ) ] ] ,
51
51
[ 'mode' , [ 's' , 'ap' ] ] ,
52
- [ 'channel' , [ 'u' ] , device . channel ] ,
52
+ [ 'channel' , [ 'u' , device . channel ] ] ,
53
53
[ 'band' , [ 's' , device . band ] ] ,
54
54
] ] ,
55
55
[ 'ipv4' , [
You can’t perform that action at this time.
0 commit comments