rtl8812au icon indicating copy to clipboard operation
rtl8812au copied to clipboard

hostapd doesn't work correctly after put one of rtl8812au device in monitor mode

Open NicholasFalcon opened this issue 5 years ago • 6 comments

I have a problem most likely in the driver rtl8812au version 5.6.4.1. I have 2 AWUS036AC one is used for hostapd v 2.9 the other is put into monitor mode. After reboot OS (debian, ubuntu, kali) hostapd works fine clients can connect. I put second awus036ac in monitor mode the clients can connect, then if I will restart hostapd the client won't be able to connect AP. But in this case 2 AWUS036NHR (rtl8192cu) works fine

NicholasFalcon avatar Oct 10 '19 12:10 NicholasFalcon

@NicholasFalcon

Use branch v5.6.4.2 instead of v5.6.4.1. Also I've just added support for hostapd to the branch. Report back if both the problem is resolved or persistent :+1:

kimocoder avatar Nov 11 '19 18:11 kimocoder

@kimocoder

Hello, I've installed the new driver version (5.6.4.2) in kali linux, downloaded all the dependencies. Downloaded hostapd v 2.9

apt install hostapd

Downloaded dnsmasq v 2.80

apt install dnsmasq

edited configs:

/etc/hostapd/hostapd.conf interface=wlan0 driver=nl80211 ssid=alphaAP hw_mode=g channel=6

/etc/dnsmasq.conf bogus-priv address=/#/192.0.2.1 server=/captive/192.0.2.1 local=/captive/ interface=wlan0 domain=captive dhcp-range=192.0.2.50,192.0.2.250,2h dhcp-option=3,192.0.2.1 dhcp-option=6,192.0.2.1 dhcp-authoritative

/etc/network/interfaces auto wlan0 face wlan0 inet static address 192.0.2.1 netmask 255.255.255.0

after it:

ifup wlan0 service dnsmasq start service hostapd start

all worked fine, but when i put second interface in monitor mode wlan1

ip link set wlan1 up iw dev wlan1 set type monitor ip link set wlan1 up airodump-ng wlan1

and restart hostapd

ifup wlan0 service hostapd stop service hostapd start

ap in wifi list not found hostapd status is not different when the launch is successful and not successful

NicholasFalcon avatar Nov 14 '19 11:11 NicholasFalcon

exactly the same problem, I use more than 2 adapters, one to create another for the monitor, a point is created, but clients cannot connect to it

 create_ap -c 7 wlan7 eth0 TEST7
WARN: Your adapter does not fully support AP virtual interface, enabling --no-virt
Config dir: /tmp/create_ap.wlan7.conf.lLZOCa9G
PID: 5860
Sharing Internet using method: nat
hostapd command-line interface: hostapd_cli -p /tmp/create_ap.wlan7.conf.lLZOCa9G/hostapd_ctrl
Configuration file: /tmp/create_ap.wlan7.conf.lLZOCa9G/hostapd.conf
wlan7: Could not connect to kernel driver
Using interface wlan7 with hwaddr 00:c0:ca:a8:a0:28 and ssid "TEST7"
wlan7: interface state UNINITIALIZED->ENABLED
wlan7: AP-ENABLED

on the phone in debug mode, such a connection error is written NETWORK_SELECTION_DISABLED_ASSOCIATION_REFECTION=1

if you reconnect this adapter, then everything becomes ok. the only excellent thing is this spelling is not written: wlan7: Could not connect to kernel driver

LeeTiK avatar Nov 23 '19 23:11 LeeTiK

pls consider closing the issue, when it's solved by now :)

cedricbambooza avatar May 11 '21 11:05 cedricbambooza

@cedricbambooza pls tell me about configuration you run and it works, I've rechecked and this not working

NicholasFalcon avatar May 11 '21 14:05 NicholasFalcon

Hey, I'm afraid I can't give you the right support on this one. Just wanted to make sure old solved or unrelevant issues don't stay open too long. But this seems relevant and unsolved to you, so maybe someone in the community can help you :)

cedricbambooza avatar May 11 '21 15:05 cedricbambooza