LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices

Reply
 
Search this Thread
Old 06-20-2008, 06:16 PM   #1
coachd
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
atheros wifi help - whats wrong with this lsmod?


All, somewhat of a newbie here.

Is there anything wrong with this:

root@coachd-laptop:~# lsmod | grep ath
ath_pci 101024 0
wlan 207728 1 ath_pci
ath_hal 192592 1 ath_pci


? I can't seem to find out why it's not working. Also, I get this when trying to use wlanconfig:

root@coachd-laptop:~# wlanconfig ath0 create wlandev wifi0 wlanmode sta
wlanconfig: ioctl: No such device
root@coachd-laptop:~#

Anyhelp - many thanks...

Dinos
 
Old 06-21-2008, 10:29 AM   #2
Tons of Fun
Member
 
Registered: Dec 2004
Location: Orlando, Florida
Distribution: Debian Squeeze / BackTrack 5/ Linux Mint 11
Posts: 359

Rep: Reputation: 32
What distro are you using? Also, run the commands "ifconfig" and "iwlist scan" without the quotes and display them here. My experience with atheros chipsets was that I had to use module assistant to get it working.
 
Old 06-21-2008, 11:52 PM   #3
coachd
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tons of Fun View Post
What distro are you using? Also, run the commands "ifconfig" and "iwlist scan" without the quotes and display them here. My experience with atheros chipsets was that I had to use module assistant to get it working.
Thank you for your help! I'm using Ubuntu 8.04. Commands are below.

IFCONFIG:
eth0 Link encap:Ethernet HWaddr 00:1e:ec:21:57:bc
inet addr:192.168.1.5 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::21e:ecff:fe21:57bc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6647 errors:0 dropped:0 overruns:0 frame:0
TX packets:4372 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8730792 (8.3 MB) TX bytes:544904 (532.1 KB)
Interrupt:17 Base address:0x1000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1586 errors:0 dropped:0 overruns:0 frame:0
TX packets:1586 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:79300 (77.4 KB) TX bytes:79300 (77.4 KB)

IWLIST SCAN
lo Interface doesn't support scanning.

eth0 Interface doesn't support scanning.

The module is loaded (I checked by doing modprobe -l | grep ath) and saw ath_pci.ko as well as a few others starting with ath_.
-----------------------------------------------------------------
I've also tried:

root@coachd-laptop:/home/coachd# wlanconfig ath0 create wlandev wifi0 wlanmode sta
wlanconfig: ioctl: No such device

To me, I swear from my past experience with linux that something's up with the driver itself. I can't even create the interface.

I'm very curious and very interested to see what fixes this. Your reply is very much appreciated.

Dinos
 
Old 06-22-2008, 12:30 AM   #4
LordAnta
Member
 
Registered: Apr 2008
Location: Bucharest, Romania
Distribution: Slackware current
Posts: 126

Rep: Reputation: 17
Are you sure you have an atheros based wifi card?

Post the result of the command:
Code:
  lspci
 
Old 06-22-2008, 01:12 AM   #5
coachd
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by LordAnta View Post
Are you sure you have an atheros based wifi card?

Post the result of the command:
Code:
  lspci

LSMOD:
Module Size Used by
nls_iso8859_1 4992 1
nls_cp437 6656 1
vfat 14464 1
fat 54556 1 vfat
i915 32512 2
drm 82452 3 i915
ipv6 267780 17
rfcomm 41744 2
l2cap 25728 13 rfcomm
bluetooth 61156 4 rfcomm,l2cap
ppdev 10372 0
acpi_cpufreq 10796 1
cpufreq_powersave 2688 0
cpufreq_conservative 8712 0
cpufreq_userspace 5284 0
cpufreq_stats 7104 0
cpufreq_ondemand 9740 1
freq_table 5536 3 acpi_cpufreq,cpufreq_stats,cpufreq_ondemand
sbs 15112 0
container 5632 0
dock 11280 0
sbshc 7680 1 sbs
af_packet 23812 2
iptable_filter 3840 0
ip_tables 14820 1 iptable_filter
x_tables 16132 1 ip_tables
parport_pc 36260 0
lp 12324 0
parport 37832 3 ppdev,parport_pc,lp
ndiswrapper 192920 0
joydev 13120 0
snd_hda_intel 344728 2
snd_pcm_oss 42144 0
snd_mixer_oss 17920 1 snd_pcm_oss
snd_pcm 78596 2 snd_hda_intel,snd_pcm_oss
snd_page_alloc 11400 2 snd_hda_intel,snd_pcm
snd_hwdep 10500 1 snd_hda_intel
snd_seq_dummy 4868 0
uvcvideo 58116 0
snd_seq_oss 35584 0
compat_ioctl32 2304 1 uvcvideo
videodev 29440 1 uvcvideo
v4l1_compat 15492 2 uvcvideo,videodev
v4l2_common 18304 2 uvcvideo,videodev
ath_pci 100896 0
sr_mod 17956 0
cdrom 37408 1 sr_mod
snd_seq_midi 9376 0
wlan 207088 1 ath_pci
ath_hal 192592 1 ath_pci
snd_rawmidi 25760 1 snd_seq_midi
snd_seq_midi_event 8320 2 snd_seq_oss,snd_seq_midi
snd_seq 54224 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
serio_raw 7940 0
snd_timer 24836 2 snd_pcm,snd_seq
snd_seq_device 9612 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
psmouse 40336 0
video 19856 0
output 4736 1 video
wmi_acer 9644 0
snd 56996 15 snd_hda_intel,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_hwdep,snd_seq_dummy,snd_seq_oss,snd_rawmidi,snd_ seq,snd_timer,snd_seq_device
button 9232 0
battery 14212 0
ac 6916 0
intel_agp 25492 1
soundcore 8800 1 snd
shpchp 34452 0
pci_hotplug 30880 1 shpchp
iTCO_wdt 13092 0
iTCO_vendor_support 4868 1 iTCO_wdt
agpgart 34760 3 drm,intel_agp
pcspkr 4224 0
evdev 13056 7
ext3 136712 1
jbd 48404 1 ext3
mbcache 9600 1 ext3
sg 36880 0
sd_mod 30720 5
ata_piix 19588 0
usb_storage 73664 1
libusual 19108 1 usb_storage
8139cp 24704 0
pata_acpi 8320 0
ata_generic 8324 0
ahci 28420 2
8139too 27520 0
mii 6400 2 8139cp,8139too
ehci_hcd 37900 0
libata 159344 4 ata_piix,pata_acpi,ata_generic,ahci
scsi_mod 151436 5 sr_mod,sg,sd_mod,usb_storage,libata
uhci_hcd 27024 0
usbcore 146028 7 ndiswrapper,uvcvideo,usb_storage,libusual,ehci_hcd,uhci_hcd
thermal 16796 0
processor 36872 4 acpi_cpufreq,thermal
fan 5636 0
fbcon 42912 0
tileblit 3456 1 fbcon
font 9472 1 fbcon
bitblit 6784 1 fbcon
softcursor 3072 1 bitblit
fuse 50580 3


Also, from /var/log/syslog
Jun 22 01:56:10 coachd-laptop kernel: [ 41.813860] wifi%d: unable to attach hardware: 'Hardware revision not supported' (HAL status 13)

--> this the problem?

If so, I know the card has worked before...then strangely, after a reboot, it stopped...so I know it can work. Something's happen though.

I'm using MadWifi 0.9.4 - the latest on their website.

LSPCI, for fyi
01:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

In syslog, I see:
Jun 22 01:56:10 coachd-laptop kernel: [ 41.306195] ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)


My curiousity is high!

Thanks all,
Dinos
 
Old 06-22-2008, 01:18 AM   #6
coachd
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
Sorry for the long post with the lsmod...

I'm thinking if I can find a more recent version of ath_hal I might be okay again?
 
Old 06-22-2008, 05:04 AM   #7
webaware
Member
 
Registered: Nov 2007
Location: Australia
Distribution: Fedora FC-9 x86-64+i686,CentOS 5.2 i686
Posts: 58

Rep: Reputation: 15
It looks like you have the AR7000EG chipset (please confirm by posting the output of lspci), which isn't supported by the current release package of madwifi. There is a patch available, if you are prepared to download the source, make the patch, compile and install. And reboot! Very important last step, will save you much head scratching.

See this post on the Fedora forum, I followed it to get mine working on my ASUS laptop.
 
Old 06-22-2008, 09:56 AM   #8
coachd
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
thank you...making progress...

thank webaware & all - here's my lspci output:

coachd@coachd-laptop:~$ lspci
00:00.0 Host bridge: Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation 82801HEM (ICH8M) LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
01:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
02:01.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
coachd@coachd-laptop:~$

I tried instructions in the Fedora post, but I couldn't compile ath_pci afterwards.

I found madwifi-ng-r2756+ar5007 -- and now I can scan, see ath0 interface. Only problem now is -- I can't get a dhcp lease.

Frustrated now but won't give up since I love linux so much...

D
 
Old 06-22-2008, 10:04 AM   #9
LordAnta
Member
 
Registered: Apr 2008
Location: Bucharest, Romania
Distribution: Slackware current
Posts: 126

Rep: Reputation: 17
What distro are you using, what kernel and how do you try to connect to a wireless point?
 
Old 06-22-2008, 10:29 AM   #10
coachd
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Original Poster
Rep: Reputation: 0
ok...so I got it to work

I'm using Ubunutu 8.04. I was actually able to compile the madwifi source with the latest ath_hal. My problem was that I was removing the ath_hal director in the madwifi source not the hal folder. Once I did this - it started working.

Now, before it would start connecting with a dhcp address - I had to use the Network Applet (I used Gnome) to set the connection not to be "roaming" and then back to roaming. Not sure why this worked - but it did.

I also rebooted to confirm - and Im' still and working.

I love that awesome feeling linux gives me when I get something working.

Thank goodness!

Anyway - thanks EVERYONE for your help.

Dinos
 
  


Reply

Tags
ath, atheros, wifi


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
atheros wifi drivers nitelotus Suse/Novell 2 03-20-2007 05:41 PM
atheros AR5BMB5 wifi blueAlien Linux - Hardware 3 05-17-2006 05:52 PM
Wifi Atheros 54 slack mirto Slackware 5 11-23-2005 04:34 AM
Atheros WiFi Card RySk8er30 Mandriva 4 09-04-2005 01:07 AM
XANDROS 3.0 and atheros wifi i am trying Linux - Hardware 2 02-06-2005 03:04 AM


All times are GMT -5. The time now is 08:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration