From: Jouni Malinen Date: Tue, 24 Feb 2009 14:49:58 +0000 (+0200) Subject: nl80211: Avoid AP mode BUG_ON hang with invalid lock assert X-Git-Tag: v2.6.30-rc1~662^2~460^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bfbce18b9c11201ebf1cfbc0deeab7bdbfe32a5;p=pandora-kernel.git nl80211: Avoid AP mode BUG_ON hang with invalid lock assert "cfg80211: add assert_cfg80211_lock() to ensure proper protection" added assert_cfg80211_lock() calls into various places. At least one of them, nl80211_send_wiphy(), should not have been there. That triggers the BUG_ON in assert_cfg80211_lock() and pretty much kills the kernel whenever someone runs hostapd.. Remove that call and make assert_cfg80211_lock() use WARN_ON instead of BUG_ON to be a bit more friendly to users. Signed-off-by: Jouni Malinen Acked-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed