Re: [SLUG] eth1 or wlan1

From: Chuck Hast (wchast@gmail.com)
Date: Mon Aug 07 2006 - 10:56:35 EDT


On 8/7/06, Eben King <eben01@verizon.net> wrote:
> On Mon, 7 Aug 2006, Chuck Hast wrote:
>
> > I was under the impression that when you set up a wireless lan nic it was
> > assigned a device name of wlan something. Indeed on my desktop I have
> > a wireless lan card and the wireless lan device is wlan0, the wired nic card
> > is eth0. But on my laptop eth0 is the wired device and eth1 is the wlan
> > device, It appears that the nic management tool is trying to handle the
> > ethernet device as though it was a wireless nic. I just disregard the
> > wireless
> > stuff for it, but it is not logical to step through a bunch of wireless
> > params
> > for a wired nic. What is involved in changing eth1 to wlan0? so that it is
> > more like what I am used to with other wireless card installs? Not sure
> > why the system has set it's self up this way. I am using SuSE 10.1,
> > but it was like that with 10.0 too.
>
> Is the "wlan" one running an older kernel? I looked in the source for
> 2.6.1[35].1 and found no uses of the string "wlan" but found 7 references to
> the string "eth" each. I think that sort of thing is controlled by the
> kernel. If you're running one specific to your distribution, who knows how
> they've modified it. What I did was
>
> eben@pc:~$ uname -r
> 2.6.13.1
> eben@pc:~$ find /usr/src/linux-`uname -r` -name \*.[ch] | xargs grep '"wlan"'
> eben@pc:~$ find /usr/src/linux-`uname -r` -name \*.[ch] | xargs grep '"eth"'
> /usr/src/linux-2.6.13.1/arch/um/drivers/net_kern.c:__setup("eth", eth_setup);
> /usr/src/linux-2.6.13.1/arch/um/drivers/net_kern.c: .name = "eth",
> /usr/src/linux-2.6.13.1/arch/xtensa/platform-iss/network.c:__setup("eth", iss_net_setup);
> /usr/src/linux-2.6.13.1/drivers/net/Space.c: unsigned long base_addr = netdev_boot_base("eth", unit);
> /usr/src/linux-2.6.13.1/drivers/net/sunhme.c: if (!strncmp(dev->name, "eth", 3)) {
> /usr/src/linux-2.6.13.1/drivers/net/tulip/de4x5.c: if (!(q = strstr(p+strlen(dev->name), "eth"))) q = p + strlen(p);
> /usr/src/linux-2.6.13.1/net/irda/irlan/irlan_common.c:static int eth; /* Use "eth" or "irlan" name for devices */
>
> If you see anything additional (except maybe "rcX") in the "uname"'s output,
> you have a modified kernel.
>
> Your kernel source (if installed) may be elsewhere.
>

I am running SuSE 10.1 but it was 10.0 prior to the upgrade, and it was
using eth1 for the wlan port under 10.0, so I am not sure if it just inherirted
the nomeclature when I did the upgrade or what. The 10.0 was I think a
2.6.13 kernel, the 10.1. is a 2.6.16 kernel.

Here is what I got when I did your instructions... I think that the
source if installed
is elsewhere. I will look but here is what I got

RF-mobile:/ # uname -r
2.6.16.13-4-default
RF-mobile:/ # find /usr/src/linux-`uname -r` -name \*.[ch] | xargs grep '"wlan"'
find: /usr/src/linux-2.6.16.13-4-default: No such file or directory
RF-mobile:/ # find /usr/src/linux-`uname -r` -name \*.[ch] | xargs grep '"eth"'
find: /usr/src/linux-2.6.16.13-4-default: No such file or directory
RF-mobile:/ #

-- 
Chuck Hast  -- KP4DJT --
To paraphrase my flight instructor;
"the only dumb question is the one you DID NOT ask resulting in my going
out and having to identify your bits and pieces in the midst of torn
and twisted metal."
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 15:45:45 EDT