hostapd with nl80211 bridge problems.
Andrew T
atp3
Fri Jul 4 20:37:30 PDT 2008
Hi,
I just started using hostapd for my AP. I am very happy with the way it
works but have 1 issue.
My AP is made up of
2.6.26-rc8 kernel with mac80211 and a ralink rt73usb.
009-allow-ap-vlan-modes.patch
Hostapd 0.6.3 and libnl 1.1
My problem is when I try to bridge the wlan0 to eth0 interface wpa is
failing.
What works:
Hostapd without the bridge works fine with WPA-PSK if I use iptables to
do NAT on the wireless interface it works well.
Hostapd in the bridge With no encryption. WPA-PSK turned off. works well
same as above but no need for iptables.
Both the bridge and wpa-psk doesnt work. From my limited knowledge it
looks like Hostapd doesnt see the EAPOL packets coming in from the bridge.
I do have bridge=br0 set in the config but its like hostapd ignores this
setting. I can see the replies come in from the client to the bridge but
hostapd does not see them.
I use wire shark to monitor the bridge while trying to connect so I know
the EAPOL reply is coming back into the bridge and lost there.
I am open to all suggestions.
part Hostapd LOG
mgmt::auth
authentication: STA=00:1e:3a:8c:7e:02 auth_alg=0 auth_transaction=1
status_code=0 wep=0
New STA
wlan0: STA 00:1e:3a:8c:7e:02 IEEE 802.11: authentication OK (open system)
wlan0: STA 00:1e:3a:8c:7e:02 MLME:
MLME-AUTHENTICATE.indication(00:1e:3a:8c:7e:02, OPEN_SYSTEM)
wlan0: STA 00:1e:3a:8c:7e:02 MLME:
MLME-DELETEKEYS.request(00:1e:3a:8c:7e:02)
authentication reply: STA=00:1e:3a:8c:7e:02 auth_alg=0
auth_transaction=2 resp=0 (IE len=0)
MGMT (TX callback) ACK
mgmt::auth cb
wlan0: STA 00:1e:3a:8c:7e:02 IEEE 802.11: authenticated
mgmt::assoc_req
association request: STA=00:1e:3a:8c:7e:02 capab_info=0x411
listen_interval=10
Validating WME IE: OUI 00:50:f2 OUI type 2 OUI sub-type 0 version 1
Failed to set beacon head/tail
Failed to set CTS protect in kernel driver
Failed to set Short Slot Time option in kernel driver
Could not set preamble for kernel driver
new AID 1
wlan0: STA 00:1e:3a:8c:7e:02 IEEE 802.11: association OK (aid 1)
MGMT (TX callback) ACK
mgmt::assoc_resp cb
wlan0: STA 00:1e:3a:8c:7e:02 IEEE 802.11: associated (aid 1, accounting
session 486EE9FD-00000000)
wlan0: STA 00:1e:3a:8c:7e:02 MLME:
MLME-ASSOCIATE.indication(00:1e:3a:8c:7e:02)
wlan0: STA 00:1e:3a:8c:7e:02 MLME:
MLME-DELETEKEYS.request(00:1e:3a:8c:7e:02)
wlan0: STA 00:1e:3a:8c:7e:02 IEEE 802.11: Could not add STA to kernel driver
wlan0: STA 00:1e:3a:8c:7e:02 WPA: event 1 notification
wlan0: STA 00:1e:3a:8c:7e:02 WPA: start authentication
WPA: 00:1e:3a:8c:7e:02 WPA_PTK entering state INITIALIZE
wlan0: STA 00:1e:3a:8c:7e:02 IEEE 802.1X: unauthorizing port
Could not set station 00:1e:3a:8c:7e:02 flags for kernel driver (errno=22).
WPA: 00:1e:3a:8c:7e:02 WPA_PTK_GROUP entering state IDLE
WPA: 00:1e:3a:8c:7e:02 WPA_PTK entering state AUTHENTICATION
WPA: 00:1e:3a:8c:7e:02 WPA_PTK entering state AUTHENTICATION2
WPA: 00:1e:3a:8c:7e:02 WPA_PTK entering state INITPSK
WPA: 00:1e:3a:8c:7e:02 WPA_PTK entering state PTKSTART
wlan0: STA 00:1e:3a:8c:7e:02 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=1 secure=0 mic=0 ack=1 install=0 pairwise=8
kde_len=0 keyidx=0 encr=0)
wlan0: STA 00:1e:3a:8c:7e:02 WPA: EAPOL-Key timeout
WPA: 00:1e:3a:8c:7e:02 WPA_PTK entering state PTKSTART
wlan0: STA 00:1e:3a:8c:7e:02 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=1 secure=0 mic=0 ack=1 install=0 pairwise=8
kde_len=0 keyidx=0 encr=0)
wlan0: STA 00:1e:3a:8c:7e:02 WPA: EAPOL-Key timeout
WPA: 00:1e:3a:8c:7e:02 WPA_PTK entering state PTKSTART
wlan0: STA 00:1e:3a:8c:7e:02 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=1 secure=0 mic=0 ack=1 install=0 pairwise=8
kde_len=0 keyidx=0 encr=0)
wlan0: STA 00:1e:3a:8c:7e:02 WPA: EAPOL-Key timeout
WPA: 00:1e:3a:8c:7e:02 WPA_PTK entering state PTKSTART
wlan0: STA 00:1e:3a:8c:7e:02 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=1 secure=0 mic=0 ack=1 install=0 pairwise=8
kde_len=0 keyidx=0 encr=0)
WPA: 00:1e:3a:8c:7e:02 WPA_PTK entering state DISCONNECT
hostapd_wpa_auth_disconnect: WPA authenticator requests disconnect: STA
00:1e:3a:8c:7e:02 reason 2
WPA: 00:1e:3a:8c:7e:02 WPA_PTK entering state DISCONNECTED
WPA: 00:1e:3a:8c:7e:02 WPA_PTK entering state INITIALIZE
wlan0: STA 00:1e:3a:8c:7e:02 IEEE 802.1X: unauthorizing port
Could not set station 00:1e:3a:8c:7e:02 flags for kernel driver (errno=22).
wlan0: STA 00:1e:3a:8c:7e:02 IEEE 802.11: deauthenticated due to local
deauth request
Andrew.
More information about the Hostap
mailing list