Skip to content

Commit

Permalink
mac80211_hwsim: let the reg workqueue breathe when regtest is set
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Luis R. Rodriguez authored and John W. Linville committed Mar 28, 2009
1 parent 9cb5412 commit 98dfaa5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/mac80211_hwsim.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: "
Expand Down

0 comments on commit 98dfaa5

Please sign in to comment.