strip debugging fprintfs and dead Device.Powered path
Drop the diagnostic logs added during adapter/scan/connect debugging — the wire flow is now well-understood, so the noise isn't worth keeping. Also delete iwd_device_set_powered (and the adapter_obj/adapter_proxy fields it relied on); manager.set_powered goes through Iwd_Adapter directly, so the device-side fallback is unreachable. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a4199e15af
commit
6bc2975f06
4 changed files with 12 additions and 97 deletions
|
|
@ -2,7 +2,6 @@
|
|||
#include "iwd_dbus.h"
|
||||
#include "iwd_props.h"
|
||||
#include "iwd_manager.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
@ -62,17 +61,6 @@ iwd_adapter_free(Iwd_Adapter *a)
|
|||
free(a);
|
||||
}
|
||||
|
||||
static void
|
||||
_on_set_reply(void *data, const Eldbus_Message *msg, Eldbus_Pending *p EINA_UNUSED)
|
||||
{
|
||||
const char *what = data;
|
||||
const char *en, *em;
|
||||
if (eldbus_message_error_get(msg, &en, &em))
|
||||
fprintf(stderr, "e_iwd: %s failed: %s: %s\n", what, en, em);
|
||||
else
|
||||
fprintf(stderr, "e_iwd: %s ok\n", what);
|
||||
}
|
||||
|
||||
void
|
||||
iwd_adapter_set_powered(Iwd_Adapter *a, Eina_Bool on)
|
||||
{
|
||||
|
|
@ -95,8 +83,7 @@ iwd_adapter_set_powered(Iwd_Adapter *a, Eina_Bool on)
|
|||
eldbus_message_iter_basic_append(variant, 'b', v);
|
||||
eldbus_message_iter_container_close(iter, variant);
|
||||
|
||||
eldbus_proxy_send(props, msg, _on_set_reply,
|
||||
on ? "Adapter.Powered=true" : "Adapter.Powered=false", -1);
|
||||
eldbus_proxy_send(props, msg, NULL, NULL, -1);
|
||||
/* Keep the props proxy alive on the adapter so the call isn't canceled. */
|
||||
if (a->_props_proxy_keepalive) eldbus_proxy_unref(a->_props_proxy_keepalive);
|
||||
a->_props_proxy_keepalive = props;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue