do not skip empty channels if disable_ap_attacks is activated
@@ -3300,6 +3300,8 @@ while(1)
if(FD_ISSET(fd_gps, &readfds)) process_gps();
else if(FD_ISSET(fd_socket, &readfds)) process_packet();
else
+ {
+ if((attackstatus &DISABLE_AP_ATTACKS) != DISABLE_AP_ATTACKS)
{
cpa++;
if(channelscanlist[cpa] == 0) cpa = 0;
@@ -3308,8 +3310,9 @@ while(1)
errorcount++;
continue;
}
+ send_proberequest_undirected_broadcast();
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;
}
