hook up nl80211 again
Johannes Berg
maintainerPATCH 1/1 hook up nl80211 again
Apparently when doing all the cfg80211 changes I accidentally removed the nl80211 registration. This patch adds it back.
Signed-off-by Johannes Berg <[email protected]>
--- net/wireless/core.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
net/wireless/core.c +7 -2
@@ -242,19 +242,23 @@ EXPORT_SYMBOL(wiphy_free);static int cfg80211_init (void ) {int err =wiphy_sysfs_init (); -if (err)return err; err =cfg80211_wext_init (); -if (err) goto out_exit_sysfs; + err =nl80211_init (); +if (err) + goto out_nl80211; + ieee80211_debugfs_dir =debugfs_create_dir ("ieee80211" ,NULL );return 0 ; + out_nl80211: +cfg80211_wext_exit (); out_exit_sysfs:wiphy_sysfs_exit ();
@@ -265,6 +269,7 @@ module_init(cfg80211_init);static void cfg80211_exit (void ) {debugfs_remove (ieee80211_debugfs_dir); +nl80211_exit ();cfg80211_wext_exit ();wiphy_sysfs_exit (); }