This will allow you to use your Realtek RTL8188CUS (common wireless chip found in Edimax EDW-7811Un) in monitor mode without recompiling the kernel in Raspbian.
- Check the directory with the RTL8192CU drivers in them by typing
sudo ls /lib/modules/$(uname -r)/kernel/drivers/net/wireless/realtek.
- If it returns with an error or cannot find the driver (and it shouldn't), you will need to install the drivers that I have put on GitHub and follow the guide at this link. https://github.com/TheN00bBuilder/rtl8192drivers
-
Type
sudo modprobe rtl8192cu
to turn on the correct drivers, in case it is using the wrong ones. -
Type the command
ifconfig
to list your wireless adaptors.
- Note which
wlan
the Realtek adaptor is on.
- Type
sudo iw $WLAN interface add mon0 type monitor
(where `$WLAN is the interface from the previous step) to add a monitor mode function to the adaptor.
- Don't type the pahrenthesis.
- Try to start the monitor mode through
airmon-ng
with the commandsudo airmon-ng start (wlan of Realtek adaptor)
.
- If it fails with
Error setting channel: command failed: Device or resource busy (-16)
, then runsudo airmon-ng check kill
and try again.
That's it! Your RTL8188CUS should now work in monitor mode.