Skip to content

Commit

Permalink
Merge pull request #95 from balena-io-hardware/ryan/wifi-channel
Browse files Browse the repository at this point in the history
allow for configurable wifi access point channel
  • Loading branch information
rcooke-warwick authored Aug 7, 2024
2 parents c3f671b + 2dd3f8c commit 8bca180
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit 8bca180

Please sign in to comment.