brcmfmac: Create netdev before returning from add_virtual_intf.
authorHante Meuleman <meuleman@broadcom.com>
Fri, 8 Feb 2013 14:54:01 +0000 (15:54 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 8 Feb 2013 19:51:42 +0000 (14:51 -0500)
commit4b3a89de8a2e91bf873a0044fa62b2f5afb6693a
tree54174a2690fbf743efd8975ed010e4545acab0e7
parentdae3a27359adc277ea3b399b8240ce348304289e
brcmfmac: Create netdev before returning from add_virtual_intf.

Currently netdev gets created possibly after returning from
add_virtual_intf. This is because add_if is handled asynch. This
is wrong and netdev should be up before returning.

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/p2p.c
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h