3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 11:52:34 +01:00

netdev: Use -EOPNOTSUPP instead of -ENOTSUPP

The kernel uses -EOPNOTSUPP in the case of change_station operation not
being provided.  On most systems -EOPNOTSUPP is defined to be the same
as -ENOTSUPP, but seemingly not all systems.
This commit is contained in:
Denis Kenzior 2019-12-12 10:16:22 -06:00
parent 930528e35e
commit 0238ffb8d9

View File

@ -1082,7 +1082,7 @@ static void netdev_set_station_cb(struct l_genl_msg *msg, void *user_data)
return;
err = l_genl_msg_get_error(msg);
if (err == -ENOTSUPP)
if (err == -EOPNOTSUPP)
goto done;
if (err < 0) {