1. If an interface doesn't have a phy (reported as null), it most likely will not support monitor mode.
OK, makes sense. However, further testing revealed that this appears to be a driver issue rather than a hardware problem. I decided to try my adapter on a system running Debian 8 on AMD64 architecture. First thing I discovered was that the
iwconfig wlan0 mode monitor
command worked fine, and wlan0
is reported to be in monitor mode now:
root@debian:~# iwconfig wlan0
wlan0 IEEE 802.11bgn Mode:Monitor Frequency:2.412 GHz Tx-Power=20 dBm
Retry short limit:7 RTS thr=2347 B Fragment thr:off
Power Management:on
Also, I now get the following from aireplay-ng:
root@debian:~# aireplay-ng -9 wlan0
16:36:41 Trying broadcast probe requests...
16:36:42 Injection is working!
16:36:43 Found 1 AP
16:36:43 Trying directed probe requests...
16:36:43 E8:BE:81:92:3F:D0 - channel: 1 - 'Bbox-4A45FA48'
16:36:43 Ping (min/avg/max): 1.898ms/9.510ms/76.142ms Power: -97.00
16:36:43 30/30: 100%
Looking at the modules related to the WiFi adapter, there's quite a big difference between the native Debian AMD64 system and the Raspberry Pi running Raspbian. This is what it looks like on the AMD64 system:
rtl8192cu 66216 0
rtl_usb 17592 1 rtl8192cu
rtlwifi 54719 2 rtl_usb,rtl8192cu
rtl8192c_common 40162 1 rtl8192cu
mac80211 474277 3 rtl_usb,rtlwifi,rtl8192cu
usbcore 195340 8 btusb,uhci_hcd,uvcvideo,rtl_usb,ehci_hcd,ehci_pci,usbhid,rtl8192cu
On the Raspi, there is just one single entry:
8192cu 528485 0
Would I be correct to assume based on these findings that Raspbian and native Debian are using different drivers for the RTL8192CU chipset, with the one on Raspbian obviously being more limited than the Debian one? If this is the case, can I somehow replace the Raspbian driver with the Debian one? I'm sorry if this is a stupid question, but my experience concerning drivers on Linux is rather limited!
2. Your ifconfig command is completely wrong: it's 'ifconfig INTERFACE PARAMETERS' and there is no such parameter as 'mode monitor' (it's for iwconfig).
Yes, you're most definitely right! Sorry for mixing those up, that was completely accidental.
Thanks for any more help!
Robin24