summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2015-01-19 10:24:36 (GMT)
committerKalle Valo <kvalo@codeaurora.org>2015-01-27 17:40:47 (GMT)
commitea2325b89d16c0803714d48e28b116aec2ef5026 (patch)
treefd79477f43d4bd63e36ebc9968b8f13fa953a61c /drivers
parentc5ed1df781cb544d4e4d189bb5b6ec7336d8888c (diff)
downloadlinux-ea2325b89d16c0803714d48e28b116aec2ef5026.tar.xz
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/mwifiex/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c
index d235adb..9836df0 100644
--- a/drivers/net/wireless/mwifiex/main.c
+++ b/drivers/net/wireless/mwifiex/main.c
@@ -562,7 +562,8 @@ static int mwifiex_init_hw_fw(struct mwifiex_adapter *adapter)
static int
mwifiex_open(struct net_device *dev)
{
- netif_tx_start_all_queues(dev);
+ netif_carrier_off(dev);
+
return 0;
}