hostap bridge and associated problems

Chengliang chengl
Fri Jun 18 23:25:52 PDT 2004


hostapHi
I've got a rh9.0 linux ditribution running with kernel 2.4.20, hostap-driver.0.1.3 ,Netgear MA401 PCMCIA NIC. After I used Winupdate to upgrade the firmware image from PRI version 1.0.0 and STA version 1.3.6 ,The NIC info  is showed below by linux dmsg command :

Jun 15 16:19:44 localhost kernel: Yenta IRQ list 06b8, PCI irq11
Jun 15 16:19:44 localhost kernel: Socket status: 30000006
Jun 15 16:19:44 localhost kernel: Yenta IRQ list 06b8, PCI irq11
Jun 15 16:19:44 localhost kernel: Socket status: 30000010
Jun 15 16:19:44 localhost kernel: cs: IO port probe 0x0c00-0x0cff: clean.
Jun 15 16:19:44 localhost kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x3b8-0x3df 0x4d0-0x4d7
Jun 15 16:19:44 localhost kernel: cs: IO port probe 0x0a00-0x0aff: clean.
Jun 15 16:19:44 localhost kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.Jun 15 16:19:44 localhost kernel: hostap_cs: 0.1.3 - 2004-02-08 (Jouni Malinen <jkmaline at cc.hut.fi>)
Jun 15 16:19:44 localhost kernel: hostap_cs: index 0x01: Vcc 5.0, irq 3, io 0x0100-0x013f
Jun 15 16:19:44 localhost kernel: hostap_cs: Registered netdevice wlan0
Jun 17 22:22:34 localhost kernel: wlan0: NIC: id=0x800c v1.0.0
Jun 17 22:22:34 localhost kernel: wlan0: PRI: id=0x15 v1.1.1
Jun 17 22:22:34 localhost kernel: wlan0: STA: id=0x1f v1.5.6

When it login in linux, my other PC with dlink dwl120  wireless net card could find ESSID "test ",which was configured in hostap config file.Then I tried to bridge eth0 (internal lan interface) and wlan0 according to README in  hostap-driver.0.1.3.tar.gz like this: 

brctl addbr br0
brctl addif br0 eth0
brctl addif br0 wlan0
ifconfig eth0 0.0.0.0
ifconfig wlan0 0.0.0.0
ifconfig br0 172.21.29.61 up

Problem 1:
After these operations about 15 seconds, my RH linux was down.
in /var/log/messages last lines:
Jun 17 22:27:32 localhost /etc/hotplug/net.agent: invoke ifup wlan0sta
Jun 17 22:27:32 localhost /etc/hotplug/net.agent: invoke ifup wlan0ap
Jun 17 22:27:34 localhost hostapd: wlan0: STA 00:05:5d:5b:a7:c2 IEEE 802.11: authenticated
Jun 17 22:27:34 localhost hostapd: wlan0: STA 00:05:5d:5b:a7:c2 IEEE 802.11: associated (aid 1)
Jun 17 22:29:53 localhost hostapd: wlan0: STA 00:05:5d:5b:a7:c2 IEEE 802.11: authenticated
Jun 17 22:29:53 localhost hostapd: wlan0: STA 00:05:5d:5b:a7:c2 IEEE 802.11: associated (aid 1)
Jun 17 22:29:59 localhost hostapd: wlan0: STA 00:05:5d:5b:a7:c2 IEEE 802.11: authenticated
Jun 17 22:29:59 localhost hostapd: wlan0: STA 00:05:5d:5b:a7:c2 IEEE 802.11: associated (aid 1)
Jun 17 22:30:06 localhost hostapd: wlan0: STA 00:05:5d:5b:a7:c2 IEEE 802.11: authenticated
Jun 17 22:30:08 localhost hostapd: wlan0: STA 00:05:5d:5b:a7:c2 IEEE 802.11: authenticated
Jun 17 22:30:08 localhost hostapd: wlan0: STA 00:05:5d:5b:a7:c2 IEEE 802.11: associated (aid 1)
Jun 17 23:14:04 localhost kernel: NET4: Ethernet Bridge 008 for NET4.0
Jun 17 23:14:04 localhost /etc/hotplug/net.agent: invoke ifup br0
Jun 17 23:14:13 localhost kernel: device eth0 entered promiscuous mode
Jun 17 23:14:21 localhost kernel: device wlan0 entered promiscuous mode
Jun 17 23:15:08 localhost kernel: br0: port 2(wlan0) entering listening state
Jun 17 23:15:08 localhost kernel: br0: port 1(eth0) entering listening state
Jun 17 23:15:23 localhost kernel: br0: port 2(wlan0) entering learning state
Jun 17 23:15:23 localhost kernel: br0: port 1(eth0) entering learning state
Jun 17 23:15:38 localhost kernel: br0: port 2(wlan0) entering forwarding state
Jun 17 23:15:38 localhost kernel: br0: topology change detected, propagating
Jun 17 23:15:38 localhost kernel: br0: port 1(eth0) entering forwarding state
Jun 17 23:15:38 localhost kernel: br0: topology change detected, propagating


problem 2:
When I restart linux ,I run the ./hostapd  hostapd.conf,the return result like below:
Jun 17 19:35:14 localhost /etc/hotplug/net.agent: invoke ifup wlan0ap
Jun 17 19:35:14 localhost /etc/hotplug/net.agent: invoke ifup wlan0sta
STA 00:05:5d:5b:a7:c2 IEEE 802.11: authenticated
 STA 00:05:5d:5b:a7:c2 IEEE 802.11: associated (aid 1)
STA 00:05:5d:5b:a7:c2 IEEE 802.11: authenticated
STA 00:05:5d:5b:a7:c2 IEEE 802.11: associated (aid 1)
 STA 00:80:c8:b2:2b:2c IEEE 802.11: authenticated
STA 00:80:c8:b2:2b:2c IEEE 802.11: associated (aid 2)
 STA 00:80:c8:b2:2b:2c IEEE 802.11: authenticated
STA 00:80:c8:b2:2b:2c IEEE 802.11: associated (aid 2)
 STA 00:80:c8:b2:2b:2c IEEE 802.11: disassociated
 STA 00:80:c8:b2:2b:2c IEEE 802.11: authenticated
 STA 00:80:c8:b2:2b:2c IEEE 802.11: associated (aid 2)
STA 00:80:c8:b2:2b:2c IEEE 802.11: disassociated
STA 00:80:c8:b2:2b:2c IEEE 802.11: disassociated due to inactivity
 STA 00:80:c8:b2:2b:2c IEEE 802.11: deauthenticated due to inactivity
 STA 00:80:c8:b2:2b:2c IEEE 802.11: authenticated
 STA 00:80:c8:b2:2b:2c IEEE 802.11: associated (aid 2) 


Can anybod give me some suggestion , How can  linux hostap work as actual AP ?
Thanks in advance!






More information about the Hostap mailing list