-
由 Stanislaw Gruszka 提交于
This fix regression introduced by: commit: ecb44335 Author: Stanislaw Gruszka <sgruszka@redhat.com> Date: Fri Aug 12 14:00:59 2011 +0200 mac80211: fix suspend/resume races with unregister hw Above commit add rtnl_lock() into wiphy_register(), what cause deadlock when initializing ipw2x00 driver, which itself call wiphy_register() from register_netdev() internal callback with rtnl mutex taken. To fix move wiphy_register() outside register_netdev(). This solution have side effect of not creating /sys/class/net/wlanX/phy80211 link, but that's a minor issue we can live with. Bisected-by: NWitold Baryluk <baryluk@smp.if.uj.edu.pl> Bisected-by: NMichael Witten <mfwitten@gmail.com> Tested-by: NWitold Baryluk <baryluk@smp.if.uj.edu.pl> Tested-by: NMichael Witten <mfwitten@gmail.com> Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
7cabafce