Skip to contentSkip to conversation

ath5k AP support?

DISCUSSION Tomasz Chmielewski 3 participants 7 messages Jun 16, 2009 – Jul 11, 2009

lore
Share & tools
lore
#0 lore raw

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).

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#1 lore raw
Quoted 2 lines · Tomasz Chmielewski

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.

Quoted 1 line

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.

Signature · 2 lines
Regards,
Pavel Roskin
#2 lore raw
In reply to Tomasz Chmielewski
Quoted 4 lines · Tomasz Chmielewski

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

Signature · 1 line
Bob Copeland %% www.bobcopeland.com
#3 lore raw
Quoted 11 lines · Bob Copeland
Quoted 4 lines · Tomasz Chmielewski

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.

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#4 lore raw
Quoted 13 lines · Tomasz Chmielewski
Quoted 11 lines · Bob Copeland
Quoted 4 lines · Tomasz Chmielewski

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

Quoted 7 lines

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).

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org
#5 lore raw
Quoted 5 lines · Tomasz Chmielewski

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.

Signature · 1 line
Bob Copeland %% www.bobcopeland.com
#6 lore raw
Quoted 5 lines · Bob Copeland
Quoted 4 lines · Tomasz Chmielewski

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

Quoted 7 lines
Quoted 1 line

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.

Signature · 2 lines
Tomasz Chmielewski
http://wpkg.org