提交 98dfaa57 编写于 作者: L Luis R. Rodriguez 提交者: John W. Linville

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: NLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 9cb5412b
...@@ -1041,6 +1041,9 @@ static int __init init_mac80211_hwsim(void) ...@@ -1041,6 +1041,9 @@ static int __init init_mac80211_hwsim(void)
break; break;
} }
/* give the regulatory workqueue a chance to run */
if (regtest)
schedule_timeout_interruptible(1);
err = ieee80211_register_hw(hw); err = ieee80211_register_hw(hw);
if (err < 0) { if (err < 0) {
printk(KERN_DEBUG "mac80211_hwsim: " printk(KERN_DEBUG "mac80211_hwsim: "
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册