Skip to content

[PW_SID:1047797] dbus: register interface before acquiring name#486

Open
IWDTestBot wants to merge 11 commits intoworkflowfrom
1047797
Open

[PW_SID:1047797] dbus: register interface before acquiring name#486
IWDTestBot wants to merge 11 commits intoworkflowfrom
1047797

Conversation

@IWDTestBot
Copy link
Owner

If the interface isn't available by the time we acquire the well-known
name, clients can get confused when the expected interfaces are missing
during bus activation.

This code seems backwards to me. Presently, if IWD is not running,
calling any IWD methods will fail:

$ busctl call net.connman.iwd /net/connman/iwd net.connman.iwd.Daemon GetInfo
Call failed: No matching method found

only to succeed immediately after once the bus activation is complete:

$ busctl call net.connman.iwd /net/connman/iwd net.connman.iwd.Daemon GetInfo
a{sv} 3 "NetworkConfigurationEnabled" b false "StateDirectory" s "/var/lib/iwd" "Version" s "3.10"

With this patch, we register IWD methods before acquiring the well-known
name, and the abovve call succeeds on the first try.

src/main.c | 46 +++++++++++++++++++++-------------------------
1 file changed, 21 insertions(+), 25 deletions(-)

@github-actions github-actions bot force-pushed the workflow branch 2 times, most recently from 34cec50 to 720e28a Compare February 10, 2026 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants