On Mon, 2014-12-29 at 11:59 +0200, Arik Nemtsov wrote: > If a P2P GO is active, the cfg80211_reg_can_beacon function will take > the wdev lock, in its call to cfg80211_go_permissive_chan. But the wdev lock > is already taken by the parent channel-checking function, causing a > deadlock. > Split the checking code into two parts. The first part will check if the > wdev is active and saves the channel under the wdev lock. The second part > will check actual channel validity according to type. I'm not convinced this is the right thing to do. When checking for the current wdev that it can use a channel, then it seems that it's own current BSS connection (if any) shouldn't actually be taken into account - ergo the lock shouldn't have to be taken, that interface should be excluded from the "can beacon due to concurrent check" anyway. Also, the only reason this can happen anyway is when you call "can beacon" for a station interface - which seems nonsensical. Given that this is now really becoming far more complex than originally designed ("can beacon") with TDLS ("can IR") perhaps this should be * renamed to reg_can_ir() * passed an "exclude wdev" * (and use mutex_lock_nested with a big comment to explain to lockdep what's going on) or so. johannes -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html