Lines 377-383
void wpa_supplicant_dbus_notify_scan_results(struct wpa_supplicant *wpa_s)
Link Here
|
377 |
DBusMessage *_signal; |
377 |
DBusMessage *_signal; |
378 |
|
378 |
|
379 |
/* Do nothing if the control interface is not turned on */ |
379 |
/* Do nothing if the control interface is not turned on */ |
380 |
if (iface == NULL) |
380 |
if (iface == NULL || wpa_s->dbus_path == NULL) |
381 |
return; |
381 |
return; |
382 |
|
382 |
|
383 |
_signal = dbus_message_new_signal(wpa_s->dbus_path, |
383 |
_signal = dbus_message_new_signal(wpa_s->dbus_path, |
Lines 414-420
void wpa_supplicant_dbus_notify_state_change(struct wpa_supplicant *wpa_s,
Link Here
|
414 |
if (wpa_s->global == NULL) |
414 |
if (wpa_s->global == NULL) |
415 |
return; |
415 |
return; |
416 |
iface = wpa_s->global->dbus; |
416 |
iface = wpa_s->global->dbus; |
417 |
if (iface == NULL) |
417 |
if (iface == NULL || wpa_s->dbus_path == NULL) |
418 |
return; |
418 |
return; |
419 |
|
419 |
|
420 |
/* Only send signal if state really changed */ |
420 |
/* Only send signal if state really changed */ |
Lines 473-479
void wpa_supplicant_dbus_notify_scanning(struct wpa_supplicant *wpa_s)
Link Here
|
473 |
dbus_bool_t scanning = wpa_s->scanning ? TRUE : FALSE; |
473 |
dbus_bool_t scanning = wpa_s->scanning ? TRUE : FALSE; |
474 |
|
474 |
|
475 |
/* Do nothing if the control interface is not turned on */ |
475 |
/* Do nothing if the control interface is not turned on */ |
476 |
if (iface == NULL) |
476 |
if (iface == NULL || wpa_s->dbus_path == NULL) |
477 |
return; |
477 |
return; |
478 |
|
478 |
|
479 |
_signal = dbus_message_new_signal(wpa_s->dbus_path, |
479 |
_signal = dbus_message_new_signal(wpa_s->dbus_path, |
Lines 508-514
void wpa_supplicant_dbus_notify_wps_cred(struct wpa_supplicant *wpa_s,
Link Here
|
508 |
if (wpa_s->global == NULL) |
508 |
if (wpa_s->global == NULL) |
509 |
return; |
509 |
return; |
510 |
iface = wpa_s->global->dbus; |
510 |
iface = wpa_s->global->dbus; |
511 |
if (iface == NULL) |
511 |
if (iface == NULL || wpa_s->dbus_path == NULL) |
512 |
return; |
512 |
return; |
513 |
|
513 |
|
514 |
_signal = dbus_message_new_signal(wpa_s->dbus_path, |
514 |
_signal = dbus_message_new_signal(wpa_s->dbus_path, |