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)
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

index d235adb82c94347cf3c95979e8b34b466abce5bc..9836df0eb1e7fe6aaa566499a0d41bf7956ffc33 100644 (file)
@@ -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;
 }