Skip to contentSkip to conversation

mac80211: fix initialisation when built-in

PATCH In review Johannes Berg 2 participants 2 messages Sep 11, 2007 – Sep 12, 2007 mac80211

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 mac80211: fix initialisation when built-in

When mac80211 is built into the kernel it needs to init earlier so that device registrations are run after it has initialised. The same applies to rate control algorithms.

---
 net/mac80211/ieee80211.c      |    2 +-
 net/mac80211/rc80211_simple.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
net/mac80211/ieee80211.c +1 -1
@@ -1501,7 +1501,7 @@ static void __exit ieee80211_exit(void)
 }
 
 
-module_init(ieee80211_init);
+subsys_initcall(ieee80211_init);
 module_exit(ieee80211_exit);
 
 MODULE_DESCRIPTION("IEEE 802.11 subsystem");
net/mac80211/rc80211_simple.c +1 -1
@@ -423,7 +423,7 @@ static void __exit rate_control_simple_e
 }
 
 
-module_init(rate_control_simple_init);
+subsys_initcall(rate_control_simple_init);
 module_exit(rate_control_simple_exit);
 
 MODULE_DESCRIPTION("Simple rate control algorithm for ieee80211");
#1 lore raw

I've tested that this patch, along with "[PATCH] cfg80211: fix initialisation if built-in" fixes the initialization issues I was seeing with the rt2x00 driver when built-in. Thanks Johannes!