skip empty channels
@@ -3301,6 +3301,15 @@ while(1)
else if(FD_ISSET(fd_socket, &readfds)) process_packet();
else
{
+ cpa++;
+ if(channelscanlist[cpa] == 0) cpa = 0;
+ if(set_channel() == false)
+ {
+ errorcount++;
+ continue;
+ }
+ if(beaconactiveflag == true) send_beacon_aplist();
+ if((attackstatus &DISABLE_AP_ATTACKS) != DISABLE_AP_ATTACKS) send_proberequest_undirected_broadcast();
tvfd.tv_sec = 1;
tvfd.tv_usec = 0;
}
@@ -3548,6 +3557,7 @@ while(1)
errorcount++;
continue;
}
+ if((attackstatus &DISABLE_AP_ATTACKS) != DISABLE_AP_ATTACKS) send_proberequest_undirected_broadcast();
tvfd.tv_sec = 0;
tvfd.tv_usec = 100000;
}
