NetworkManager messing up your WiFi that you use for scanning?

cat /etc/udev/rules.d/00-no-wifi-networkmgr.rules
# Interfaces that shouldn't be managed by NetworkManager
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlp40s0f3u1u2", ENV{NM_UNMANAGED}="1"

Then reload udev:

udevadm control --reload-rules && udevadm trigger

Then use iwconfig wlpxxx mode monitor, after unplugging the USB adapter, and plugging it back in. You might need to change “wlp40s0f3u1u2”.

I probably don’t need to use the old commit of the driver, airmon-ng is what freezes my computer, might not now. After disabling NetworkManager for it.

You can find the old commit rtl88xxau-aircrack-dkms-git driver here. That is version r918.73f0a88. If you go up to the AUR folder, you’ll find more AUR packages.

I should be in bed, but can’t sleep, and I was doing some crying about Tonka.

Maybe using iwconfig is unreliable, for setting it to monitor mode. Scanning shows nothing now. I didn’t leave it plugged in overnight.

rmmod 88XXau
modprobe 88XXau rtw_switch_usb_mode:1

That did the trick. Unplugging and plugging back in didn’t solve it. Also, you probably only need airmon-ng if you use doing frame injection. All I’m doing is scanning. Probably don’t need to change the USB mode, just reload the module.

Before removing it, do the rmmod. Maybe it’ll work when I plug it in again.