Skip to content

Commit e82ce7a

Browse files
authored
Merge pull request #6 from flashnuke/fix/missing_channel
fix/missing_channel_exc
2 parents 9069cb3 + 147f573 commit e82ce7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wifi-deauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _ap_sniff_cb(self, pkt):
9696
band_type = BandType.T_50GHZ if pkt_ch > 14 else BandType.T_24GHZ
9797
if ssid not in self._all_ssids[band_type]:
9898
self._all_ssids[band_type][ssid] = SSID(ssid, ap_mac, band_type)
99-
self._all_ssids[band_type][ssid].add_channel(pkt_ch)
99+
self._all_ssids[band_type][ssid].add_channel(pkt_ch if pkt_ch in self._channel_range else self._current_channel_num)
100100
else:
101101
self._clients_sniff_cb(pkt) # pass forward to find potential clients
102102
except Exception as exc:

0 commit comments

Comments
 (0)