Aireplay-ng Couldn't determine current channel for wlan0

Hi, I have a problem with aireplay-ng deauth attack

this is the error when i try deauth attack:

Waiting for beacon frame (BSSID: XXXX) on channel -1
Couldn’t determine current channel for wlan0, you should either force the operation with --ignore-negative-one or apply a kernel patch

with comad --ignore-negative-one, the attack doesen’t work

can enyone help me?

thanx

I found this on the kali forum. Let me know if this works.

You could kill the NetworkManager process to ‘fix’ the channel -1 error, but I just brought my interface down after turning on my monitor-interface.
Commands:
First, launch monitor-interface:
airmon-ng start

Example:

Code:

root@vlenik:~# airmon-ng start wlan0

Second, bring down the interface:
ifconfig down

Example:

Code:

root@vlenik:~# ifconfig wlan0 down

I have alredy done the comand " airmon-ng check kill " to kill the NetworkManager process, but it can’t fix the problem “channel -1”

I use Alfa awus 1900 external adapter, the problem could be this adapter?

thanx

i prefer a atheros chiptset.
i have this one AWUS036NHA and its working like a charm.

Hi andrea, I think it’s to do with the adaptor as Edwin said. You can google search for adaptors that work in Kali and support monitor mode. There are plenty out there

I got the same problem : i tryed to install my wireless card on 2 virtual machine, i setup one correctly all work and one other not correctly : i got the error " Couldn’t determine current channel for wlan0" and i would like to understand what wrong i’ve do.

So i’m using kali linux for both virtual machine i’ve typed several command for made it work and i don’t remember between the two machine.

And --ignore-negative-one not working because aireplay-ng not using the good channel

So i found the problem but i don’t know how to resolve : the working vm have a package less. But on the other when i install realtek-rtl88xxau-dkms : that install realtek-rtl88xxau-dkms and realtek-rtl8814au-dkms and i think that the problem.

See the diference between my 2vm

VM1 Not working :
root@kali:/home/kali# apt search realtek-rtl
Sorting… Done
Full Text Search… Done
realtek-rtl8188eus-dkms/kali-rolling 5.3.9~git20210206.1e7145f-0kali2 all
Realtek RTL8188EUS driver in DKMS format

realtek-rtl8814au-dkms/kali-rolling,now 5.8.5.1~git20210331.bdf80b5-0kali1 all [installed,automatic]
Realtek RTL8814AU driver in DKMS format

realtek-rtl88xxau-dkms/kali-rolling,now 5.6.4.2~git20210327.c0ce817-0kali2 all [installed]
Realtek RTL88xxAU driver in DKMS format

root@kali:/home/kali# airmon-ng

PHY Interface Driver Chipset

phy0 wlan0 8814au Realtek Semiconductor Corp. RTL8814AU 802.11a/b/g/n/ac

VM2 Working correctly
root@kali:/home/kali# apt search realtek-rtl
Sorting… Done
Full Text Search… Done
realtek-rtl8188eus-dkms/kali-rolling 5.3.9~git20200710-0kali1 all
Realtek RTL8188EUS driver in DKMS format

realtek-rtl88xxau-dkms/kali-rolling,now 5.6.4.2~20200529-0kali1 all [installed]
Realtek RTL88xxAU driver in DKMS format

root@kali:/home/kali# airmon-ng

PHY Interface Driver Chipset

phy0 wlan0 rtl88XXau Realtek Semiconductor Corp. RTL8814AU 802.11a/b/g/n/ac