diff options
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index ab8a860444af..ffff54944f9d 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -203,6 +203,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed) | |||
203 | int ret = 0; | 203 | int ret = 0; |
204 | int power; | 204 | int power; |
205 | 205 | ||
206 | might_sleep(); | ||
207 | |||
206 | if (local->sw_scanning) | 208 | if (local->sw_scanning) |
207 | chan = local->scan_channel; | 209 | chan = local->scan_channel; |
208 | else | 210 | else |