commit 0238ffb8d9991a680e1aafa45aaa74937baaa218
parent 930528e35e30c53ac3dea450ce95edee3d9f72dc
Author: Denis Kenzior <denkenz@gmail.com>
Date: Thu, 12 Dec 2019 10:16:22 -0600
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/netdev.c b/src/netdev.c
@@ -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) {