Commit cb121bad authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

mac80211: add might_sleep to hw_config

Just to catch bugs when changing mac80211.
Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent faf3994a
...@@ -203,6 +203,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed) ...@@ -203,6 +203,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
int ret = 0; int ret = 0;
int power; int power;
might_sleep();
if (local->sw_scanning) if (local->sw_scanning)
chan = local->scan_channel; chan = local->scan_channel;
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment