Hello,
I have a wired internet gateway running dhcpd and doing NAT. Now i want another box to be a bridge between the wired gateway and wireless network.
So this is what i do:
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode ap
iwconfig ath0 essid myAP
(optional) iwconfig ath0 key s:KEY
ifconfig eth1 0.0.0.0 up
ifconfig ath0 0.0.0.0 up
brctl addbr br0
brctl addif br0 eth1
brctl addif br0 ath0
ifconfig br0 192.168.192.169 netmask 255.255.255.0 up
This is what I do. The ip i assign for the bridge will not be given to any other host. I also have done iwpriv ath0 wds 1.
So. Without using WEP key on the AP. Every wireless host gets its IP and is connected (almost) nicely. Ping packet loss is about 90% "only"(to the gateway or internet).
When I apply WEP key it gets weird. All the hosts connect to the network and get their IP addresses. But. Some of them have connection and with ping packet loss about 90%.
Some however have no usable connection and with ping to the internet, very very few replys. Most time out(ie. packetloss ~98%).
I would appreciate any help or ideas. Or at least to tell me where is the fault. In the madwifi driver or bridging(ie. it would work for example with a device with Ralink chip).