]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
mac80211_hwsim: let the reg workqueue breathe when regtest is set
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Sat, 21 Mar 2009 03:46:11 +0000 (23:46 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Sat, 28 Mar 2009 00:13:06 +0000 (20:13 -0400)
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>
drivers/net/wireless/mac80211_hwsim.c

index 2368b7f825a233f26f3b1406474f836bdb74208d..551161024756f534ab69a9b75acf64e6049cc020 100644 (file)
@@ -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: "