Skip to content

Commit 63314b5

Browse files
author
Stefan Kremser
committed
Fixed clientScan bug
1 parent 3ebf2c1 commit 63314b5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

esp8266_deauther/ClientScan.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ void ClientScan::packetSniffer(uint8_t *buf, uint16_t len){
8989

9090
for(int i=0;i<apScan.results;i++){
9191
if(apScan.isSelected(i)){
92-
if(apScan.aps._get(i).compare(from) || apScan.aps._get(i).compare(to)){
93-
int clientNum = -2;
94-
if(apScan.aps._get(i).compare(from)) clientNum = clients.getNum(to);
95-
else clientNum = clients.getNum(from);
92+
if(apScan.aps._get(i).compare(from)){
93+
int clientNum = clientNum = clients.getNum(to);
9694
if(clientNum == -1 && results < maxClientScanResults){
9795
data_getVendor(to._get(0),to._get(1),to._get(2)).toCharArray(vendors[results],9);
9896
results++;

0 commit comments

Comments
 (0)