diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-03-21 04:46:11 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-03-28 01:13:06 +0100 |
commit | 98dfaa577855a551e798e3a99b934386698d2026 (patch) | |
tree | fc6677848205605eb159c457e8c7e0a52b2ab3c3 /drivers/net/wireless | |
parent | Add mesh point functionality to ath9k (diff) | |
download | linux-98dfaa577855a551e798e3a99b934386698d2026.tar.xz linux-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/net/wireless')
-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: " |