Hi. I'm having serious problems with setting up my setup here. I managed to pull the exact same setup off before but that was with some other drivers that I can't find now.
I have a router box. It is connected to the ISP through eth0. Then I also have eth1 and wlan0 that should become the internal network which is routed through eth0. The wifi card according to lspci is Atheros Communications Inc. Atheros AR5001X+ Wireless Network Adapter (rev 01).
First I tried setting up hostapd but it didn't work because the card couldn't be set into Master mode. I googled around, installed compat-wireless (2009-09-06), got the new ath5k module, with that hostapd works and creates a second interface mon.wlan0.
Now first of all I'd like to get the bridge to work. If I run hostapd without any bridges I get authenticated successfully (using WPA2). If I bridge wlan0 with eth1 beforehand (brctl -> addbr -> 2x addif) I can still run hostapd but I can't authenticate. The output is something like:
Code:
10
wlan0: STA $MAC_ADDR IEEE 802.11 authenticated
wlan0: STA $MAC_ADDR IEEE 802.11 associated (aid 1)
wlan0: STA $MAC_ADDR IEEE 802.11 disassociated
wlan0: STA $MAC_ADDR IEEE 802.11 deauthenticated due to inactivity
goto 10
This will keep repeating and I can't connect to the AP.
If I run hostapd beforehand and mon.wlan0 appears (which I actually manipulate with ifconfig if I want to do anything, not wlan0 it seems) and I try to bridge mon.wlan0 with eth1 I get:
Code:
can't add mon.wlan0 to bridge br0: Invalid argument
The third idea I had was to bridge eth0 and wlan0 beforehand and then try to run hostapd using the br0 interface but of course, that didn't work either:
Code:
Configuration file: /etc/hostapd.conf
Failed to create interface mon.br0.
nl80211 driver initialization failed.
So now I run out of good ideas. I'll add if I remember anything else useful.
edit: for example that I run Slackware 13.0 and the kernel is 2.6.29.6.