kimocoder / realtek_rtwifi

Realtek RTL8xxxU
https://www.aircrack-ng.org
68 stars 14 forks source link

No Packet Reception after Interface is put down the first time until Packet is injected/transmitted #28

Open n0w1re opened 2 years ago

n0w1re commented 2 years ago

Interface: TP-LINK TL-WN722N v3 (RTL8188EUS, 2357:010c) Kernel: 5.11.0-42, 5.4.83 rtwifi: https://github.com/kimocoder/realtek_rtwifi/commit/70f3270baf2fd3a0429e77bbb75c0d1402a27532 with fixes to allow compilation

  1. plug in interface (wlan0)
  2. airodump-ng wlan0 -> networks listed, rx works
  3. ip link set wlan0 down
  4. ip link set wlan0 up
  5. airodump-ng wlan0 -> no networks shown, nothing rx'd
  6. send injected packets, e.g. hcxdumptool --do_rcascan -i wlan0 -> networks listed, positive injection rate
  7. after a CTRL-C hcxdumptool exits and puts interface down: airodump-ng wlan0 -> no networks shown, nothing rx'd
  8. hcxdumptool --do_rcascan -i wlan0 but ended by killall -9 hcxdumptool (interface not put down)
  9. airodump-ng wlan0 -> networks listed, rx works

Cross-check by running hcxdumptool --do_rcascan -i wlan0 --silent that doesn't send any packet and shows no reception. Probably at 'interface up' something in the RX path is not activated again, that is when packets are sent.