commit 002fc2d6322c76924a1e6ab1c1021fccf1e36915
parent 653821c52109738c9c44f591cb7c0d2ea44c339e
Author: Andrew Zaborowski <andrew.zaborowski@intel.com>
Date: Fri, 18 Jun 2021 09:33:23 +0200
station: Check if busy in station_get_diagnostics
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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);