Search Linux Wireless

Re: [PATCH] PS3: gelic: change the prefix of the net interface for wireless

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 12 Mar 2008 11:26:54 +0100 (CET)
Geert Uytterhoeven <Geert.Uytterhoeven@xxxxxxxxxxx> wrote:

> On Wed, 12 Mar 2008, Masakazu Mokuno wrote:
> > The gelic driver uses two net interfaces, one for ethernet and the
> > other for wireless. They share same MAC address and use 'eth' prefix
> > for the name.
> > As udev uses the MAC address to check uniqueness, this is
> > somewhat problematic.  So change the prefix of the network interface
> > name for the wireless so that udev can have an easy way to distinguish
> > interfaces.
> 
> Now my PS3 has `eth0' and `wlan0_rename'.
> I assume we still need changes to udev?

The patch just gives a clue to write nicer rule in udev.
My previous fix for this issue was to add an exception to udev like:

--- 75-persistent-net-generator.rules.orig	2008-03-04 14:17:07.000000000 +0900
+++ 75-persistent-net-generator.rules	2008-03-04 14:03:23.000000000 +0900
@@ -23,6 +23,9 @@
 # ignore Xen virtual interfaces
 SUBSYSTEMS=="xen", GOTO="persistent_net_generator_end"
 
+# ignore PS3 gelic interfaces; they share a mac address
+DRIVERS=="ps3_gelic_driver", GOTO="persistent_net_generator_end"
+
 # read MAC address
 ENV{MATCHADDR}="$attr{address}"
 
But Kay Sievers <kay.seivers@xxxxxxxx> told that he could add a nicer
rule if the wireless interface has the distinct prefix like 'wlan'.  So
I made this patch.

-- 
Masakazu MOKUNO

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux