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
1 changed files with 1 additions and 1 deletions

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