mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
fixed some typos
This commit is contained in:
parent
b639145ce9
commit
2ce96c6ddd
2 changed files with 4 additions and 4 deletions
|
@ -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] = "";
|
||||
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue