utils/storage: improve descriptions

Add messages that help users understand what PROBE and BEACON messages
are being used.
Remove a few things that are no longer needed: #includes, etc

[cleanup commit message]
Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
Ian Clowes 2022-01-31 11:27:53 +00:00 committed by Nick Hainke
parent 39d7e838ae
commit 4a88222722
4 changed files with 58 additions and 43 deletions

View file

@ -224,11 +224,10 @@ probe_entry *parse_to_probe_req(struct blob_attr* msg) {
int handle_deauth_req(struct blob_attr* msg) {
dawnlog_debug_func("Entering...");
hostapd_notify_entry notify_req;
parse_to_hostapd_notify(msg, &notify_req);
dawnlog_debug_func("Entering...");
dawn_mutex_lock(&client_array_mutex);
client_array_delete_bc(notify_req.bssid_addr, notify_req.client_addr);
@ -300,10 +299,18 @@ int handle_network_msg(char* msg) {
if (entry != NULL) {
if (entry != insert_to_probe_array(entry, false, true, false, time(0))) // use 802.11k values
{
dawnlog_info("Remote PROBE updated client / BSSID = " MACSTR " / " MACSTR " \n",
MAC2STR(entry->client_addr.u8), MAC2STR(entry->bssid_addr.u8));
// insert found an existing entry, rather than linking in our new one
dawn_free(entry);
entry = NULL;
}
else
{
dawnlog_info("Remote PROBE is for new client / BSSID = " MACSTR " / " MACSTR " \n",
MAC2STR(entry->client_addr.u8), MAC2STR(entry->bssid_addr.u8));
}
}
}
else if (strncmp(method, "clients", 5) == 0) {