LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 04-19-2005, 12:37 PM   #1
exluddite
LQ Newbie
 
Registered: Apr 2004
Location: Lafayette LA
Distribution: Slackware 10.2 , Debian Etch
Posts: 24

Rep: Reputation: 15
connecting with Madwifi via Netgear WAG311


So I installed the Madwifi drivers into Slackware 10.1. So far so good. The only problem is that it doesn't connect without a little prodding. This is what happens in the shell:

Code:
root@slacksys:/home/rob# modprobe ath_pci
Warning: loading /lib/modules/2.4.29/net/ath_hal.o will taint the kernel: non-GPL license - Proprietary
  See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module ath_hal loaded, with warnings
Module wlan loaded, with warnings
Module ath_rate_onoe loaded, with warnings
Module ath_pci loaded, with warnings
root@slacksys:/home/rob# iwconfig
lo        no wireless extensions.

ath0      IEEE 802.11  ESSID:""
          Mode:Managed  Frequency:2.412GHz  Access Point: 00:00:00:00:00:00
          Bit Rate:0kb/s   Tx-Power:50 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0/94  Signal level:-95 dBm  Noise level:-95 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@slacksys:/home/rob# /sbin/dhcpcd -d -t 10 ath0
dhcpcd: MAC address = 00:xx:xx:xx:xx:xx   #x's added by me
dhcpcd: your IP address = 192.168.1.101
root@slacksys:/home/rob# iwconfig
lo        no wireless extensions.

ath0      IEEE 802.11g  ESSID:"Trafficop323"
          Mode:Managed  Frequency:2.437GHz  Access Point: 00:xx:xx:xx:xx:xx  #x's added by me
          Bit Rate:54Mb/s   Tx-Power:50 dBm   Sensitivity=0/3
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:41/94  Signal level:-54 dBm  Noise level:-95 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Ok, modprobe I get. That leaves me with three questions:
1) What exactly is "/usr/sbin -d -t 10 ath0" doing for me? It seems like an odd command, what does it mean?
2) There are several warnings there. Should I be concerned about that and is there something I should do to fix potential problems? I know that part of Madwifi (Hal maybe?) is binary only due to some FCC rules, so that might be all there is to that, but I'm not sure.
3) How do I get things to automatically configure on startup? Is there a script that I need to add/edit to make this happen?

Thanks in advance for any input. Two big thumbs up for Slack 10.1 so far, by the way. This wireless card is usually the sticking point for most distros and other than what I mentioned above, everything with the card has gone without a hitch. It took all of a day or so and a bit of reading to get everything else pretty much the way I want it.
 
Old 04-19-2005, 01:32 PM   #2
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
1) I guess when you said "usr/sbin -d -t 10 ath0" you were refering to "/sbin/dhcpcd -d -t 10 ath0" am I right? If so, then it's getting IP configuration from a DHCP server (usually a router or your ISP).
2) Just a warning, nothing to be worried about but if you've a crash then it may be a place to start "debugging".
3) Add those commands to /etc/rc.d/rc.local . That file is automatically executed on startup after all other startup scripts finish.
 
Old 04-19-2005, 02:22 PM   #3
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
2. You're exactly right about the warnings. Adding proprietary modules, such as the hal module, to the kernel "taints" it. Those module warnings are simply a reminder that you are introducing something with a different license into the GNU/Linux kernel. And you are also right about the module being an FCC thing. Keeping part of the driver closed prevents the radio from being used inappropriately through modification of the driver.
 
Old 04-19-2005, 04:04 PM   #4
exluddite
LQ Newbie
 
Registered: Apr 2004
Location: Lafayette LA
Distribution: Slackware 10.2 , Debian Etch
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by gbonvehi
1) I guess when you said "usr/sbin -d -t 10 ath0" you were refering to "/sbin/dhcpcd -d -t 10 ath0" am I right? If so, then it's getting IP configuration from a DHCP server (usually a router or your ISP).
Yeah, I mistyped that bit. I figured the command was something to that effect, but I'm still not quite understanding it. Why "-d - t 10"? Would that command work just as well with just "dhcpcd" rather than "/sbin/dhcpcd"?
I've looked at the man pages, but I'm not seeing what I'm looking for in there. Maybe there's a good command reference on line someone could point me to? It works, which is good, but I like to know exactly why things work!
I'll check out the rc.local file when I get home.
Thanks!
 
Old 04-19-2005, 05:24 PM   #5
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 50
Quote:
Why "-d - t 10"?
Does it not work for you without these switches? From the manpage:

Quote:
To have dhcpd log to the standard error descriptor, spec_
ify the -d flag. This can be useful for debugging, and
also at sites where a complete log of all dhcp activity
must be kept but syslogd is not reliable or otherwise can_
not be used. Normally, dhcpd will log all output using
the syslog(3) function with the log facility set to
LOG_DAEMON.
Quote:
The DHCP server reads two files on startup: a configura_
tion file, and a lease database. If the -t flag is spec_
ified, the server will simply test the configuration file
for correct syntax, but will not attempt to perform any
network operations. This can be used to test the a new
configuration file automatically before installing it.
That sounds to me like you can ditch those switches.

Quote:
Would that command work just as well with just "dhcpcd" rather than "/sbin/dhcpcd"?
Maybe. It's all about your PATH. Why not just use the long form and know what you are running without any doubt? This is especially good practice in startup scripts.

If you want to know if "dhcpcd" and "/sbin/dhcpcd" are the same, try

Code:
which dhcpd
This will tell you "which" command is running when you type in "dhcpcd".
 
  


Reply



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
(athernos) netgear WG311, slackware, madwifi dave bean Linux - Wireless Networking 18 11-05-2006 04:16 AM
Netgear WG511T Won't Work With madwifi Drivers c84 Linux - Hardware 3 09-18-2005 12:25 PM
Netgear WG311 with Madwifi on Debian Tons of Fun Linux - Wireless Networking 0 05-31-2005 09:42 PM
Unable to get Madwifi on RH9 with Netgear WG511T Gaargie Linux - Wireless Networking 0 02-07-2005 02:42 AM
using netgear wag311 via madwifi exluddite Mandriva 8 12-27-2004 12:09 PM

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

All times are GMT -5. The time now is 12:32 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