station: Check if busy in station_get_diagnostics

This commit is contained in:
Andrew Zaborowski 2021-06-18 09:33:23 +02:00 committed by Denis Kenzior
parent 653821c521
commit 002fc2d632
1 changed files with 3 additions and 0 deletions

View File

@ -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);