Subject: [PATCH 02/18] d80211: master link

From: Johannes Berg <[email-masked]>
Date: Mon, 21 Aug 2006 09:41:09 +0200

This patch adds a link from the wiphy to the master device in sysfs.

Signed-off-by: Johannes Berg <[email-masked]>

--- wireless-dev.orig/net/d80211/ieee80211.c	2006-08-20 14:56:15.968192788 +0200
+++ wireless-dev/net/d80211/ieee80211.c	2006-08-20 14:56:16.818192788 +0200
@@ -4449,6 +4449,7 @@ int ieee80211_register_hw(struct net_dev
 		rtnl_unlock();
 		goto fail_dev;
 	}
+	sysfs_create_link(&local->class_dev.kobj, &dev->class_dev.kobj, "master");
 	result = ieee80211_sysfs_add_netdevice(dev);
 	rtnl_unlock();
 	if (result < 0)

--