From: Masakazu Mokuno Date: Wed, 12 Mar 2008 07:41:11 +0000 (+0900) Subject: PS3: gelic: change the prefix of the net interface for wireless X-Git-Tag: v2.6.25-rc7~54^2~22^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c1e889be18aff97e20853231531b79d79a984369;p=linux-2.6-omap-h63xx.git PS3: gelic: change the prefix of the net interface for wireless 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. Signed-off-by: Masakazu Mokuno Signed-off-by: John W. Linville --- diff --git a/drivers/net/ps3_gelic_wireless.c b/drivers/net/ps3_gelic_wireless.c index f28b05f0bd9..ddbc6e475e2 100644 --- a/drivers/net/ps3_gelic_wireless.c +++ b/drivers/net/ps3_gelic_wireless.c @@ -2392,6 +2392,8 @@ static struct net_device *gelic_wl_alloc(struct gelic_card *card) if (!netdev) return NULL; + strcpy(netdev->name, "wlan%d"); + port = netdev_priv(netdev); port->netdev = netdev; port->card = card;