Skip to contentSkip to conversation

mac80211_hwsim: let the reg workqueue breathe when regtest is set

PATCH New Luis R. Rodriguez 1 participant 1 message Mar 21, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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).

---
 drivers/net/wireless/mac80211_hwsim.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/net/wireless/mac80211_hwsim.c +3 -0
index a15078b..1a680cb 100644
@@ -1035,6 +1035,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: "
Signature · 1 line
1.6.0.6