LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-17-2008, 11:07 AM   #1
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Rep: Reputation: Disabled
Madwifi Problems


I recently obtained a Toshiba Satellite laptop. It uses the Atheros wireless chipset on PCI Express:
Code:
$ /sbin/lspci | grep Atheros
17:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
I installed 12.1 on this laptop & have both the huge & generic kernels. I get the same results with both kernels.
I have installed the madwifi packages from SBo. (I have also tried Alien Bob's packages, with the same results). The modules are loaded on boot:
Code:
$ /sbin/lsmod | grep ath
ath_pci                94752  0
wlan                  194032  1 ath_pci
ath_hal               193488  1 ath_pci
I have tried following the instructions from madwifi.org with this result:
Code:
# wlanconfig ath0 create wlandev wifi0 wlanmode sta
wlanconfig: ioctl: No such device
root@laptop:~
# wlanconfig ath0 destroy
wlanconfig: ioctl: No such device
root@laptop:~
# wlanconfig ath0 create wlandev wifi0 wlanmode sta
wlanconfig: ioctl: No such device
It seems that the device ath0 is not being created. Madwifi.org & Alien Bob's Howto seem to assume that if the modules are loaded, the device is created. What am I doing wrong?
Regards,
Bill
 
Old 06-17-2008, 11:59 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
I have Atheros 5212 PCI card and works flawlessly with madwifi. Here's what I have in my rc.inet1.conf. BTW, I've used Alien Bob's slackbuild to make the package.

Code:
IFNAME[0]="ath0"
IPADDR[0]="192.168.1.101"
NETMASK[0]="255.255.255.0"
USE_DHCP[0]=""
DHCP_HOSTNAME[0]=""
WLAN_WPA[0]="wpa_supplicant"
WLAN_WPADRIVER[0]="wext"
I also load the module from rc.modules.
Code:
modprobe ath_pci
This creates the device node and connects to my router using key in wpa_supplicant.conf

Last edited by tuxrules; 06-17-2008 at 12:01 PM.
 
Old 06-17-2008, 12:39 PM   #3
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Bill,

I didn't get things working until I set up my router with static IP addressing.

Here's the thread I started on what I did to get MadWIFI working. Maybe there's something in there that will be helpful for you.

Regards,

-Drew
 
Old 06-17-2008, 12:51 PM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105Reputation: 8105
Instead of running the unnecessary wlanconfig commands, can you just run
Code:
ifconfig -a
and
Code:
iwconfig
and look at these commands' output for the existence of an ath0 wireless interface?

It may be that your card is not supported by madwifi (which I doubt) or that the card's radio is turned of (there are wiki pages at http://madwifi.org dealing with that issue).

Also inspect /var/log/messages and /var/log/syslog for any signs of module loading errors.

Eric
 
Old 06-17-2008, 02:22 PM   #5
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Original Poster
Rep: Reputation: Disabled
tuxrules & Lufbery:
I've tried your various suggestions, but the problem is that although the modules are loading, the ath device is not getting created. ifconfig & iwconfig only show eth0 & lo.

Eric:
I downloaded your SlackBuild & the most recent madwifi snapshot & used them to replace the SBo packages. Everything remains the same as in my first post. I'm thinking that the AR242x chip is not supported by madwifi. Is ndiswrapper a possible help? I've never needed ndiswrapper & don't know much about it.
Regards,
Bill
 
Old 06-17-2008, 03:55 PM   #6
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
Try this:
Code:
wget http://snapshots.madwifi.org/special/madwifi-nr-r3366+ar5007.tar.gz
tar -zxvf madwifi-nr-r3366+ar5007.tar.gz
cd madwifi-nr-r3366+ar5007
make
checkinstall --fstrans=no -S -y
installpkg madwifi-nr-r3366+ar5007-i386-1.tgz
cd .. 
rm -rf  madwifi-nr-r3366+ar5007*
check the logs:
Code:
dmesg | egrep -i '(ath|wifi)'
and then configure your wireless card.
 
Old 06-18-2008, 10:14 AM   #7
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Original Poster
Rep: Reputation: Disabled
Solved!!

Thanks to everyone, especially Road-map. I followed his instructions to the letter & am now posting via the wireless adaptor.
Drew: I did not have to use a static IP; this chip worked fine with DHCP, after I entered the "Default Gateway" in rc.inet1.
I do not have security set up yet. Fortunately, I live 15 miles out of town & my nearest neighbor with a computer is about a half mile away. Setting security is my next project.
Thanks again,
Bill
 
Old 06-18-2008, 11:16 AM   #8
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Bill,

I'm glad things are working for you. This place is pretty cool, isn't it?

Regards,

-Drew
 
Old 06-18-2008, 04:17 PM   #9
TSquaredF
Member
 
Registered: Dec 2005
Location: "The South Coast of Texas"
Distribution: Slackware64-current
Posts: 564

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Lufbery View Post
Bill,

I'm glad things are working for you. This place is pretty cool, isn't it?

Regards,

-Drew
Indeed. It's great to have access to all the resources that are available here. Thanks again to all involved.
Regards,
Bill
 
  


Reply


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
Madwifi Problems wc5b Mandriva 1 11-11-2006 04:31 PM
Madwifi Problems OPP Debian 1 05-22-2006 05:22 PM
dhclient (or maybe madwifi?) problems jbuckley2004 Linux - Wireless Networking 2 07-30-2005 12:01 PM
Madwifi compile problems Hockeyfan Linux - Wireless Networking 5 11-19-2004 06:06 PM
MADWifi compile problems MysteriousRevC Linux - Newbie 2 08-28-2004 02:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration