Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow for configurable wifi access point channel #95

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/features/network/implementations/linux-device/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
- `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
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down