brcmfmac: start netif queues only when setup is completed successful
authorArend van Spriel <arend@broadcom.com>
Fri, 29 Nov 2013 10:48:16 +0000 (11:48 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 Dec 2013 19:25:17 +0000 (14:25 -0500)
commitdcede4b8767dc4b12ce6324ac772776ae9f28569
treefad5c3f6fe8f7879bf5680dfe2c5642418a43143
parentcf4582875a77c13adf8fec79b8ab3896d2b38e97
brcmfmac: start netif queues only when setup is completed successful

Moving the call to netif_start_queue() after brcmf_cfg80211_up() is
completed successful. If not return -EIO instead of -1 as that results
in 'Operation not permitted' which can put user on wrong track.

Reviewed-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_linux.c