From 002fc2d6322c76924a1e6ab1c1021fccf1e36915 Mon Sep 17 00:00:00 2001 From: Andrew Zaborowski Date: Fri, 18 Jun 2021 09:33:23 +0200 Subject: [PATCH] station: Check if busy in station_get_diagnostics --- src/station.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/station.c b/src/station.c index 5b8b61b4..6876cd41 100644 --- a/src/station.c +++ b/src/station.c @@ -3769,6 +3769,9 @@ static struct l_dbus_message *station_get_diagnostics(struct l_dbus *dbus, struct station *station = user_data; int ret; + if (station->get_station_pending) + return dbus_error_busy(message); + ret = netdev_get_current_station(station->netdev, station_get_diagnostic_cb, station, station_get_diagnostic_destroy);