diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-03-20 23:46:11 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-27 20:13:06 -0400 |
commit | 98dfaa577855a551e798e3a99b934386698d2026 (patch) | |
tree | fc6677848205605eb159c457e8c7e0a52b2ab3c3 /drivers | |
parent | 9cb5412b0760981d43ac3e612992c90cea690e72 (diff) | |
download | lwn-98dfaa577855a551e798e3a99b934386698d2026.tar.gz lwn-98dfaa577855a551e798e3a99b934386698d2026.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 3 |
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) 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: " |