2008-08-14 23:57:07

by J.A. Magallón

[permalink] [raw]
Subject: ath5k on the Acer Aspire One

Hi...

I have just got a One, and have installed a standard distro (not Linpus),
Mandriva in my case.

Everything works pretty nicely but WiFi. Hardware is:

03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

The driver used is ath5k. On load, it logs this:


Aug 15 01:13:57 one klogd: ath5k_pci 0000:03:00.0: registered as 'phy0'
Aug 15 01:13:57 one klogd: ath5k phy0: Support for RF2425 is under development.
Aug 15 01:13:57 one klogd: ath5k phy0: Atheros AR2425 chip found (MAC: 0xe2, PHY: 0x70)

But when I try to connect, I see:

one:~# wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -D wext
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - CTRL-EVENT-SCAN-RESULTS
CTRL-EVENT-SCAN-RESULTS

wpa_supplicant.conf just has this:

network={
ssid="werewolf"
# scan_ssid=1
proto=WPA2
key_mgmt=WPA-PSK
psk="xxxxxx"
}

And the interface does not see any network. My router is a WRT54GL running
Tomato 1.21, and the wireless scan feature of tomato does not show the
emitter in the laptop.

One detail, the wifi light in the lid is not lit, and if I push the wifi
button I get this message:

Aug 15 01:34:16 one klogd: atkbd.c: Unknown key pressed (translated set 2, code 0xd6 on isa0060/serio0).
Aug 15 01:34:16 one klogd: atkbd.c: Use 'setkeycodes e056 <keycode>' to make it known.
Aug 15 01:34:16 one klogd: atkbd.c: Unknown key released (translated set 2, code 0xd6 on isa0060/serio0).
Aug 15 01:34:16 one klogd: atkbd.c: Use 'setkeycodes e056 <keycode>' to make it known.

Well, I thought I needed 'acerhk', so loaded it:


Aug 15 01:34:32 one klogd: input: Acer hotkey driver as /class/input/input9
Aug 15 01:34:33 one klogd: acerhk: Could not find model string, will assume type 200 series
Aug 15 01:34:33 one klogd: Acer Travelmate hotkey driver v0.5.35

But get the same messages.

So perhaps the problem is just that wifi is disabled, and I cant enable it
because an driver understands the codes from the button in the case.

Any idea ?

BTW, can I force the interface on when loading ath5k ?

TIA

--
J.A. Magallon <jamagallon()ono!com> \ Software is like sex:
\ It's better when it's free
Mandriva Linux release 2009.0 (Cooker) for i586
Linux 2.6.25-jam18 (gcc 4.3.1 20080626 (GCC) #1 SMP


2008-08-15 08:22:12

by J.A. Magallón

[permalink] [raw]
Subject: Re: ath5k on the Acer Aspire One

On Fri, 15 Aug 2008 02:28:49 +0200, Frans Pop <[email protected]> wrote:

> J.A. Magallón wrote:
> > I have just got a One, and have installed a standard distro (not
> > Linpus), Mandriva in my case.
> >
> > Everything works pretty nicely but WiFi. Hardware is:
>
> The ath5k driver has been improved a lot in recent kernel releases and for
> me it only started working properly with WEP and WPA with kernel version
> 2.6.26. So please retry with that kernel version.
>
> Cheers,
> FJP

I'm using 2.6.26.2 from Mandriva cooker.

I'm also thinking its a soft/encryption problem:

one:~# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Dwext -d
Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
eapol_version=1
ap_scan=1
fast_reauth=1
Line 771: removed CCMP from group cipher list since it was not allowed for pairwise cipher
Priority group 0
id=0 ssid='werewolf'
Initializing interface (2) 'wlan0'
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:1f:e2:bc:8c:01
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 100000 usec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b06 len=8
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
CTRL-EVENT-SCAN-RESULTS
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
EAPOL: disable timer tick
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
Wireless event: cmd=0x8b19 len=8
Received 0 bytes of scan results (0 BSSes)
CTRL-EVENT-SCAN-RESULTS
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
...


--
J.A. Magallon <jamagallon()ono!com> \ Software is like sex:
\ It's better when it's free
Mandriva Linux release 2009.0 (Cooker) for i586
Linux 2.6.25-jam18 (gcc 4.3.1 20080626 (GCC) #1 SMP

2008-08-15 13:39:55

by Bob Copeland

[permalink] [raw]
Subject: Re: ath5k on the Acer Aspire One

On Fri, Aug 15, 2008 at 4:21 AM, J.A. Magall?n <[email protected]> wrote:
> I'm using 2.6.26.2 from Mandriva cooker.
>
> I'm also thinking its a soft/encryption problem:

The encryption fixes I know about for WPA should already be in 2.6.26. But
ath5k uses mac80211 for encryption so if it is encryption related, then it's
in the interface code between them, or else more wireless cards would have
the problem.

> one:~# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Dwext -d
> Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
> Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
> Reading configuration file '/etc/wpa_supplicant.conf'
> ctrl_interface='/var/run/wpa_supplicant'
> eapol_version=1
> ap_scan=1
> fast_reauth=1
> Line 771: removed CCMP from group cipher list since it was not allowed for pairwise cipher
> Priority group 0
> id=0 ssid='werewolf'
> Initializing interface (2) 'wlan0'
> SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
> capabilities: key_mgmt 0xf enc 0xf
> WEXT: Operstate: linkmode=1, operstate=5
> Own MAC address: 00:1f:e2:bc:8c:01
> wpa_driver_wext_set_wpa
> wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
> wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
> wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
> wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
> wpa_driver_wext_set_countermeasures
> ioctl[SIOCSIWAUTH]: Operation not supported
> WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
> RSN: flushing PMKID list in the driver
> Setting scan request: 0 sec 100000 usec
> EAPOL: SUPP_PAE entering state DISCONNECTED
> EAPOL: KEY_RX entering state NO_KEY_RECEIVE
> EAPOL: SUPP_BE entering state INITIALIZE
> EAP: EAP entering state DISABLED
> Added interface wlan0
> RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
> Wireless event: cmd=0x8b06 len=8
> State: DISCONNECTED -> SCANNING
> Starting AP scan (broadcast SSID)
> Trying to get current scan results first without requesting a new scan to speed up initial association
> Received 0 bytes of scan results (0 BSSes)
> CTRL-EVENT-SCAN-RESULTS
> Selecting BSS from priority group 0
> Try to find WPA-enabled AP
> Try to find non-WPA AP
> No suitable AP found.
> Setting scan request: 0 sec 0 usec
> Starting AP scan (broadcast SSID)
> Scan requested (ret=0) - scan timeout 5 seconds
> EAPOL: disable timer tick
> RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
> Wireless event: cmd=0x8b19 len=8
> Received 0 bytes of scan results (0 BSSes)
> CTRL-EVENT-SCAN-RESULTS
> Selecting BSS from priority group 0
> Try to find WPA-enabled AP
> Try to find non-WPA AP
> No suitable AP found.
> ...

It looks like you didn't get any scan results. Does 'iwlist wlan0 scan'
work?

CCing ath5k-devel, you'll probably get more help there.

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

2008-08-15 13:41:35

by Bob Copeland

[permalink] [raw]
Subject: Re: ath5k on the Acer Aspire One

On Fri, Aug 15, 2008 at 9:39 AM, Bob Copeland <[email protected]> wrote:
> On Fri, Aug 15, 2008 at 4:21 AM, J.A. Magall?n <[email protected]> wrote:
>> I'm using 2.6.26.2 from Mandriva cooker.
>>
>> I'm also thinking its a soft/encryption problem:

BTW the original report you said you were using AR2425. I believe
support for that was only added for 2.6.27.

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

2008-08-15 14:04:32

by John W. Linville

[permalink] [raw]
Subject: Re: ath5k on the Acer Aspire One

On Fri, Aug 15, 2008 at 01:51:31AM +0200, J.A. Magall?n wrote:
> Hi...
>
> I have just got a One, and have installed a standard distro (not Linpus),
> Mandriva in my case.
>
> Everything works pretty nicely but WiFi. Hardware is:
>
> 03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
>
> The driver used is ath5k. On load, it logs this:
>
>
> Aug 15 01:13:57 one klogd: ath5k_pci 0000:03:00.0: registered as 'phy0'
> Aug 15 01:13:57 one klogd: ath5k phy0: Support for RF2425 is under development.
> Aug 15 01:13:57 one klogd: ath5k phy0: Atheros AR2425 chip found (MAC: 0xe2, PHY: 0x70)

2425 stuff went in after 2.6.26 was already released. Try linux-2.6.git.

John
--
John W. Linville
[email protected]

2008-08-15 17:26:23

by Jaco Kroon

[permalink] [raw]
Subject: Re: [ath5k-devel] ath5k on the Acer Aspire One

Bob Copeland wrote:
> On Fri, Aug 15, 2008 at 4:21 AM, J.A. Magall?n <[email protected]> wrote:
>> I'm using 2.6.26.2 from Mandriva cooker.
>>
>> I'm also thinking its a soft/encryption problem:
>
> The encryption fixes I know about for WPA should already be in 2.6.26. But
> ath5k uses mac80211 for encryption so if it is encryption related, then it's
> in the interface code between them, or else more wireless cards would have
> the problem.

Is this using WPA-PSK or WPA-EAP? I know my card works with PSK but I'm
seeing similar results with EAP. Haven't had time to properly analyze
the problem yet and my AP is in the office for the weekend.

Regards,
Jaco Kroon

>
>> one:~# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -Dwext -d
>> Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
>> Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
>> Reading configuration file '/etc/wpa_supplicant.conf'
>> ctrl_interface='/var/run/wpa_supplicant'
>> eapol_version=1
>> ap_scan=1
>> fast_reauth=1
>> Line 771: removed CCMP from group cipher list since it was not allowed for pairwise cipher
>> Priority group 0
>> id=0 ssid='werewolf'
>> Initializing interface (2) 'wlan0'
>> SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
>> capabilities: key_mgmt 0xf enc 0xf
>> WEXT: Operstate: linkmode=1, operstate=5
>> Own MAC address: 00:1f:e2:bc:8c:01
>> wpa_driver_wext_set_wpa
>> wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
>> wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
>> wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
>> wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
>> wpa_driver_wext_set_countermeasures
>> ioctl[SIOCSIWAUTH]: Operation not supported
>> WEXT auth param 4 value 0x0 - wpa_driver_wext_set_drop_unencrypted
>> RSN: flushing PMKID list in the driver
>> Setting scan request: 0 sec 100000 usec
>> EAPOL: SUPP_PAE entering state DISCONNECTED
>> EAPOL: KEY_RX entering state NO_KEY_RECEIVE
>> EAPOL: SUPP_BE entering state INITIALIZE
>> EAP: EAP entering state DISABLED
>> Added interface wlan0
>> RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
>> Wireless event: cmd=0x8b06 len=8
>> State: DISCONNECTED -> SCANNING
>> Starting AP scan (broadcast SSID)
>> Trying to get current scan results first without requesting a new scan to speed up initial association
>> Received 0 bytes of scan results (0 BSSes)
>> CTRL-EVENT-SCAN-RESULTS
>> Selecting BSS from priority group 0
>> Try to find WPA-enabled AP
>> Try to find non-WPA AP
>> No suitable AP found.
>> Setting scan request: 0 sec 0 usec
>> Starting AP scan (broadcast SSID)
>> Scan requested (ret=0) - scan timeout 5 seconds
>> EAPOL: disable timer tick
>> RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
>> Wireless event: cmd=0x8b19 len=8
>> Received 0 bytes of scan results (0 BSSes)
>> CTRL-EVENT-SCAN-RESULTS
>> Selecting BSS from priority group 0
>> Try to find WPA-enabled AP
>> Try to find non-WPA AP
>> No suitable AP found.
>> ...
>
> It looks like you didn't get any scan results. Does 'iwlist wlan0 scan'
> work?
>
> CCing ath5k-devel, you'll probably get more help there.
>

2008-08-15 18:11:46

by Bob Copeland

[permalink] [raw]
Subject: Re: [ath5k-devel] ath5k on the Acer Aspire One

On Fri, Aug 15, 2008 at 12:36 PM, Jaco Kroon <[email protected]> wrote:
>
> Is this using WPA-PSK or WPA-EAP? I know my card works with PSK but I'm
> seeing similar results with EAP. Haven't had time to properly analyze
> the problem yet and my AP is in the office for the weekend.

PSK. I'll claim ignorance on EAP though I don't know why it wouldn't work.
The change I was thinking of in 2.6.26 was related to some packets not being
decrypted properly (http://marc.info/?l=linux-wireless&m=121064141521711).
There was also this one related to association failures around .27-rc1:
http://marc.info/?l=linux-wireless&m=121732394028001.

Let us know what you find out.
--
Bob Copeland %% http://www.bobcopeland.com

2008-08-16 10:03:49

by J.A. Magallón

[permalink] [raw]
Subject: Re: ath5k on the Acer Aspire One

On Fri, 15 Aug 2008 01:51:31 +0200, "J.A. Magallón" <[email protected]> wrote:

> Hi...
>
> I have just got a One, and have installed a standard distro (not Linpus),
> Mandriva in my case.
>
> Everything works pretty nicely but WiFi. Hardware is:
>
> 03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
>
> The driver used is ath5k. On load, it logs this:
>
>
> Aug 15 01:13:57 one klogd: ath5k_pci 0000:03:00.0: registered as 'phy0'
> Aug 15 01:13:57 one klogd: ath5k phy0: Support for RF2425 is under development.
> Aug 15 01:13:57 one klogd: ath5k phy0: Atheros AR2425 chip found (MAC: 0xe2, PHY: 0x70)
>

Thanks to everyone that answered, probably the solution is an update to
the driver, hardware support for this chip was added in 27-rc.
My distro still uses 26.2.

I'm going on holydays for a week now, will make more tests on return,
and continue the thread.

Thanks everyone.

--
J.A. Magallon <jamagallon()ono!com> \ Software is like sex:
\ It's better when it's free
Mandriva Linux release 2009.0 (Cooker) for i586
Linux 2.6.25-jam18 (gcc 4.3.1 20080626 (GCC) #1 SMP