Skip to content

Commit

Permalink
ignore bad FCS on option --all
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Sep 6, 2024
1 parent ff3395c commit 1e475f3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions hcxpcapngtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -4746,7 +4746,7 @@ if((rth->it_present & IEEE80211_RADIOTAP_FLAGS) == IEEE80211_RADIOTAP_FLAGS)
if((capptr[pf] & 0x50) == 0x50)
{
fcsbadframecount++;
return false;
if(donotcleanflag == false) return false;
}
pf += 1;
}
Expand Down Expand Up @@ -4797,7 +4797,11 @@ if((rth->it_present & IEEE80211_RADIOTAP_FHSS) == IEEE80211_RADIOTAP_FHSS)
}
if((rth->it_present & IEEE80211_RADIOTAP_DBM_ANTSIGNAL) == IEEE80211_RADIOTAP_DBM_ANTSIGNAL)
{
if(pf > caplen) return false;
if(pf > caplen)
{
if(donotcleanflag == false) return false;
return true;
}
rssi = capptr[pf];
}
return true;
Expand Down

0 comments on commit 1e475f3

Please sign in to comment.