eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

commit 3607ee0c7ee78b889f59312262466db5d38b03ef
parent 1f84c3b19a59d9070c894570c8692adeb79b9695
Author: Denis Kenzior <denkenz@gmail.com>
Date:   Tue, 17 Dec 2019 16:10:46 -0600

netdev: Allow both -EOPNOTSUPP and -ENOTSUPP

It seems that the kernel uses -EOPNOTSUPP if the change_station
operation is not implemented by the driver.  However, some drivers do
implement change_station and choose to report -ENOTSUPP instead of
-EOPNOTSUPP.

To add to the confusion, EOPNOTSUPP and -ENOTSUPP are the same on some
systems (e.g. Gentoo).  Be paranoid and allow both errors to be ignored
when sending CMD_SET_STATION.

Fixes: 0238ffb8d999 ("netdev: Use -EOPNOTSUPP instead of -ENOTSUPP")

Diffstat:
Msrc/netdev.c | 2+-
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 == -EOPNOTSUPP) + if (err == -EOPNOTSUPP || err == -ENOTSUPP) goto done; if (err < 0) {