Jack Fallington
2016-11-08 05:02:28 UTC
I've been having a problem using the ath9k_htc driver and was hoping someone here might have some advice.
I'm trying to connect (on a single channel) to a single AP multiple times simultaneously using one physical wireless adapter. I haven't been able to bring up more than two virtual interfaces so far.
Here's my setup.
Linux Distribution:Â Â Â Kali Linux 2016.2
Kernel Version:Â Â Â 4.6.0Wireless Adapter:Â Â Â TP-Link TL-WN722NAdapter Chipset:Â Â Â Atheros AR9271Driver: ath9k_htc
Firmware version: 1.4.0
Here's what I've tried:
Disable network-manager.    ***@kali:~# /etc/init.d/network-manager stop
    [ ok ] Stopping network-manager (via systemctl): network-manager.service.
Disable hardware encryption, because I've read this adapter won't support virtual interfaces with hardware encryption enabled.
   ***@kali:~# echo "options ath9k_htc nohwcrypt=1" >/etc/modprobe.d/ath9k_htc.conf   ***@kali:~# modprobe ath9k_htc
   ***@kali:~# cat /sys/module/ath9k_htc/parameters/nohwcrypt
    1
Create three virtual interfaces with unique MAC addresses.   ***@kali:~# iw dev wlan0 interface add wlan1 type station
    ***@kali:~# iw dev wlan0 interface add wlan2 type station
    ***@kali:~# iw dev wlan0 interface add wlan3 type station
    ***@kali:~# macchanger -r wlan1
    Current MAC:  [redacted] (unknown)
    Permanent MAC: [redacted] (unknown)
    New MAC:      ea:4c:bc:e0:8b:36 (unknown)
    ***@kali:~# macchanger -r wlan2
    Current MAC:  [redacted] (unknown)
   Permanent MAC: [redacted] (unknown)
    New MAC:      52:3a:02:22:4d:4a (unknown)
    ***@kali:~# macchanger -r wlan3
    Current MAC:  [redacted] (unknown)
    Permanent MAC: [redacted] (unknown)
    New MAC:      da:05:ce:1e:d0:41 (unknown)
Attempt to bring the new virtual interfaces up.   ***@kali:~# ifconfig wlan1 up
    ***@kali:~# ifconfig wlan2 up
    ***@kali:~# ifconfig wlan3 up
    SIOCSIFFLAGS: Device or resource busy
The third interface fails to come up.
On this page, they say, "We have successfully tested more than 200 stations and up to 4 APs per radio/NIC using ath9k and our code trees." They don't mention ath9k_htc, but I was hoping it also would also allow more than two station mode virtual interfaces. Or perhaps it's a firmware or hardware limitation causing my problem.
Is there anything else I can try? If not, is there another chipset and driver combination that would allow me to use at least 20 simultaneous station interfaces?
I'm trying to connect (on a single channel) to a single AP multiple times simultaneously using one physical wireless adapter. I haven't been able to bring up more than two virtual interfaces so far.
Here's my setup.
Linux Distribution:Â Â Â Kali Linux 2016.2
Kernel Version:Â Â Â 4.6.0Wireless Adapter:Â Â Â TP-Link TL-WN722NAdapter Chipset:Â Â Â Atheros AR9271Driver: ath9k_htc
Firmware version: 1.4.0
Here's what I've tried:
Disable network-manager.    ***@kali:~# /etc/init.d/network-manager stop
    [ ok ] Stopping network-manager (via systemctl): network-manager.service.
Disable hardware encryption, because I've read this adapter won't support virtual interfaces with hardware encryption enabled.
   ***@kali:~# echo "options ath9k_htc nohwcrypt=1" >/etc/modprobe.d/ath9k_htc.conf   ***@kali:~# modprobe ath9k_htc
   ***@kali:~# cat /sys/module/ath9k_htc/parameters/nohwcrypt
    1
Create three virtual interfaces with unique MAC addresses.   ***@kali:~# iw dev wlan0 interface add wlan1 type station
    ***@kali:~# iw dev wlan0 interface add wlan2 type station
    ***@kali:~# iw dev wlan0 interface add wlan3 type station
    ***@kali:~# macchanger -r wlan1
    Current MAC:  [redacted] (unknown)
    Permanent MAC: [redacted] (unknown)
    New MAC:      ea:4c:bc:e0:8b:36 (unknown)
    ***@kali:~# macchanger -r wlan2
    Current MAC:  [redacted] (unknown)
   Permanent MAC: [redacted] (unknown)
    New MAC:      52:3a:02:22:4d:4a (unknown)
    ***@kali:~# macchanger -r wlan3
    Current MAC:  [redacted] (unknown)
    Permanent MAC: [redacted] (unknown)
    New MAC:      da:05:ce:1e:d0:41 (unknown)
Attempt to bring the new virtual interfaces up.   ***@kali:~# ifconfig wlan1 up
    ***@kali:~# ifconfig wlan2 up
    ***@kali:~# ifconfig wlan3 up
    SIOCSIFFLAGS: Device or resource busy
The third interface fails to come up.
On this page, they say, "We have successfully tested more than 200 stations and up to 4 APs per radio/NIC using ath9k and our code trees." They don't mention ath9k_htc, but I was hoping it also would also allow more than two station mode virtual interfaces. Or perhaps it's a firmware or hardware limitation causing my problem.
Is there anything else I can try? If not, is there another chipset and driver combination that would allow me to use at least 20 simultaneous station interfaces?