Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
Fixes BMC#25884
|
|
If the user never registered an agent, agent_sender and agent_path
are NULL. D-Bus does not handle this gracefully, instead it kills
ConnMan. So let's skip the D-Bus part in this case.
connmand[4271]: src/agent.c:connman_agent_driver_unregister() Sending release to (null) path (null) iface net.connman.Agent
process 4271: arguments to dbus_message_new_method_call() were incorrect, assertion "path != NULL" failed in file dbus-message.c line 1198.
This is normally a bug in some application using the D-Bus library.
D-Bus not built with -rdynamic so unable to print a backtrace
connmand[4271]: Aborting (signal 6) [./src/connmand]
connmand[4271]: ++++++++ backtrace ++++++++
connmand[4271]: #0 0x3a9920f500 in /lib64/libpthread.so.0
connmand[4271]: #1 0x3a98e36285 in /lib64/libc.so.6
connmand[4271]: #2 0x3a98e37b9b in /lib64/libc.so.6
connmand[4271]: #3 0x3c7602fff5 in /lib64/libdbus-1.so.3
connmand[4271]: #4 0x3c76026fc1 in /lib64/libdbus-1.so.3
connmand[4271]: #5 0x3c76018aea in /lib64/libdbus-1.so.3
connmand[4271]: #6 0x45b8b1 in connman_agent_driver_unregister() at src/agent.c:426
connmand[4271]: #7 0x457b7c in __connman_service_cleanup() at src/service.c:6756
connmand[4271]: #8 0x43f54f in main() at src/main.c:702
connmand[4271]: #9 0x3a98e2169d in /lib64/libc.so.6
connmand[4271]: +++++++++++++++++++++++++++
|
|
|
|
|
|
Since service is referenced already in the message queue, there is no need
to reference it also in the callback data: this might lead to an over refcount
issue if the queue message is canceled before receiving any answer to it.
(callback's data refcount is still there).
|
|
|
|
Clean up any queued Agent API messages when the agent disappears or
the service is disconnected. Send cancel to the agent on D-Bus
timeout.
|
|
Clean up the queue and cancel the current message at the agent, if
any. Split out the actual cancel message sending as it will be used
separately from the rest of the code.
|
|
|
|
Add functions for queuing Agent API messages and sending the
first one when there is no message processed by the agent.
Handle D-Bus pending call replies and simplify the D-Bus reply
processing by handing the message to the callback function.
|
|
|
|
|
|
This is a necessary rewrite to make it clearer and simpler, before implementing
wpspin type support.
|
|
|
|
This implements the usage of PreviousPassphrase argument as an informational
field type.
|
|
|
|
Handle the change from -EIO to -EINPROGRESS return value in
service.c.
|
|
Handle the change from -EIO to -EINPROGRESS return value in
wispr.c.
|
|
As a result of returning -EINPROGRESS, the code in service.c can be
simplified.
|
|
The D-Bus default timeout is 25 seconds and that is clearly not enough time
to enter a passphrase. Increasing this to 120 seconds now.
|
|
|
|
The pending call was not unreffed.
|
|
|
|
|
|
|
|
|
|
The pending call was not unreffed.
|
|
|
|
|
|
|
|
|
|
Sometimes, the mandatory attribute is used with capital letter and
other times it isn't. This patch fixes this issue by setting it to
lower case to be consistant with agent-doc in wich it is written
using lower cases.
|
|
This check is wrong.
|
|
In case the agent sends wrongly an empty reply.
|
|
|
|
|
|
Implement functions to append 'Name' and 'SSID' fields to Agent API
RequestInput D-Bus method call. Add these fields if the service is
hidden.
|
|
Add a boolean variable to authentication_cb_t callback to explicitely
state when values are returned from RequestInput.
|
|
|
|
|
|
EAP credentials will be queried whenever connecting to an 802.1X network
unless EAP-TLS is used OR if service is provisioned via .config file.
Besides adding Identity field into the API, this patch also removes the
restriction to receive value for only one field per response. Now both
Identity and Passphrase can be received in one call.
|
|
|
|
The __connman_agent_report_error function creates and sends a ReportError
method call to the registered agent. The agent can reply with D-Bus error
org.moblin.connman.Agent.Error.Retry if the same service is to be retried.
|
|
Remove the obsolete __connman_agent_request_passphrase function as the
RequestPassphrase method call has been replaced with RequestInput.
|
|
request_input_passphrase_reply creates and sends an Agent API RequestInput
method call and waits for the method call return. The function expects a
passhphrase_cb_t to be supplied. Only the "Passphrase" dictionary field is
requested by the method call and only the "Passphrase" dictionary field in
the method call return is used.
|
|
|
|
|
|
|
|
|