dbus: Emit property changed events when adding/removing BSSes

The supplicant was not emitting property changed events when the BSSs
property changed.

Signed-off-by: Dan Williams <dcbw@redhat.com>
This commit is contained in:
Dan Williams 2010-12-17 15:56:01 +02:00 committed by Jouni Malinen
parent 860fddbb41
commit 1e6288df6b
2 changed files with 7 additions and 0 deletions

View file

@ -691,6 +691,10 @@ void wpas_dbus_signal_prop_changed(struct wpa_supplicant *wpa_s,
wpas_dbus_getter_current_network; wpas_dbus_getter_current_network;
prop = "CurrentNetwork"; prop = "CurrentNetwork";
break; break;
case WPAS_DBUS_PROP_BSSS:
getter = (WPADBusPropertyAccessor) wpas_dbus_getter_bsss;
prop = "BSSs";
break;
default: default:
wpa_printf(MSG_ERROR, "dbus: %s: Unknown Property value %d", wpa_printf(MSG_ERROR, "dbus: %s: Unknown Property value %d",
__func__, property); __func__, property);
@ -1199,6 +1203,7 @@ int wpas_dbus_unregister_bss(struct wpa_supplicant *wpa_s,
} }
wpas_dbus_signal_bss_removed(wpa_s, bss_obj_path); wpas_dbus_signal_bss_removed(wpa_s, bss_obj_path);
wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_BSSS);
return 0; return 0;
} }
@ -1263,6 +1268,7 @@ int wpas_dbus_register_bss(struct wpa_supplicant *wpa_s,
} }
wpas_dbus_signal_bss_added(wpa_s, bss_obj_path); wpas_dbus_signal_bss_added(wpa_s, bss_obj_path);
wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_BSSS);
return 0; return 0;

View file

@ -30,6 +30,7 @@ enum wpas_dbus_prop {
WPAS_DBUS_PROP_STATE, WPAS_DBUS_PROP_STATE,
WPAS_DBUS_PROP_CURRENT_BSS, WPAS_DBUS_PROP_CURRENT_BSS,
WPAS_DBUS_PROP_CURRENT_NETWORK, WPAS_DBUS_PROP_CURRENT_NETWORK,
WPAS_DBUS_PROP_BSSS,
}; };
enum wpas_dbus_bss_prop { enum wpas_dbus_bss_prop {