Commit graph

10 commits

Author SHA1 Message Date
Vicki Pfau
05031b3ee1 wifi: Cleanup and prepare for tests 2024-04-04 18:08:21 -07:00
Vicki Pfau
35e520712d Realign enums that had UnsupportedFeature to start at 0 2024-04-04 18:08:21 -07:00
Vicki Pfau
36c34fcbda Run cargo fmt 2024-04-04 18:08:21 -07:00
Vicki Pfau
9431ae9474 wifi: Remove get_wifi_backend_from_script
The script does exactly the same thing as what the _from_conf function did
2024-04-04 18:08:21 -07:00
Vicki Pfau
853ce3dd84 systemd: Add new module for interacting with systemd 2024-04-04 18:08:21 -07:00
Vicki Pfau
b0628fc7b9 Add support to get/set WiFi back-end
This change implements the ability to get and set the WiFi back-end,
by leveraging a new script created for that purpose.

The idea is to be able to use 'wpa_supplicant' (which is the default
back-end in NetworkManager upstream) when 'iwd' (the default in
SteamOS) does not work for some reason.

This change interacts with another feature of steamos-manager, which
is to set debug mode for WiFi.  Handling debug mode complicates things
substantially because those methods write config for 'iwd' and restart
the daemons/systemd units, with many interdependencies.

Instead of trying to implement all at once and attempt feature-parity
between back-ends on this aspect from the start, as a first step the
operations are just declared incompatible.  As a result, if
WifiDebugMode=on the back-end cannot be changed, and conversely the
WifiDebugMode cannot be turned on when the back-end is
'wpa_supplicant'.

Co-authored-by: Manuel A. Fernandez Montecelo <mafm@igalia.com>
2024-04-04 18:08:21 -07:00
Vicki Pfau
452690adee Kill UnsupportedFeature 2024-04-04 18:08:21 -07:00
Vicki Pfau
8ae6c98554 process: Make API less fiddly 2024-04-04 18:08:13 -07:00
Vicki Pfau
69e6477053 manager: Implement new API 2024-04-04 18:08:13 -07:00
Vicki Pfau
309f2acc1b wifi: Split out from manager 2024-04-02 18:20:09 -07:00