driver_nl80211: Return correct value

Signed-off-by: Michael Bernhard <michael.bernhard at bfh.ch>
This commit is contained in:
Michael Bernhard 2008-04-13 12:40:24 +03:00 committed by Jouni Malinen
parent a325926a9c
commit f4a5a7468d

View file

@ -220,7 +220,7 @@ static int i802_set_encryption(const char *iface, void *priv, const char *alg,
if (nl_send_auto_complete(drv->nl_handle, msg) < 0 ||
(err = nl_wait_for_ack(drv->nl_handle)) < 0) {
if (err != -ENOENT) {
err = 0;
ret = 0;
goto out;
}
}
@ -249,7 +249,7 @@ static int i802_set_encryption(const char *iface, void *priv, const char *alg,
if (nl_send_auto_complete(drv->nl_handle, msg) < 0 ||
(err = nl_wait_for_ack(drv->nl_handle)) < 0) {
if (err != -ENOENT) {
err = 0;
ret = 0;
goto out;
}
}