Skip to content

Commit

Permalink
mac80211: add might_sleep to hw_config
Browse files Browse the repository at this point in the history
Just to catch bugs when changing mac80211.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Johannes Berg authored and John W. Linville committed Oct 31, 2008
1 parent faf3994 commit cb121ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/mac80211/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
int ret = 0;
int power;

might_sleep();

if (local->sw_scanning)
chan = local->scan_channel;
else
Expand Down

0 comments on commit cb121ba

Please sign in to comment.