ath9k & hostapd
Hi,
I found this message below interesting because I to want use my 5416 also in AP mode.
However ..... doesnt seem to work.
- I have downloaded 2.6.27 and applied the patch from
http://johannes.sipsolutions.net/patches/kernel/all/LATEST/004-allow-ap-vlan-modes.patch
- rebuild it.
- installed libnl1 1.1
- grabbed latest hostap from the git.
- enabled the nl80211 in the .config
- built it.
- changed driver=nl80211 in hostapd.conf
Running hostapd with.... hostapd -dd /etc/hostapd/hostapd.conf Result :(
ctrl_interface_group=0
ioctl[SIOCSIFFLAGS]: Operation not supported nl80211 driver initialization failed.
wlan0: Unable to setup interface.
Flushing old station entries
Deauthenticate all stations rmdir[ctrl_interface]: No such file or directory
Seems the ath9k wont get into AP mode.
Did I miss something reading the mail below??
gr,
Willem
Quoted 123 lines
Thanks Nils for detailed explanation.
I understand this is not a ath9k issue however I googled & could not find how I can use ath9k driver with hostapd. There is support for madwifi, bsd drivers & hostpad but I didn't know how I can use ath9k. I installed compiled it as it is but didn;t work.
I'll try it tonight with "nl80211" option . Hopefully it should work.... :
)Kind Regards,
Amit
----- Original Message ----
From: Nils Bagge <[email protected]>
To: Amit Sood <[email protected]>; ath9k-devel at lists.ath9k.org
Sent: Wednesday, 3 September, 2008 8:13:08 AM
Subject: RE: [ath9k-devel] ath9k & hostapdWhen you say ?I was unable to run the hostapd with ath9k?, what exactly is your problem?
Generally:
1) Built the ath9k driver (I assume you know how to do this).
2) Built hostapd, make sure you use the nl80211 driver. (this is also documented). You'll need libnl (I used 1.1) so get that and build it then setup the .config file. 3) Make sure your network interfaces are configured properly. You'll need to setup a bridge (and also tell hostapd about it (also documented)). Make sure the kernel IP routing table is setup okay. I don't know if this is true for every configuration, but in my case I needed to set the bridge interface to be used for all the routes (this makes sense if you think about what an AP is doing)., e.g.Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface 10.1.1.0 * 255.255.255.0 U 0 0 0 br0 default 10.1.1.1 0.0.0.0 UG 0 00 br0
Hope this helps. This was mostly a hostapd/linux issue rather than anything to do with the ath9k driver.
Good luck,
NilsFrom: Amit Sood [mailto:as22_2000 at yahoo.com]
Sent: Friday, August 29, 2008 7:55 PM
To: Nils Bagge; ath9k-devel at lists.ath9k.org
Subject: Re: [ath9k-devel] ath9k & hostapdHi Nils,
I'm also interested to test the hostapd with AR5416, however I was unable to run the hostapd with ath9k. Do you mind provdig some basci steps to achieve the same?
cheers,
-amit-
----- Original Message ----
From: Nils Bagge <[email protected]>
To: ath9k-devel at lists.ath9k.org
Sent: Saturday, 30 August, 2008 6:11:13 AM
Subject: [ath9k-devel] ath9k & hostapd
I can also confirm that hostapd and ath9k are working for me.I have an AR5416 reference PC card, running the latest wireless-testing kernel along with the patches from w1.fi. I don?t have the latest patches that were submitted today to the linux-wireless mailing list, though.
As was previously mentioned (see below), I can also confirm that 11a mode is not working with hostapd; it appears not to be an ath9k issue? I have narrowed down the code and I think I?ll take it up with the hostapd guys.
Anyway, I am highly anticipating the 11n mode.
Just for the curious, I was able to get these results without any tweaking. This is in 11g mode.
iperf -c 10.1.1.229 -i 5 -w 2M -t 60 -S
0xa0
------------------------------------------------------------
Client connecting to
10.1.1.229, TCP port 5001
TCP window size: 256 KByte (WARNING: requested 2.00 MByte)
------------------------------------------------------------
[ 3] local 10.1.1.210 port 53323 connected with 10.1.1.229 port 5001[ ID] Interval Transfer Bandwidth [ 3] 0.0- 5.0 sec 13.6 MBytes 22.9 Mbits/sec [ 3] 5.0-10.0 sec 13.1 MBytes 22.0 Mbits/sec [ 3] 10.0-15.0 sec 13.2 MBytes 22.1 Mbits/sec [ 3] 15.0-20.0 sec 13.1 MBytes 22.0 Mbits/sec [ 3] 20.0-25.0 sec 1.79 MBytes 3.00 Mbits/sec [ 3] 25.0-30.0 sec 13.4 MBytes 22.5 Mbits/sec [ 3] 30.0-35..0 sec 13.8 MBytes 23.1 Mbits/sec [ 3] 35.0-40.0 sec 13.8 MBytes 23.2 Mbits/sec [ 3] 40.0-45.0 sec 13.7 MBytes 22.9 Mbits/sec [ 3] 45..0-50.0 sec 13.9 MBytes 23.4 Mbits/sec [ 3] 50.0-55.0 sec 13.4 MBytes 22.5 Mbits/sec [ 3] 55.0-60.0 sec 13.5 MBytes 22.7 Mbits/sec [ 3] 0.0-60.0 sec 150 MBytes 21.0 Mbits/secNils
Quoted 4 lines · Alexandros C. Couloumbis
it works! I posted some benchmarks on the openwrt forum:
http://forum.openwrt.org/viewtopic.php?pid=72503#p72503I am unable though to set hostapd for 802.11a
Nice to hear that the AP mode worked for you. I
haven't tested
802.11a for a long time with hostapd, so I'm not too surprised if something is broken there with mac80211. I'll take a closer look once I get 802.11n stuff merged into hostapd.- Jouni
Signature · 3 lines
This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.