brcmfmac: Fix rtnl_lock lockup when registering netdev.
authorHante Meuleman <meuleman@broadcom.com>
Fri, 8 Feb 2013 14:53:59 +0000 (15:53 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Feb 2013 19:51:42 +0000 (14:51 -0500)
commit28c14f4a3b4639032c7cd35a7d8bdd2898b5fbf2
tree94da0fccb0c37c4b5f8a20447e7c1a639d2f4628
parent7ab6acd025cdca23485227d85d80cb747a71d1fc
brcmfmac: Fix rtnl_lock lockup when registering netdev.

When adding a virtual interface cfg80211 already has taken the
rtnl_lock. So when the netdevice is being registered the
register_netdevice should be used instead of register_netdev.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Piotr Haber <phaber@broadcom.com>
Signed-off-by: Hante Meuleman <meuleman@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmfmac/dhd.h
drivers/net/wireless/brcm80211/brcmfmac/dhd_linux.c
drivers/net/wireless/brcm80211/brcmfmac/fweh.c
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c