improved rca_scan - make sure correct channel is shown
@@ -5594,7 +5594,7 @@ for(zeiger = scanlist; zeiger < scanlist +SCANLIST_MAX -1; zeiger++)
if(zeiger->count == 0) break;
if(memcmp(zeiger->ap, macfrx->addr2, 6) != 0) continue;
gettags(apinfolen, apinfoptr, &tags);
- if(tags.channel != 0) zeiger->channel = tags.channel;
+ if(tags.channel == channelscanlist[cpa]) zeiger->channel = tags.channel;
zeiger->timestamp = timestamp;
zeiger->count +=1;
zeiger->proberesponse +=1;
@@ -5606,7 +5606,7 @@ for(zeiger = scanlist; zeiger < scanlist +SCANLIST_MAX -1; zeiger++)
}
memset(zeiger, 0, SCANLIST_SIZE);
gettags(apinfolen, apinfoptr, &tags);
-if(tags.channel != 0) zeiger->channel = tags.channel;
+if(tags.channel == channelscanlist[cpa]) zeiger->channel = tags.channel;
zeiger->timestamp = timestamp;
zeiger->count = 1;
zeiger->proberesponse =1;
@@ -5638,7 +5638,8 @@ for(zeiger = scanlist; zeiger < scanlist +SCANLIST_MAX -1; zeiger++)
if(zeiger->count == 0) break;
if(memcmp(zeiger->ap, macfrx->addr2, 6) != 0) continue;
gettags(apinfolen, apinfoptr, &tags);
- if(tags.channel != 0) zeiger->channel = tags.channel;
+ if(tags.channel == channelscanlist[cpa]) zeiger->channel = tags.channel;
+// if(tags.channel != 0) zeiger->channel = tags.channel;
zeiger->timestamp = timestamp;
zeiger->count += 1;
zeiger->beacon += 1;
@@ -5655,7 +5656,8 @@ for(zeiger = scanlist; zeiger < scanlist +SCANLIST_MAX -1; zeiger++)
}
memset(zeiger, 0, SCANLIST_SIZE);
gettags(apinfolen, apinfoptr, &tags);
-if(tags.channel != 0) zeiger->channel = tags.channel;
+if(tags.channel == channelscanlist[cpa]) zeiger->channel = tags.channel;
+//if(tags.channel != 0) zeiger->channel = tags.channel;
zeiger->timestamp = timestamp;
zeiger->count = 1;
zeiger->beacon = 1;
