3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-10-04 02:18:49 +02:00

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

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