LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 04-22-2006, 03:08 PM   #1
taids
Member
 
Registered: Jul 2003
Location: Wales, UK
Distribution: Slackware/Ubuntu/iWhax
Posts: 31

Rep: Reputation: 15
Question ipw3945 and ifrename, and general ifrename question


First of all, is using ifrename to get wireless cards to have wlan* names instead of eth* names the best way to do things? I was having issues with Slackware loading a PCMCIA card as eth0 if it was plugged in at boot, but not at other times, making configuration (rc.inet1.conf) quite difficult if the onboard lan interface (which is eth0 or eth1 depending on the PCMCIA card being plugged) have different settings.

I got around it by specifying the onboard interface as the first module to load in rc.modules, and that's made it appear as eth0 first all the time now. The on-board wireless in this laptop uses the ipw3945 driver, and loading that usually causes it to become eth1 or eth2.

I've edited /etc/modprobe.conf and made a wildcard mac address match in /etc/iftab to rename the PCMCIA wireless card to wlan* instead. Is this the best way to do it? I'm kind of accustomed to OpenBSD's naming conventions for network interfaces. The PCMCIA card is a generic orinoco_cs/hermes card, and the modprobe line is seen below for it...

Trying to do the same for the on-board (ipw3945) device doesn't work so well though. The problem is, modprobe.conf needed to be modified to load a 'regulatory daemon' (ipw3945d) when the module is modprobe'd. Doing so seems to bring the device up before ifrename can do it's magic and therefore fails. So, I'm wondering what'd be the best way to get around this? I've tried putting in sleep statements in the modprobe.conf line (as I'll show below) and it doesn't work, plus using sleep timings isn't always going to be accurate is it?

in modprobe.conf:
Code:
install ipw3945 /sbin/modprobe -i ipw3945; /sbin/ipw3945d --quiet; /sbin/ifrename
install orinoco_cs /sbin/modprobe -i orinoco_cs ; /sbin/ifrename
the older version with the sleep command in looked like:
Code:
install ipw3945 /sbin/modprobe -i ipw3945; /sbin/ipw3945d --quiet; sleep 0.6 /sbin/ifrename
Anything less than 0.5 was too soon, the interface hadn't appeared, and anything above, it was already up and couldn't be renamed. There's nothing wrong with the iftab line, as it works if I manually bring down the interface and then run ifrename, but I'll list it anyway:

Code:
wlan* mac 00:13:20:* # intel on-board
wlan* mac 00:02:2D:* # orinoco/hermes
Any suggestions/comments/recommendations? Slackware seems to be a bitch to get specific devices to have specific settings if the module loading order is different, and I don't know of another way to rename other than with messing with udev, and that would mean hard-specifying the interface name and number (e.g. wlan0)...
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
General OS question, newb question ty13 General 14 04-11-2006 08:21 PM
is the ipw3945 driver due for inclusion into upcoming kernel? steve1401 Linux - Wireless Networking 4 04-06-2006 10:58 AM
A truly general question CrazyDelta Linux - General 2 05-17-2005 08:03 PM
general question stealthgate Linux - Software 4 05-09-2005 08:50 PM
general question Cheese Linux - Newbie 10 12-01-2001 09:26 PM


All times are GMT -5. The time now is 03:45 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
Open Source Consulting | Domain Registration