aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-03-20 23:46:11 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-03-27 20:13:06 -0400
commit98dfaa577855a551e798e3a99b934386698d2026 (patch)
treefc6677848205605eb159c457e8c7e0a52b2ab3c3
parent9cb5412b0760981d43ac3e612992c90cea690e72 (diff)
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 <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c3
1 files changed, 3 insertions, 0 deletions
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)
1041 break; 1041 break;
1042 } 1042 }
1043 1043
1044 /* give the regulatory workqueue a chance to run */
1045 if (regtest)
1046 schedule_timeout_interruptible(1);
1044 err = ieee80211_register_hw(hw); 1047 err = ieee80211_register_hw(hw);
1045 if (err < 0) { 1048 if (err < 0) {
1046 printk(KERN_DEBUG "mac80211_hwsim: " 1049 printk(KERN_DEBUG "mac80211_hwsim: "