[solved] can't lock wireless card on a specific channel

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
echo-dualis

[solved] can't lock wireless card on a specific channel

Post by echo-dualis »

Hello i'm trying to inject packets into my 2.4ghz network using the following commands:
first

Code: Select all

ifconfig [card-name] down
iwconfig [card] mode monitor
iwconfig [card] channel 6
ifconfig [card] up
then:

Code: Select all

airodump-ng [card]
or

Code: Select all

airodump-ng --bssid [networkMAC] --channel 6 --write arp-request-rep [card] (to check #data)
third:

Code: Select all

aireplay-ng --fakeauth 0 -a [networkMAC] -h [myMAC] [card]
aireplay-ng --arpreplay -b [networkMAC] -h [myMAC] [card]
-Output: that my card is in channel X and jumps around but access-point is in channel Y which is fixed.
-I tried spamming --fakeauth until card is in the same channel but soon enough it changes channels again so i need to LOCK IT.
-My wireless card is alta. Chipset atheros-ar9271.
-Any advice is appreciated.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
echo-dualis

Re: [solved] can't lock wireless card on a specific channel

Post by echo-dualis »

solution (worked for me):
ifconfig $IFACE down
iwconfig $IFACE mode managed
ifconfig $IFACE up
iwconfig $IFACE channel $@
ifconfig $IFACE down
iwconfig $IFACE mode monitor
ifconfig $IFACE up
Locked

Return to “Networking”