mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
Fix delete function
This commit is contained in:
parent
3fe77d4ad0
commit
88fef898b4
1 changed files with 3 additions and 8 deletions
|
@ -343,21 +343,16 @@ probe_entry insert_to_array(probe_entry entry, int inc_counter) {
|
|||
entry.counter = 0;
|
||||
probe_entry tmp = probe_array_delete(entry);
|
||||
|
||||
//if (tmp != NULL) {
|
||||
if(mac_is_equal(entry.bssid_addr,tmp.bssid_addr)
|
||||
if(mac_is_equal(entry.bssid_addr,tmp.bssid_addr)
|
||||
&& mac_is_equal(entry.client_addr, tmp.client_addr)){
|
||||
entry.counter = tmp.counter;
|
||||
printf("MAC IS EQUAL EUQAL AND CORRECT!\n");
|
||||
printf("TMP ENTRY IS NOT NULL!!!!!!!!!!!!!!!!!!!!!!\nCounter: %d\n", tmp.counter);
|
||||
}
|
||||
//else
|
||||
// printf("MAC IS NOT EQUAL AND THIS IS INCORRECT!\n");
|
||||
// printf("TMP ENTRY IS NOT NULL!!!!!!!!!!!!!!!!!!!!!!\nCounter: %d\n", tmp->counter);
|
||||
//}
|
||||
}
|
||||
|
||||
if (inc_counter) {
|
||||
|
||||
entry.counter++;
|
||||
//entry.counter = 5;
|
||||
}
|
||||
|
||||
probe_array_insert(entry);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue