Quellcode durchsuchen

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>
Luis R. Rodriguez vor 16 Jahren
Ursprung
Commit
98dfaa5778
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3 0
      drivers/net/wireless/mac80211_hwsim.c

+ 3 - 0
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: "