From b279ca2191026b0989ad914fb770bcb7a76a2f26 Mon Sep 17 00:00:00 2001 From: PolynomialDivision Date: Thu, 4 Jan 2018 13:13:19 +0100 Subject: [PATCH] return with WLAN_STATUS_SUCCESS --- src/utils/ubus.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/ubus.c b/src/utils/ubus.c index 95f8cc7..1c2d403 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -9,6 +9,7 @@ #define ETH_ALEN 6 #endif +#define WLAN_STATUS_SUCCESS 0 #define WLAN_STATUS_AP_UNABLE_TO_HANDLE_NEW_STA 17 #include "ubus.h" @@ -385,7 +386,7 @@ static int handle_auth_req(struct blob_attr *msg) { // delay problems... printf("ALLOW AUTH!\n"); - return 0; + return WLAN_STATUS_SUCCESS; } static int handle_assoc_req(struct blob_attr *msg) { @@ -411,7 +412,7 @@ static int handle_probe_req(struct blob_attr *msg) { return WLAN_STATUS_AP_UNABLE_TO_HANDLE_NEW_STA; } //printf("MAC WILL BE ACCEPDTED!!!\n"); - return 0; + return WLAN_STATUS_SUCCESS; } static int handle_deauth_req(struct blob_attr *msg) {