feat: per-interface Wi-Fi scoping for multi-radio systems#375
Merged
cachebag merged 16 commits intodevelopmentfrom Apr 25, 2026
Merged
feat: per-interface Wi-Fi scoping for multi-radio systems#375cachebag merged 16 commits intodevelopmentfrom
cachebag merged 16 commits intodevelopmentfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds per-interface Wi-Fi scoping for multi-radio systems and bumps to 3.0.
Added
WifiDevice,list_wifi_devices(),wifi_device_by_interface()WifiScopevianm.wifi("wlan1")—scan / list_networks / list_access_points / connect / connect_to_bssid / disconnect / set_enabled / forgetall pinned to one radioset_wifi_enabled(interface, bool)for per-radio enable/disable (usesDevice.Autoconnect+Device.Disconnect(), independent of the global wireless killswitch)WifiInterfaceNotFound,NotAWifiDeviceerrorsexamples/multi_wifi.rsBreaking changes
connect,connect_to_bssid,disconnect,scan_networks,list_networkstake aninterface: Option<&str>argument (None= previous behavior)set_wifi_enablednow requires(interface, bool)wifi_enabled(),wifi_hardware_enabled(), no-argset_wifi_enabled(bool)— usewifi_state()/set_wireless_enabled()disconnectnow correctly only deactivates active connections owned by the targeted device (was deactivating every active connection)Migration
nm.connect(ssid, creds)nm.connect(ssid, None, creds)nm.connect_to_bssid(ssid, bssid, creds)nm.connect_to_bssid(ssid, bssid, None, creds)nm.disconnect()nm.disconnect(None)nm.scan_networks()/nm.list_networks()(None)nm.set_wifi_enabled(true)nm.set_wireless_enabled(true)nm.wifi_enabled()/wifi_hardware_enabled()nm.wifi_state()