diff mbox series

[v2,4/8] station: emit property changed for ConnectedAccessPoint

Message ID 20240819175151.1310546-4-prestwoj@gmail.com (mailing list archive)
State Accepted, archived
Headers show
Series [v2,1/8] doc: Document station Affinities property | expand

Checks

Context Check Description
tedd_an/pre-ci_am success Success
prestwoj/iwd-ci-gitlint success GitLint

Commit Message

James Prestwood Aug. 19, 2024, 5:51 p.m. UTC
This was missed in a prior patch set. When station is connecting
or disconnecting ConnectedAccessPoint property change should be
emitted.
---
 src/station.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Denis Kenzior Aug. 23, 2024, 4:10 p.m. UTC | #1
Hi James,

On 8/19/24 12:51 PM, James Prestwood wrote:
> This was missed in a prior patch set. When station is connecting
> or disconnecting ConnectedAccessPoint property change should be
> emitted.
> ---
>   src/station.c | 4 ++++
>   1 file changed, 4 insertions(+)

Applied, thanks.

Regards,
-Denis
diff mbox series

Patch

diff --git a/src/station.c b/src/station.c
index 6a28254b..333b0fa1 100644
--- a/src/station.c
+++ b/src/station.c
@@ -1694,6 +1694,8 @@  static void station_enter_state(struct station *station,
 
 		l_dbus_property_changed(dbus, netdev_get_path(station->netdev),
 				IWD_STATION_INTERFACE, "ConnectedNetwork");
+		l_dbus_property_changed(dbus, netdev_get_path(station->netdev),
+				IWD_STATION_INTERFACE, "ConnectedAccessPoint");
 		l_dbus_property_changed(dbus,
 				network_get_path(station->connected_network),
 				IWD_NETWORK_INTERFACE, "Connected");
@@ -1865,6 +1867,8 @@  static void station_reset_connection_state(struct station *station)
 
 	l_dbus_property_changed(dbus, netdev_get_path(station->netdev),
 				IWD_STATION_INTERFACE, "ConnectedNetwork");
+	l_dbus_property_changed(dbus, netdev_get_path(station->netdev),
+				IWD_STATION_INTERFACE, "ConnectedAccessPoint");
 	l_dbus_property_changed(dbus, network_get_path(network),
 				IWD_NETWORK_INTERFACE, "Connected");
 	l_dbus_object_remove_interface(dbus, netdev_get_path(station->netdev),