removed some debug code - improved detection of damaged ESSIDs
@@ -2575,6 +2575,20 @@ for(c = 0; c < apstaessidcount; c++)
memcpy(zeiger2->essid, zeiger1->essid, zeiger1->essidlen);
apstaessidcountcleaned++;
}
+ else
+ {
+ if(memcmp(zeiger1->mac_sta, zeiger2->mac_sta, 6) != 0)
+ {
+ zeiger2++;
+ zeiger2->status |= zeiger1->status;
+ memcpy(zeiger2->mac_ap, zeiger1->mac_ap, 6);
+ memcpy(zeiger2->mac_sta, zeiger1->mac_sta, 6);
+ zeiger2->essidlen = zeiger1->essidlen;
+ memset(zeiger2->essid, 0, 32);
+ memcpy(zeiger2->essid, zeiger1->essid, zeiger1->essidlen);
+ apstaessidcountcleaned++;
+ }
+ }
}
zeiger1++;
}
@@ -2582,14 +2596,6 @@ for(c = 0; c < apstaessidcount; c++)
free(apstaessidliste);
apstaessidliste = apstaessidlistecleaned;
apstaessidcount = apstaessidcountcleaned;
-
-/*
-zeiger2 = apstaessidlistecleaned;
-for(c = 0; c < apstaessidcountcleaned; c++)
- {
- zeiger2++;
- }
-*/
return;
}
/*===========================================================================*/
