aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/main.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-10-14 10:38:55 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-10-31 19:00:22 -0400
commitcb121bad67a32cde37adc2729b7e18aa4fd3063e (patch)
treeec0eee59130288c806055a42679e7120b1ddbf17 /net/mac80211/main.c
parentfaf3994a9f65fd95a68bbcc03c318a427cd1e7d3 (diff)
mac80211: add might_sleep to hw_config
Just to catch bugs when changing mac80211. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r--net/mac80211/main.c2
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