mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
handle deauth correctly
This commit is contained in:
parent
122de4089f
commit
d137ec5117
1 changed files with 2 additions and 0 deletions
|
@ -493,6 +493,7 @@ int handle_network_msg(char* msg)
|
|||
parse_to_clients(data_buf.head, 0, 0);
|
||||
} else if (strncmp(method, "deauth", 5) == 0) {
|
||||
printf("METHOD DEAUTH\n");
|
||||
handle_deauth_req(data_buf.head);
|
||||
/*
|
||||
hostapd_notify_entry entry;
|
||||
parse_to_hostapd_notify(data_buf.head, &entry);
|
||||
|
@ -555,6 +556,7 @@ static int hostapd_notify(struct ubus_context *ctx, struct ubus_object *obj,
|
|||
} else if (strncmp(method, "assoc", 5) == 0) {
|
||||
return handle_assoc_req(msg);
|
||||
} else if (strncmp(method, "deauth", 6) == 0) {
|
||||
send_blob_attr_via_network(msg, "deauth");
|
||||
return handle_deauth_req(msg);
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue