mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2025-01-03 10:32:33 +01:00
netdev: Return -ENOTCONN in netdev_get_current_station
This commit is contained in:
parent
654154e721
commit
337f5e062e
@ -4818,6 +4818,9 @@ int netdev_get_current_station(struct netdev *netdev,
|
||||
netdev_get_station_cb_t cb, void *user_data,
|
||||
netdev_destroy_func_t destroy)
|
||||
{
|
||||
if (!netdev->handshake)
|
||||
return -ENOTCONN;
|
||||
|
||||
return netdev_get_station(netdev, netdev->handshake->aa, cb,
|
||||
user_data, destroy);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user