From: Luis R. Rodriguez Date: Sat, 21 Mar 2009 03:46:11 +0000 (-0400) Subject: mac80211_hwsim: let the reg workqueue breathe when regtest is set X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=98dfaa577855a551e798e3a99b934386698d2026;p=openwrt%2Fstaging%2Fblogic.git mac80211_hwsim: let the reg workqueue breathe when regtest is set Without this the regulatory domain isn't seen and we end up intersecting for each request (each radio). Signed-off-by: Luis R. Rodriguez Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 2368b7f825a2..551161024756 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -1041,6 +1041,9 @@ static int __init init_mac80211_hwsim(void) break; } + /* give the regulatory workqueue a chance to run */ + if (regtest) + schedule_timeout_interruptible(1); err = ieee80211_register_hw(hw); if (err < 0) { printk(KERN_DEBUG "mac80211_hwsim: "