Repository navigation
network: fix iwd+networkd link classification and disconnect state - #4082
Merged
bbedward merged 1 commit intoNov 2, 2026
Merged
Conversation
Member
|
/claude review |
Contributor
Claude reviewNo issues found. |
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.
Description
Fixes three bugs when using the
iwd+networkdbackend:wlan*/wlp*interfaces misclassified as Ethernet: When a wireless interface is created or recreated (e.g. after aniwlwififirmware reset),systemd-networkdcan emit a D-Bus signal beforeudevsetsDEVTYPE=wlan, causingLink.Describeto return"Type": "ether"(ARPHRD_ETHER) on initial enumeration. ChecklooksWirelessName(l.name)inlinkInfo.isWired()andlinkInfo.isWireless()so wireless interface names are never classified as wired.iwddisconnects,Station.ConnectedNetworkis invalidated rather than updated inchanged_propertiesor readable viaGetProperty, leavingWiFiSSIDandWiFiSignalpopulated whileWiFiConnectedisfalse. ClearWiFiSSIDandWiFiSignalwhenStation.Stateis not"connected"inIWDBackend, and gatecurrentWifiSSID/wifiSignalStrengthonwifiConnectedinDMSNetworkService.qml.NetworkDetail.qml, the connectingDSpinnerLoaderinsideleadingdid not setvisible: active, soQQuickLoaderkept its20x20layout footprint insideSettingsRow'sleadingAreaRowafterisConnectingbecamefalse. Setvisible: activeon theLoaders inwifiRow.(AI disclosure: debugged and written with AI assistance, tested locally on Arch Linux / niri with
iwd+systemd-networkd.)Type of change
Related issues
Screenshots / video
Verified locally on niri with
iwd+systemd-networkd:go test ./internal/server/network/...(including newwlan with pre-udev ether typecase inTestLinkInfo_Classify) andmake test-qmlpass.Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warnings