commit ce227e7b94ece84126ecb3e8f19dc6f0c2590591
parent 38e2d4383a10d8ceaa4ed30ae2c226c7710d34e3
Author: Jesse Lentz <jesse@twosheds.org>
Date: Mon, 23 May 2022 02:20:53 -0400
station: Provide SignalLevelAgent update while connecting
When a station enters the "connecting" state, if a SignalLevelAgent is
registered, provide an initial signal level via a "Changed" method call.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/station.c b/src/station.c
@@ -1487,6 +1487,9 @@ static void station_enter_state(struct station *station,
network_get_path(station->connected_network),
IWD_NETWORK_INTERFACE, "Connected");
+ if (station->signal_agent)
+ station_signal_agent_notify(station);
+
periodic_scan_stop(station);
break;
case STATION_STATE_CONNECTED: