2007-09-11 10:49:08

by Johannes Berg

[permalink] [raw]
Subject: [PATCH] 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.

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

---
net/mac80211/ieee80211.c | 2 +-
net/mac80211/rc80211_simple.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

--- wireless-dev.orig/net/mac80211/ieee80211.c 2007-09-11 12:48:01.272841092 +0200
+++ wireless-dev/net/mac80211/ieee80211.c 2007-09-11 12:48:06.232834148 +0200
@@ -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");
--- wireless-dev.orig/net/mac80211/rc80211_simple.c 2007-09-11 12:48:11.502839735 +0200
+++ wireless-dev/net/mac80211/rc80211_simple.c 2007-09-11 12:48:17.552835992 +0200
@@ -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");




2007-09-12 00:45:44

by Rob Hussey

[permalink] [raw]
Subject: Re: [PATCH] mac80211: fix initialisation when built-in

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!