AR242x: no scan results, can't connect

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AR242x: no scan results, can't connect

Colin Brace
Administrator
Hi all,

I am trying to get a AR242x-based adapter working on an Acer Aspire 4520 running Ubuntu 8.04. lspci output:

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

Google brought me to this thread: http://madwifi.org/ticket/1192

Reading this and the first-time user how-to, I did the following:

* I removed the ath driver files included in Ubuntu;

* I downloaded a SVN snapshot yesterday, compiled and installed it;

* I also downloaded, compiled, and installed madwifi-hal-0.10.5.6-r3698-20080604.

* I then rebooted.

wfconfig now indicates the following:

$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

wifi0     no wireless extensions.

ath0      IEEE 802.11g  ESSID:""  Nickname:""
         Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated           Bit Rate:0 kb/s   Tx-Power:16 dBm   Sensitivity=1/1          Retry:off   RTS thr:off   Fragment thr:off
         Power Management:off
         Link Quality=0/70  Signal level=-96 dBm  Noise level=-96 dBm
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:0   Missed beacon:0

However, it can't see any access points:

$ iwlist ath0 scan
ath0      No scan results

I try connecting to a unencrypted WAP manually like this:

$ sudo iwconfig ath0 essid "myLinksys" key off

but no go:

$ iwconfig ath0
ath0      IEEE 802.11g  ESSID:"WestWind"  Nickname:""
         Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated           Bit Rate:0 kb/s   Tx-Power:16 dBm   Sensitivity=1/1          Retry:off   RTS thr:off   Fragment thr:off
         Power Management:off
         Link Quality=0/70  Signal level=-96 dBm  Noise level=-96 dBm
         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
         Tx excessive retries:0  Invalid misc:0   Missed beacon:0


Any ideas on what might be going on here?

Thanks.

--
 Colin Brace
 Amsterdam
 http://lim.nl

--
  Colin Brace
  Amsterdam
  http://lim.nl
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AR242x: no scan results, can't connect

Colin Brace
Administrator

Colin Brace wrote
$ sudo iwconfig ath0 essid "myLinksys" key off

but no go:

$ iwconfig ath0
ath0      IEEE 802.11g  ESSID:"WestWind"  Nickname:""
Sorry, the command I was using is:

$ sudo iwconfig ath0 essid "WestWind" key off
--
  Colin Brace
  Amsterdam
  http://lim.nl
vom
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AR242x: no scan results, can't connect

vom
In reply to this post by Colin Brace
On Sat, 28 Jun 2008, Colin Brace wrote:

>
> Hi all,
>
> I am trying to get a AR242x-based adapter working on an Acer Aspire 4520
> running Ubuntu 8.04. lspci output:
>
> 07:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg
> Wireless PCI Express Adapter (rev 01)
>
> Google brought me to this thread: http://madwifi.org/ticket/1192
>
> Reading this and the first-time user how-to, I did the following:
>
> * I removed the ath driver files included in Ubuntu;

Make sure you also blacklist the ath_hal from linux-restricted-modules:

In my /etc/default/linux-restricted-modules file, I added:

DISABLED_MODULES="ath_hal"

>
> * I downloaded a SVN snapshot yesterday, compiled and installed it;
>
> * I also downloaded, compiled, and installed
> madwifi-hal-0.10.5.6-r3698-20080604.
>
> * I then rebooted.
>
> wfconfig now indicates the following:
>
> $ iwconfig
> lo        no wireless extensions.
>
> eth0      no wireless extensions.
>
> wifi0     no wireless extensions.
>
> ath0      IEEE 802.11g  ESSID:""  Nickname:""
>         Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated
> Bit Rate:0 kb/s   Tx-Power:16 dBm   Sensitivity=1/1          Retry:off   RTS
> thr:off   Fragment thr:off
>         Power Management:off
>         Link Quality=0/70  Signal level=-96 dBm  Noise level=-96 dBm
>         Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>         Tx excessive retries:0  Invalid misc:0   Missed beacon:0
>
> However, it can't see any access points:
>
> $ iwlist ath0 scan
> ath0      No scan results

Does your machine have a physical wireless button ?  I would try
hitting/switching it and then checking your scan results again.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Madwifi-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/madwifi-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AR242x: no scan results, can't connect

Colin Brace
Administrator
[hidden email] wrote:
> On Sat, 28 Jun 2008, Colin Brace wrote:
>
>> * I removed the ath driver files included in Ubuntu;
>
> Make sure you also blacklist the ath_hal from linux-restricted-modules:
>
> In my /etc/default/linux-restricted-modules file, I added:
>
> DISABLED_MODULES="ath_hal"

I am a little confused by this. Doesn't the current CVS require the new
madwifi-hal package to be installed? As I wrote in my original message,
I compiled this package and installed it in the default location.
Blacklisting this module, ath0 doesn't get created.

In any case, this is what I now have loaded:

$ lsmod | grep ath
ath_rate_sample 16128 1
ath_pci 242104 0
wlan 236400 4 wlan_scan_sta,ath_rate_sample,ath_pci
ath_hal 305376 3 ath_rate_sample,ath_pci

Does this look right?

> Does your machine have a physical wireless button ? I would try
> hitting/switching it and then checking your scan results again.

It has doesn't have a hardward on/off WLAN switch; there is a "wifi"
button, but it is currently unassigned.

Just curious; if I run dhclient:

$ sudo dhclient ath0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wifi0: unknown hardware address type 801
wifi0: unknown hardware address type 801
Listening on LPF/ath0/00:1f:3a:b5:36:33
Sending on LPF/ath0/00:1f:3a:b5:36:33
Sending on Socket/fallback
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 9
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on ath0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.

It would appear to recognize the hardware and so forth, except for that
strange wifi0 error. Why is this node created?

Thanks.

--
  Colin Brace
  Amsterdam
  http://lim.nl



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Madwifi-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/madwifi-users
--
  Colin Brace
  Amsterdam
  http://lim.nl
vom
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AR242x: no scan results, can't connect

vom
On Mon, 30 Jun 2008, Colin Brace wrote:

> [hidden email] wrote:
>> On Sat, 28 Jun 2008, Colin Brace wrote:
>>
>>> * I removed the ath driver files included in Ubuntu;
>>
>> Make sure you also blacklist the ath_hal from linux-restricted-modules:
>>
>> In my /etc/default/linux-restricted-modules file, I added:
>>
>> DISABLED_MODULES="ath_hal"
>
> I am a little confused by this. Doesn't the current CVS require the new
> madwifi-hal package to be installed? As I wrote in my original message, I
> compiled this package and installed it in the default location. Blacklisting
> this module, ath0 doesn't get created.

I should have been clearer.  This line simply keeps the ath_hal from
ubuntu from appearing in /lib/modules/`uname -r`/volatile/.  Otherwise,
you would end up with two copies of ath_hal in the hierarchy (ubuntu's
from lrm, and your fresh one from madwifi source.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Madwifi-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/madwifi-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AR242x: no scan results, can't connect

Pavel Roskin
In reply to this post by Colin Brace
On Sat, 2008-06-28 at 13:15 -0700, Colin Brace wrote:

> However, it can't see any access points:
>
> $ iwlist ath0 scan
> ath0      No scan results

You need to do it as root.  Scanning without root privileges will return
the latest scan results.

> I try connecting to a unencrypted WAP manually like this:
>
> $ sudo iwconfig ath0 essid "myLinksys" key off
>
> but no go:
>
> $ iwconfig ath0
> ath0      IEEE 802.11g  ESSID:"WestWind"  Nickname:""
>          Mode:Managed  Frequency:2.437 GHz  Access Point: Not-Associated          
> Bit Rate:0 kb/s   Tx-Power:16 dBm   Sensitivity=1/1          Retry:off   RTS
> thr:off   Fragment thr:off
>          Power Management:off
>          Link Quality=0/70  Signal level=-96 dBm  Noise level=-96 dBm
>          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

The new HAL has some issues with noise mitigation.  It may not work well
for low signal-noise ratio.

See kernel log using the dmesg command if there are any errors reported
by the driver.  If the MAC revision is less than 14.2, you should be
able to use the trunk version of MadWifi, which has less problematic
HAL.

--
Regards,
Pavel Roskin

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Madwifi-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/madwifi-users
Loading...