OpenWrt Forum Archive

Topic: hostapd - deauthenticated due to inactivity

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.


Hi Again,

I am running  Openwrt Backfire 10.03.1-rc4 on a Buffalo WZR-HP-G300NH and I am experiencing wifi drops with an Android phone and a Mac client (the Windows client seems to be not affected so far).

The error in the log is the following one:

hostapd: wlan0: STA 00:26:bb:xx:xx:xx IEEE 802.11: deauthenticated due to inactivity

I am using WPA2 (AES), 802.11n.
I have searched everywhere for a solution but I have only found people complaining about the same behaviour.
Has anyone any experience with this kind of error?


(Last edited by Connor1 on 4 Jan 2011, 19:19)

Wow, I have been experiencing this problem for a while and it seems that I have finally found a solution. This is exactly the same problem some people are experiencing with Android devices.

I had to disable the WMM option for the WiFi and everything so far seems running flawlessly.

To do this in Openwrt 10.03.1-rc4 it is not enough to edit the /etc/config/wireless. I had to manually edit the /lib/wifi/ and put:


and restart the wireless (hostapd).

Hope it helps!


Disabling WMM helped here too. Thanks.

(Last edited by guardian_de on 7 Jan 2011, 23:17)

Does anyone by chance know the drawback of disabling WMM?


I have same problem.I disabled WMM,but it didn't change anything.
Platform is Linksys WRT160NL
Software is OpenWRT Backfire 10.03.1 - rc4.

Any ideas are welcomed

I have exactly the same problem. My platform is x86, I am using an alix system.

Ok, my problem was related to crappy apple updates ... For everybody who has wifi dropping problems with macbook (pro) but not with windows, try to downgrade to 10.6.4 . Apple has with 10.6.5 upgraded the airport firmware which causes in some cases these problems. If anybody is interested how you can only downgrade the firmware, let me now ...


guardian_de wrote:

Does anyone by chance know the drawback of disabling WMM?

AFAICT the WMM (Wireless Multimedia) is needed to use WiFi-N MCS, so the speed should be limited to Wireless-G.

Just to clarify, this is an edit to an existing line (around line 111) in /lib/wifi/





Then run "wifi" to restart wireless.  You should see the new value if you cat the working config file:

# cat /var/run/hostapd-phy0.conf

My Droid works great now.  My OpenWrt is set to 802.11b since I have an older laptop.

(Last edited by danstoner on 3 Jul 2011, 16:58)

To make it even simpler, in RC5 adding an option to etc/config/wireless now works. Under  config 'wifi-iface'  add:
option 'wmm' '0'

Disabling 'N' on the router is not 'SOLVED'!!!!!!!!!!!!!

I still see N rates with WMM disabled. WMM sounds like a QoS technology for prioritizing types of traffic.

(Last edited by swaaye on 26 Aug 2011, 08:19)

Ok let me correct myself. With WMM disabled, 54mbps is the limit for at least some adapters.

Yup. With my 802.11n equipped TI OMAP / TI WLAN Nook Color tablet, I saw > 54mbps connect rates. But with my notebook with Intel 5100 it would only connect at 54mpbs.

(Last edited by swaaye on 1 Sep 2011, 02:55)

I decided to do some testing with my Droid phone and this WZR-HP-G300NH router. I ran a large download for an Android game on the phone and tried to determine which settings made the download proceed the best. I have been having endless disconnects trying to get the 620MB for this program so this is the main motivator I suppose. I rarely download this much to the phone.

OpenWRT - With WPA/WPA2, 802.11b mode is the most stable. g/n modes cause the phone to fail transferring in a minute or so.
DDWRT - Same results.
Buffalo 1.76 - By far the most stable. The download went for 10 minutes and pulled in almost the entire 600MB while connected at 802.11n 65mbps w/ WPA2 AES. It has never been able to do this regardless of settings on OpenWRT or DDWRT.

A rooted Android OS allows you to tweak the tiwlan.ini file. I tried disabling all power save features and WME (aka WMM). This did not alleviate the problems with OpenWRT or DDWRT.

I am wondering if the problems on OpenWRT and DDWRT are exacerbated by a high download rate. I have a 15mbps connection that can spike at 2-4MB/s occasionally. On 802.11b it can't go above around 900KB/s and this was the most stable mode with those firmwares.

Anyway, the Buffalo firmware seems to be by far the most stable firmware when it comes to TI OMAP wifi on the Droid phone.

(Last edited by swaaye on 19 Sep 2011, 02:56)

In final version of Backfire 10.03.1 the line to update is:

"config_get_bool wmm "$vif" wmm 1"

That should be set:

"config_get_bool wmm "$vif" wmm 0"

The discussion might have continued from here.