mwifiex: set netif carrier off in ndo_open
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 19 Jan 2015 10:24:36 +0000 (15:54 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Jan 2015 17:40:47 +0000 (19:40 +0200)
commitea2325b89d16c0803714d48e28b116aec2ef5026
treefd79477f43d4bd63e36ebc9968b8f13fa953a61c
parentc5ed1df781cb544d4e4d189bb5b6ec7336d8888c
mwifiex: set netif carrier off in ndo_open

This patch adds fix to set carrier state off during ndo_open.
Carrier should be set to ON when device is ready to send data.
In case of station/adhoc interface device is able to transfer
data after successful association/join operation.
For AP this would be after bss_active event.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/mwifiex/main.c