machines associate with hostap, but no data traffic

Martin Ehmke ehmke at
Sun May 13 10:22:59 EDT 2007


I am using the rt2x00 experimental driver with hostapd and its devicescape 
interface. Shortly: other machines can associate to the hostapd machine, 
however I can't make it to transfer any data.

I used the latest git version of the rt2x00 drivers and also newest hostapd. 
The latter I use the example config file and just switch the wlan mode to b, 
channel to something (e.g. 2) and set a ssid. I didn't set any encryption.

After starting hostapd it switches the card to master mode, management 
interfaces show up. Looks fine so far. When setting on the remote machine the 
essid in order to associate hostapd shows: 

Configuration file: hostapd.conf
Opening raw packet socket for ifindex 73
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
RATE[0] rate=10 flags=0x152
RATE[1] rate=20 flags=0x156
RATE[2] rate=55 flags=0x154
RATE[3] rate=110 flags=0x154
Could not set passive scanning: Unknown error 4294967295
Flushing old station entries
Deauthenticate all stations
Mode: IEEE 802.11b  Channel: 2  Frequency: 2417 MHz
Using interface wlan0 with hwaddr 00:08:a1:ad:bb:10 and ssid 'sack'
wlan0: Setup of interface done.
Wireless event: cmd=0x8b04 len=12
Wireless event: cmd=0x8b1a len=12
authentication: STA=00:0e:35:04:bc:20 auth_alg=0 auth_transaction=1 
status_code=0 wep=0
  New STA
wlan0: STA 00:0e:35:04:bc:20 IEEE 802.11: authentication OK (open system)
wlan0: STA 00:0e:35:04:bc:20 MLME: 
MLME-AUTHENTICATE.indication(00:0e:35:04:bc:20, OPEN_SYSTEM)
wlan0: STA 00:0e:35:04:bc:20 MLME: MLME-DELETEKEYS.request(00:0e:35:04:bc:20)
authentication reply: STA=00:0e:35:04:bc:20 auth_alg=0 auth_transaction=2 
resp=0 (IE len=0)
MGMT (TX callback) ACK
mgmt::auth cb
wlan0: STA 00:0e:35:04:bc:20 IEEE 802.11: authenticated
association request: STA=00:0e:35:04:bc:20 capab_info=0x01 listen_interval=10
  new AID 1
wlan0: STA 00:0e:35:04:bc:20 IEEE 802.11: association OK (aid 1)
MGMT (TX callback) ACK
mgmt::assoc_resp cb
wlan0: STA 00:0e:35:04:bc:20 IEEE 802.11: associated (aid 1, accounting 
session 46471D52-00000000)
wlan0: STA 00:0e:35:04:bc:20 MLME: 
wlan0: STA 00:0e:35:04:bc:20 MLME: MLME-DELETEKEYS.request(00:0e:35:04:bc:20)

However when I try to ping another station (after setting the IP-addresses), I 
just get "Destination Host Unreachable".

ifconfig wlan0 on the hostapd-machine:
wlan0     Protokoll:Ethernet  Hardware Adresse 00:08:A1:AD:BB:10
          inet Adresse:  Bcast:  Maske:
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:126 (126.0 b)  TX bytes:0 (0.0 b)

Note here the RX-counter. This is due to the pings from the other machine. 
However ping messages from the hostapd machine somehow does not go to the TX 
ethereal shows just arp messages arriving (without being answered from the 
host ap).

Routing however is fine. If I do the same ifconfigs and pings in ad-hoc mode, 
it works.

I think, that I tried already all kinds of stuff. But maybe someone knows, if 
and what I am doing wrong. Help is appreciated! Thanks!

Best regards

More information about the HostAP mailing list