mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +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:
parent
930528e35e
commit
0238ffb8d9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user