I'm doing the usual exercises with airodump-ng, aireplay-ng etc. When I try to perform a fake authentication to a WEP protected wifi network I get the message quite frequently that I'm sending on channel X but the AP is on channel Y. I have set the wifi device into monitor mode with
ifconfig wlan0 down iwconfig wlan0 mode monitor ifconfig wlan0 up
and then I have tried to set the interface to the correct channel with
ifconfig wlan0 channel Y
but when I execute
iwlist wlan0 frequency
I can see that the device keeps hopping through the different channels. This means that I have to resubmit my attack commands many many times until coincidentally the device is on the correct channel when I'm submitting my command. There must be a way to tell the device to stop hopping but I can't find anything...
Update I didn't say I use an Ubuntu computer. Is it the network manager doing this maybe?