diff --git a/lib/features/network/implementations/linux-device/README.md b/lib/features/network/implementations/linux-device/README.md index 27c05a0..4fbcf30 100644 --- a/lib/features/network/implementations/linux-device/README.md +++ b/lib/features/network/implementations/linux-device/README.md @@ -11,4 +11,5 @@ ## Configuration - `WIRED_IF`: the name of the wired ethernet interface on the autokit, that is connected to the DUT - with the intent of sharing the autokit ethernet over this interface -- `WIFI_IF`: the name of the wifi interface on the autokit that will be used to create a wifi access point \ No newline at end of file +- `WIFI_IF`: the name of the wifi interface on the autokit that will be used to create a wifi access point +- `WIFI_AP_CHANNEL`: Some host devices don't like setting up an access point on channel > 11 - in this case, this variable can be used to speificy an integer value between 1 and 11, that the host will then use to set up the access point. If there are no issues, don't set this so networkManager automatically selects the best channel \ No newline at end of file diff --git a/lib/features/network/implementations/linux-device/networkManager.ts b/lib/features/network/implementations/linux-device/networkManager.ts index 28ced3a..511aa21 100644 --- a/lib/features/network/implementations/linux-device/networkManager.ts +++ b/lib/features/network/implementations/linux-device/networkManager.ts @@ -80,6 +80,8 @@ class NetworkManager { '802-11-wireless': { mode: new dbus.Variant('s', 'ap'), ssid: new dbus.Variant('ay', NetworkManager.stringToArrayOfBytes(ssid)), + band: new dbus.Variant('s', 'bg'), + ...(process.env.WIFI_AP_CHANNEL && {channel: new dbus.Variant('u', Number(process.env.WIFI_AP_CHANNEL))}) }, '802-11-wireless-security': { 'key-mgmt': new dbus.Variant('s', 'wpa-psk'),