projects
/
libeap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a325926
)
driver_nl80211: Return correct value
author
Michael Bernhard
<michael.bernhard@bfh.ch>
Sun, 13 Apr 2008 09:40:24 +0000
(12:40 +0300)
committer
Jouni Malinen
<j@w1.fi>
Sun, 13 Apr 2008 09:40:24 +0000
(12:40 +0300)
Signed-off-by: Michael Bernhard <michael.bernhard at bfh.ch>
hostapd/driver_nl80211.c
patch
|
blob
|
history
diff --git
a/hostapd/driver_nl80211.c
b/hostapd/driver_nl80211.c
index
152f615
..
cd2c66a
100644
(file)
--- a/
hostapd/driver_nl80211.c
+++ b/
hostapd/driver_nl80211.c
@@
-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;
}
}