提交 cb121bad 编写于 作者: J Johannes Berg 提交者: John W. Linville

mac80211: add might_sleep to hw_config

Just to catch bugs when changing mac80211.
Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 faf3994a
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册