stryktips
Posts: 9
Joined: Fri Jan 01, 2016 4:58 pm

TL-WN725N hostapd Disassoc problem

Wed Jan 06, 2016 8:58 am

Hi,

I'm able to use my wifi stick to connect to my home wifi, but I need it work wherever I bring my pi, so I've tried to make it act as an AP, using hostapd, but I haven't got that to work unfortunately. I've tried all combinations of drivers and hostapd versions, and some clearly don't work, but even when everything looks fine, and I don't get any error messages, I'm still not able to connect, and the logs show this:

Code: Select all

RTL871X: OnDisassoc(wlan0) reason=8, ta=30:75:12:a1:c8:8a
Currently I'm using a very basic configuration, with only this in my hostapd.conf:

Code: Select all

interface=wlan0
ssid=wifi
channel=10
driver=rtl871xdrv
I've also tried specifying all different kinds of encryption and passphrases, used precompiled hostapd binaries from different sources, built one from source, tried different drivers, even downgraded the kernel and tried a new driver for that kernel, switched to a different dhcp daemon. No matter what, the closest I get to getting it working is being able to see the access point, but after trying to connect to it I get the OnDissasoc message in the logs, and "authentication failure" on the connecting client.

I'm out of ideas now, and I don't know what to do next.

The Pi is a Pi 2 Model B.

stryktips
Posts: 9
Joined: Fri Jan 01, 2016 4:58 pm

Re: TL-WN725N hostapd Disassoc problem

Thu Jan 07, 2016 2:20 pm

No ideas?

Buying a different wifi dongle perhaps? Which one in that case?

stryktips
Posts: 9
Joined: Fri Jan 01, 2016 4:58 pm

Re: TL-WN725N hostapd Disassoc problem

Fri Jan 08, 2016 6:39 pm

Here's some more debug info from hostapd during the actual disassociation:

Code: Select all

Wireless event: cmd=0x8c03 len=20
+rtl871x_get_sta_wpaie, 30:75:12:a1:c8:8a is sta's address
Add randomness: count=1 entropy=0
wlan0: STA 30:75:12:a1:c8:8a IEEE 802.11: associated
STA did not include WPS/RSN/WPA IE in (Re)AssocReq
  New STA
wlan0: STA 30:75:12:a1:c8:8a RADIUS: starting accounting session 56900185-00000000
IEEE 802.1X: Ignore STA - 802.1X not enabled or forced for WPS
Wireless event: cmd=0x8c04 len=20
wlan0: STA 30:75:12:a1:c8:8a IEEE 802.11: disassociated
wlan0: AP-STA-DISCONNECTED 30:75:12:a1:c8:8a
+rtl871x_sta_remove_ops, 30:75:12:a1:c8:8a is sta address removed

stryktips
Posts: 9
Joined: Fri Jan 01, 2016 4:58 pm

Re: TL-WN725N hostapd Disassoc problem

Sat Jan 09, 2016 6:09 pm

Switched to a Edimax EW-7811Un, and the exact same thing happens...

stryktips
Posts: 9
Joined: Fri Jan 01, 2016 4:58 pm

Re: TL-WN725N hostapd Disassoc problem

Sun Jan 10, 2016 6:24 am

Solved it. It was the line "allow-hotplug wlan0" that was missing from the "/etc/network/interfaces" file. After adding that, everything worked fine.

x3me
Posts: 1
Joined: Sun Jan 24, 2016 10:47 am

Re: TL-WN725N hostapd Disassoc problem

Sun Jan 24, 2016 11:12 am

I'm having the same problem even if:
- allow-hotplug wlan0 has always been in my /etc/network/interfaces file
- I use the same wifi dongle (Edimax EW-7811Un)
Can you please share your hostapd.conf and /etc/network/interfaces files?
Maybe they can help me.

As a workaround I have added in cron a bash script that compares every 2 mins "disassociated" occurrences with a counter in which I save the previous result:
counter = cat /var/log/syslog | grep disassociated | wc -l
If the current counter value is greater than the previous one I restart the service, but desperately I'm looking for a solution!

Return to “Troubleshooting”