2009-06-16 21:40:22

by Tomasz Chmielewski

[permalink] [raw]
Subject: ath5k AP support?

According to http://linuxwireless.org/en/users/Drivers/ath5k, AP mode is
"reported to work, we just need some further tests on all cards to be sure".

I just tried it with 2.6.30 kernel with this card:

00:02.0 Ethernet controller: Atheros Communications Inc. AR5212/AR5213
Multiprotocol MAC/baseband processor (rev 01)

And it doesn't work:

1245188059.756414: Configuration file: /etc/hostapd/hostapd-wlan0.conf
1245188059.766698: nl80211: Add own interface ifindex 6
1245188059.768470: nl80211: Add own interface ifindex 5
1245188059.770822: nl80211: Failed to set interface 5 to mode 3: -122
(Operation not supported)
1245188059.772627: nl80211: Failed to set interface wlan1 into AP mode
1245188059.774811: nl80211 driver initialization failed.
1245188059.776564: wlan1: Unable to setup interface.
1245188059.778342: Flushing old station entries
1245188059.780055: Deauthenticate all stations
rmdir[ctrl_interface]: No such file or directory
ELOOP: remaining socket: sock=3 eloop_data=0x47b860 user_data=0x47bda0
handler=0x43929c


Is there anything more needed for ath5k to work (some external patches,
git tree etc.)?

I tested it on ASUS WL-500gP (BCM47XX mips platform).

--
Tomasz Chmielewski
http://wpkg.org


2009-06-16 21:51:18

by Pavel Roskin

[permalink] [raw]
Subject: Re: ath5k AP support?

On Tue, 2009-06-16 at 23:40 +0200, Tomasz Chmielewski wrote:
> According to http://linuxwireless.org/en/users/Drivers/ath5k, AP mode is
> "reported to work, we just need some further tests on all cards to be sure".

That's for the wireless-testing.git.

> I just tried it with 2.6.30 kernel with this card:

The AP support is not in Linux 2.6.30. I believe it will be in Linux
2.6.31.

--
Regards,
Pavel Roskin

2009-06-16 21:54:18

by Bob Copeland

[permalink] [raw]
Subject: Re: ath5k AP support?

On Tue, Jun 16, 2009 at 5:40 PM, Tomasz Chmielewski<[email protected]> wrote:
> According to http://linuxwireless.org/en/users/Drivers/ath5k, AP mode is
> "reported to work, we just need some further tests on all cards to be sure".
>
> I just tried it with 2.6.30 kernel with this card:

2.6.30 does not enable AP mode, you should try the wireless-testing
tree instead.

There is at least one known bug (the patch at the end is broken but
close): http://bugzilla.kernel.org/show_bug.cgi?id=13237

--
Bob Copeland %% http://www.bobcopeland.com

2009-06-18 20:22:26

by Tomasz Chmielewski

[permalink] [raw]
Subject: Re: ath5k AP support?

Tomasz Chmielewski wrote:
> Bob Copeland wrote:
>> On Tue, Jun 16, 2009 at 5:40 PM, Tomasz Chmielewski<[email protected]>
>> wrote:
>>> According to http://linuxwireless.org/en/users/Drivers/ath5k, AP mode is
>>> "reported to work, we just need some further tests on all cards to be
>>> sure".
>>>
>>> I just tried it with 2.6.30 kernel with this card:
>>
>> 2.6.30 does not enable AP mode, you should try the wireless-testing
>> tree instead.
>>
>> There is at least one known bug (the patch at the end is broken but
>> close): http://bugzilla.kernel.org/show_bug.cgi?id=13237
>
> I tried compat-wireless-2009-06-17, but I can't connect:
>
> Jun 18 22:12:31 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE
> 802.11: authenticated
> Jun 18 22:12:31 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE
> 802.11: associated (aid 1)
> Jun 18 22:12:34 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE
> 802.11: deauthenticated due to local deauth request
> Jun 18 22:12:40 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE
> 802.11: authenticated
> (...)

Oh well.
The above is with hostapd 0.7.0 snapshot.
With 0.6.9 I can connect and the connection works fine

Is it normal?

hostapd 0.7.0 snapshot worked with a b43 card (but my b43 card doesn't
work well on my ASUS router, and hence I'm trying a different card, ath5k).


--
Tomasz Chmielewski
http://wpkg.org

2009-06-18 20:15:53

by Tomasz Chmielewski

[permalink] [raw]
Subject: Re: ath5k AP support?

Bob Copeland wrote:
> On Tue, Jun 16, 2009 at 5:40 PM, Tomasz Chmielewski<[email protected]> wrote:
>> According to http://linuxwireless.org/en/users/Drivers/ath5k, AP mode is
>> "reported to work, we just need some further tests on all cards to be sure".
>>
>> I just tried it with 2.6.30 kernel with this card:
>
> 2.6.30 does not enable AP mode, you should try the wireless-testing
> tree instead.
>
> There is at least one known bug (the patch at the end is broken but
> close): http://bugzilla.kernel.org/show_bug.cgi?id=13237

I tried compat-wireless-2009-06-17, but I can't connect:

Jun 18 22:12:31 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE 802.11: authenticated
Jun 18 22:12:31 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE 802.11: associated (aid 1)
Jun 18 22:12:34 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE 802.11: deauthenticated due to local deauth request
Jun 18 22:12:40 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE 802.11: authenticated
Jun 18 22:12:40 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE 802.11: associated (aid 1)
Jun 18 22:12:43 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE 802.11: deauthenticated due to local deauth request
Jun 18 22:12:55 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE 802.11: authenticated
Jun 18 22:12:55 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE 802.11: associated (aid 1)
Jun 18 22:12:58 mangoo hostapd: wlan1: STA 00:23:08:78:d4:5f IEEE 802.11: deauthenticated due to local deauth request
(...)


I didn't try your patch.


--
Tomasz Chmielewski
http://wpkg.org

2009-07-05 12:02:46

by Bob Copeland

[permalink] [raw]
Subject: Re: ath5k AP support?

On Thu, Jun 18, 2009 at 10:22:36PM +0200, Tomasz Chmielewski wrote:
> Oh well.
> The above is with hostapd 0.7.0 snapshot.
> With 0.6.9 I can connect and the connection works fine
>
> Is it normal?

I'm not sure -- do you have anything in dmesg?

I've noticed a strange bug lately where some packets to the STA get dropped
due to some kind of off-by-u32 bug. I haven't tracked it down yet to
any certain combination of ath5k/w-t/hostapd, though.

--
Bob Copeland %% http://www.bobcopeland.com


2009-07-11 16:20:14

by Tomasz Chmielewski

[permalink] [raw]
Subject: Re: ath5k AP support?

Bob Copeland wrote:
> On Thu, Jun 18, 2009 at 10:22:36PM +0200, Tomasz Chmielewski wrote:
>> Oh well.
>> The above is with hostapd 0.7.0 snapshot.
>> With 0.6.9 I can connect and the connection works fine
>>
>> Is it normal?
>
> I'm not sure -- do you have anything in dmesg?
>
> I've noticed a strange bug lately where some packets to the STA get dropped
> due to some kind of off-by-u32 bug. I haven't tracked it down yet to
> any certain combination of ath5k/w-t/hostapd, though.

No, nothing in dmesg.

I checked out 0.7 now, and it seems to work.

So, problem solved.


--
Tomasz Chmielewski
http://wpkg.org