Project : madwifi
Revision : 2620
Author : mentor (Matthew W. S. Bell)
Date : 2007-07-27 18:49:56 +0200 (Fri, 27 Jul 2007)
Log Message :
Move virtual FS setup to a late vattach, as dev.kobj is initialised by
register_netdevice in ieee80211_vap_setup
Affected Files:
* trunk/net80211/ieee80211.c updated
* trunk/net80211/ieee80211_linux.c updated
* trunk/net80211/ieee80211_linux.h updated
Modified: trunk/net80211/ieee80211.c
===================================================================
--- trunk/net80211/ieee80211.c 2007-07-26 17:49:56 UTC (rev 2619)
+++ trunk/net80211/ieee80211.c 2007-07-27 16:49:56 UTC (rev 2620)
@@ -496,7 +496,6 @@
ieee80211_scan_vattach(vap);
ieee80211_vlan_vattach(vap);
ieee80211_ioctl_vattach(vap);
- ieee80211_virtfs_vattach(vap);
return 1;
#undef IEEE80211_C_OPMODE
@@ -511,6 +510,7 @@
struct ieee80211com *ic = vap->iv_ic;
struct ifmediareq imr;
+ ieee80211_virtfs_latevattach(vap);
ieee80211_node_latevattach(vap); /* XXX: move into vattach */
ieee80211_power_latevattach(vap); /* XXX: move into vattach */
Modified: trunk/net80211/ieee80211_linux.c
===================================================================
--- trunk/net80211/ieee80211_linux.c 2007-07-26 17:49:56 UTC (rev 2619)
+++ trunk/net80211/ieee80211_linux.c 2007-07-27 16:49:56 UTC (rev 2620)
@@ -711,7 +711,7 @@
};
void
-ieee80211_virtfs_vattach(struct ieee80211vap *vap)
+ieee80211_virtfs_latevattach(struct ieee80211vap *vap)
{
int i, space;
char *devname = NULL;
@@ -972,7 +972,7 @@
switch (event) {
case NETDEV_CHANGENAME:
ieee80211_virtfs_vdetach(dev->priv);
- ieee80211_virtfs_vattach(dev->priv);
+ ieee80211_virtfs_latevattach(dev->priv);
return NOTIFY_DONE;
default:
break;
Modified: trunk/net80211/ieee80211_linux.h
===================================================================
--- trunk/net80211/ieee80211_linux.h 2007-07-26 17:49:56 UTC (rev 2619)
+++ trunk/net80211/ieee80211_linux.h 2007-07-27 16:49:56 UTC (rev 2620)
@@ -539,7 +539,7 @@
proc_dointvec(ctl, write, filp, buffer, lenp, ppos)
#endif
-void ieee80211_virtfs_vattach(struct ieee80211vap *);
+void ieee80211_virtfs_latevattach(struct ieee80211vap *);
void ieee80211_virtfs_vdetach(struct ieee80211vap *);
int ieee80211_proc_vcreate(struct ieee80211vap *, struct file_operations *,
char *);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
|