From 2ce96c6ddde33510480254b5ef97b24a75c403c9 Mon Sep 17 00:00:00 2001 From: Mor Himi Date: Sat, 15 Aug 2020 22:16:59 +0300 Subject: [PATCH] fixed some typos --- src/storage/datastorage.c | 6 +++--- src/utils/ubus.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/storage/datastorage.c b/src/storage/datastorage.c index ae84588..01664b4 100644 --- a/src/storage/datastorage.c +++ b/src/storage/datastorage.c @@ -509,7 +509,7 @@ int better_ap_available(ap *kicking_ap, struct dawn_mac client_mac, char* neighb if (score_to_compare > max_score) { if(neighbor_report == NULL) { - fprintf(stderr,"Neigbor-Report is NULL!\n"); + fprintf(stderr,"Neighbor-Report is NULL! (1)\n"); return 1; // TODO: Should this be -1? } @@ -527,7 +527,7 @@ int better_ap_available(ap *kicking_ap, struct dawn_mac client_mac, char* neighb if (compare_station_count(kicking_ap, candidate_ap, client_mac)) { if (neighbor_report == NULL) { - fprintf(stderr, "Neigbor-Report is NULL!\n"); + fprintf(stderr, "Neighbor-Report is NULL! (2)\n"); return 1; // TODO: Should this be -1? } @@ -567,7 +567,7 @@ int kick_clients(ap* kicking_ap, uint32_t id) { // Seach for BSSID client *j = *client_find_first_bc_entry(kicking_ap->bssid_addr, dawn_mac_null, false); - // Go threw clients + // Go through clients while (j != NULL && mac_is_equal_bb(j->bssid_addr, kicking_ap->bssid_addr)) { char neighbor_report[NEIGHBOR_REPORT_LEN] = ""; diff --git a/src/utils/ubus.c b/src/utils/ubus.c index 3f2b799..5eb219b 100644 --- a/src/utils/ubus.c +++ b/src/utils/ubus.c @@ -270,7 +270,7 @@ static int decide_function(probe_entry *prob_req, int req_type) { return 1; } - // TODO: Bug? This results in copious "Neigbor-Report is NULL" messages! + // TODO: Bug? This results in copious "Neighbor-Report is NULL" messages! // find own probe entry and calculate score ap* this_ap = ap_array_get_ap(prob_req->bssid_addr); if (this_ap != NULL && better_ap_available(this_ap, prob_req->client_addr, NULL)) {