Disconnected clients from a running hostapd on a bridged interface
Simon Morgenthaler
s.morgenthaler
Wed Oct 5 06:55:22 PDT 2011
Hi hostapd list
I've got some issues with disconnected clients from a running hostapd (even
with the latest git version) on a bridged interface.
My scenario is as follows: I run hostapd on a meshnode, configured with two
interfaces, wlan0 and mesh0, bridged with br0.
Hostapd runs on wlan0 and accepts connections from 802.11g clients like
notebooks and smartphones. Mesh0 is the interface that connects multiple
meshnodes to a mesh network, using 802.11s as routing protocol.
The bridge interface connects the clients (11g) with the mesh network (11s) or
other clients connected to the mesh network.
The issue:
All clients can connect to the hostapd (wlan0), but some of them get
disconnected after a few seconds.
There is no issue with a newer ubuntu and an older kubuntu notebook. The
connection is stable. Seems to work also with a Windows Notebook.
The android smarktphone (Android 2.2) loses the connection after about 50
seconds. iPhone and MAC notebook gets disconnected after more or less 6
seconds.
There is no issue when there is no bridge interface configured and hostapd is
running directly on wlan0.
So, it seems that there is something wrong with and involved bridge interface.
I use a openmesh om1p meshnode, having an ar2315 SoC and a 2.6.37.6 kernel
with compat-wireless-2011-07-24 and ath5k, mac80211, cfg80211
My hostapd.conf looks as follows:
interface=wlan0
bridge=br0
driver=nl80211
ssid=uavwlan
hw_mode=g
channel=1
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ignore_broadcast_ssid=0
dump_file=/root/hostapd.dump
logger_syslog=-1
logger_syslog_level=0
logger_stdout=-1
logger_stdout_level=0
auth_algs=1
wmm_enabled=0
wpa=0
(I tried also eapol_version=1)
The output (with hostapd -d) after a connection and disconnection with the
android smartphone looks like that:
mgmt::auth
authentication: STA=38:e7:d8:xx:xx:xx auth_alg=0 auth_transaction=1
status_code=0 wep=0
New STA
wlan0: STA 38:e7:d8:xx:xx:xx IEEE 802.11: authentication OK (open system)
wlan0: STA 38:e7:d8:xx:xx:xx MLME: MLME-
AUTHENTICATE.indication(38:e7:d8:xx:xx:xx, OPEN_SYSTEM)
wlan0: STA 38:e7:d8:xx:xx:xx MLME: MLME-DELETEKEYS.request(38:e7:d8:xx:xx:xx)
authentication reply: STA=38:e7:d8:xx:xx:xx auth_alg=0 auth_transaction=2
resp=0 (IE len=0)
mgmt::auth cb
wlan0: STA 38:e7:d8:xx:xx:xx IEEE 802.11: authenticated
mgmt::auth
authentication: STA=38:e7:d8:xx:xx:xx auth_alg=0 auth_transaction=1
status_code=0 wep=0
wlan0: STA 38:e7:d8:xx:xx:xx IEEE 802.11: authentication OK (open system)
wlan0: STA 38:e7:d8:xx:xx:xx MLME: MLME-
AUTHENTICATE.indication(38:e7:d8:xx:xx:xx, OPEN_SYSTEM)
wlan0: STA 38:e7:d8:xx:xx:xx MLME: MLME-DELETEKEYS.request(38:e7:d8:xx:xx:xx)
authentication reply: STA=38:e7:d8:xx:xx:xx auth_alg=0 auth_transaction=2
resp=0 (IE len=0)
mgmt::auth cb
wlan0: STA 38:e7:d8:xx:xx:xx IEEE 802.11: authenticated
mgmt::assoc_req
association request: STA=38:e7:d8:xx:xx:xx capab_info=0x421 listen_interval=10
new AID 1
wlan0: STA 38:e7:d8:xx:xx:xx IEEE 802.11: association OK (aid 1)
mgmt::assoc_resp cb
wlan0: STA 38:e7:d8:xx:xx:xx IEEE 802.11: associated (aid 1)
wlan0: AP-STA-CONNECTED 38:e7:d8:xx:xx:xx
wlan0: STA 38:e7:d8:xx:xx:xx MLME: MLME-
ASSOCIATE.indication(38:e7:d8:xx:xx:xx)
wlan0: STA 38:e7:d8:xx:xx:xx MLME: MLME-DELETEKEYS.request(38:e7:d8:xx:xx:xx)
wlan0: STA 38:e7:d8:xx:xx:xx RADIUS: starting accounting session
000034EE-00000000
IEEE 802.1X: Ignore STA - 802.1X not enabled or forced for WPS
nl80211: Event message available
nl80211: New station 38:e7:d8:xx:xx:xx
mgmt::disassoc
disassocation: STA=38:e7:d8:xx:xx:xx reason_code=8
wlan0: AP-STA-DISCONNECTED 38:e7:d8:xx:xx:xx
wlan0: STA 38:e7:d8:xx:xx:xx IEEE 802.11: disassociated
wlan0: STA 38:e7:d8:xx:xx:xx MLME: MLME-
DISASSOCIATE.indication(38:e7:d8:xx:xx:xx, 8)
wlan0: STA 38:e7:d8:xx:xx:xx MLME: MLME-DELETEKEYS.request(38:e7:d8:xx:xx:xx)
nl80211: Event message available
nl80211: Delete station 38:e7:d8:xx:xx:xx
Sending deauthentication info to STA 38:e7:d8:xx:xx:xx
wlan0: STA 38:e7:d8:xx:xx:xx IEEE 802.11: deauthenticated due to inactivity
wlan0: STA 38:e7:d8:xx:xx:xx MLME: MLME-
DEAUTHENTICATE.indication(38:e7:d8:xx:xx:xx, 2)
wlan0: STA 38:e7:d8:xx:xx:xx MLME: MLME-DELETEKEYS.request(38:e7:d8:xx:xx:xx)
mgmt::deauth cb
handle_deauth_cb: STA 38:e7:d8:xx:xx:xx not found
Any idea where the problem could be?
Do you need some more information?
Thanks a lot!
Regards
Simon
More information about the Hostap
mailing list