looks like some APs do not transmit channel information - detect them, now
@@ -6211,6 +6211,11 @@ for(zeiger = scanlist; zeiger < scanlist +SCANLIST_MAX -1; zeiger++)
zeiger->frequency = ptrfscanlist->frequency;
zeiger->channel = tags.channel;
}
+ else if(tags.channel == 0)
+ {
+ zeiger->frequency = ptrfscanlist->frequency;
+ zeiger->channel = ptrfscanlist->channel;
+ }
zeiger->timestamp = timestamp;
zeiger->count +=1;
zeiger->proberesponse +=1;
@@ -6231,6 +6236,11 @@ if(tags.channel == ptrfscanlist->channel)
zeiger->frequency = ptrfscanlist->frequency;
zeiger->channel = tags.channel;
}
+else if(tags.channel == 0)
+ {
+ zeiger->frequency = ptrfscanlist->frequency;
+ zeiger->channel = ptrfscanlist->channel;
+ }
zeiger->timestamp = timestamp;
zeiger->count = 1;
zeiger->proberesponse =1;
@@ -6271,6 +6281,11 @@ for(zeiger = scanlist; zeiger < scanlist +SCANLIST_MAX -1; zeiger++)
zeiger->frequency = ptrfscanlist->frequency;
zeiger->channel = tags.channel;
}
+ else if(tags.channel == 0)
+ {
+ zeiger->frequency = ptrfscanlist->frequency;
+ zeiger->channel = ptrfscanlist->channel;
+ }
zeiger->timestamp = timestamp;
zeiger->count += 1;
zeiger->beacon += 1;
@@ -6292,6 +6307,11 @@ if(tags.channel == ptrfscanlist->channel)
zeiger->frequency = ptrfscanlist->frequency;
zeiger->channel = tags.channel;
}
+else if(tags.channel == 0)
+ {
+ zeiger->frequency = ptrfscanlist->frequency;
+ zeiger->channel = ptrfscanlist->channel;
+ }
zeiger->timestamp = timestamp;
zeiger->count = 1;
zeiger->beacon = 1;
