[PATCH 3/3] hostapd: Use result of l2_packet_send() in hostapd_wpa_auth_send_ether()

Pavel Roskin proski at gnu.org
Sun Aug 7 08:49:24 EDT 2011


If l2_packet_send() succeeds, don't report it as a failure.  It's a
successful fallback.
---

 src/ap/wpa_auth_glue.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/ap/wpa_auth_glue.c b/src/ap/wpa_auth_glue.c
index 0e3cb31..7b60bc7 100644
--- a/src/ap/wpa_auth_glue.c
+++ b/src/ap/wpa_auth_glue.c
@@ -384,7 +384,7 @@ static int hostapd_wpa_auth_send_ether(void *ctx, const u8 *dst, u16 proto,
 	ret = l2_packet_send(hapd->l2, dst, proto, (u8 *) buf,
 			     sizeof(*buf) + data_len);
 	os_free(buf);
-	return -1;
+	return ret;
 }
 
 


More information about the HostAP mailing list