fix function

This commit is contained in:
PolynomialDivision 2018-01-09 16:02:56 +01:00
parent 35d873fd58
commit 649d5d08b0

View file

@ -409,6 +409,11 @@ static int handle_auth_req(struct blob_attr *msg) {
printf("AUTH Entry: ");
print_auth_entry(auth_req);
if(mac_in_maclist(auth_req.client_addr))
{
return WLAN_STATUS_SUCCESS;
}
probe_entry tmp = probe_array_get_entry(auth_req.bssid_addr, auth_req.client_addr);
printf("Entry found\n");
@ -441,6 +446,11 @@ static int handle_assoc_req(struct blob_attr *msg) {
printf("ASSOC Entry: ");
print_auth_entry(auth_req);
if(mac_in_maclist(auth_req.client_addr))
{
return WLAN_STATUS_SUCCESS;
}
probe_entry tmp = probe_array_get_entry(auth_req.bssid_addr, auth_req.client_addr);
printf("Entry found\n");