aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ps3_gelic_wireless.c
diff options
context:
space:
mode:
authorMasakazu Mokuno <mokuno@sm.sony.co.jp>2008-03-12 03:41:11 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-03-13 15:57:25 -0400
commitc1e889be18aff97e20853231531b79d79a984369 (patch)
treeff5ea3f418143df00e62342264a060bc01a7d5f5 /drivers/net/ps3_gelic_wireless.c
parentaad4c7d3a641315519add159a80f73cce554e7cd (diff)
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 <mokuno@sm.sony.co.jp> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/ps3_gelic_wireless.c')
-rw-r--r--drivers/net/ps3_gelic_wireless.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ps3_gelic_wireless.c b/drivers/net/ps3_gelic_wireless.c
index f28b05f0bd95..ddbc6e475e28 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)
2392 if (!netdev) 2392 if (!netdev)
2393 return NULL; 2393 return NULL;
2394 2394
2395 strcpy(netdev->name, "wlan%d");
2396
2395 port = netdev_priv(netdev); 2397 port = netdev_priv(netdev);
2396 port->netdev = netdev; 2398 port->netdev = netdev;
2397 port->card = card; 2399 port->card = card;